Gravity: 240370 Ultraviolet Index Sensor

SKU: SEN0636

Gravity: 240370 Ultraviolet Index Sensor directly outputs UV index and harm level, covering 240-370nm wavelength. Useful for environmental, health, and agricultural monitoring. Supports I2C and UART, easy to use with Arduino and graphical programming tools like Mind+ and Makecode.

Board Overview of Gravity: UV Index Measure Sensor (240-370 nm, UVA / UVB / UVC)
  • Docs
  • Tech Specs
  • 1. Example Code for Arduino-Reading Data Using I2C

    This project demonstrates how to read ultraviolet (UV) data including voltage, index, and risk level from the Gravity: 240370 Ultraviolet Index Sensor using I2C communication with an Arduino UNO. Users will learn to interface the sensor via I2C, install necessary libraries, and interpret serial monitor output.

    2. Example Code for Arduino-Reading Data Using UART

    This project demonstrates how to read ultraviolet (UV) data including voltage, index, and risk level from the Gravity: 240370 Ultraviolet Index Sensor using UART communication with an Arduino UNO. Users will learn to interface the sensor via UART, install necessary libraries, and interpret serial monitor output.

    3. Example Code for Mind+-Graphical Programming

    This project demonstrates how to use Mind+ (based on Scratch3.0) graphical programming to read ultraviolet (UV) data from the Gravity: 240370 Ultraviolet Index Sensor with an Arduino UNO. Users will learn to add the UV module to Mind+, create a graphical program, and upload it to the Arduino UNO.

    4. Example Code for micro:bit-MakeCode Programming

    This project demonstrates how to use MakeCode programming to read ultraviolet (UV) data from the Gravity: 240370 Ultraviolet Index Sensor with a micro:bit. Users will learn to add the UV sensor library to MakeCode, create a program, and upload it to the micro:bit.

    Reference

    Specification

    Parameter Value
    Operating Voltage 3.3-5V DC
    Communication Methods I2C, UART
    I2C Address 0x23
    UV Wavelength Range 240-370nm
    Operating Temperature -30~80°C
    Dimensions 30mm×22mm

    Pinout

    Num Label Description
    1 D/R I2C data line SDA or UART RXD
    2 C/T I2C clock line SCL or UART TXD
    3 GND Power negative
    4 VCC Power positive (3.3~5V)
    5 Communication Mode Switch Select I2C/UART communication mode

    Was this article helpful?

    TOP