Description
VEML6070 is an advanced ultraviolet (UV) light sensor with I2C protocol interface and designed by the CMOS process.It is easily operated via a simple I2C command. The active acknowledge (ACK) feature with threshold windows setting allows the UV sensor to send out a UVI alert message.Under a strong solar UVI condition, the smart ACK signalcan be easily implemented by the software programming.
Feature:
- Dimensions (L x W x H in mm): 2.35 x 1.8 x 1.0
- Integrated modules: ultraviolet sensor (UV), and signal conditioning IC
- Converts solar UV light intensity to digital data
- Excellent UV sensitivity and linearity via FiltronTM technology
- Excellent performance of UV radiation measurement under long time solar UV exposure
- Excellent temperature compensation
- High dynamic detection resolution
- Standard I2C protocol interface
- Support acknowledge feature (ACK)
- Immunity on fluorescent light flicker software shutdown mode control
- Temperature compensation: -40℃ to +85℃
- Floor life: 168 h, MSL 3, according to J-STD-020
- Output type: I2C bus
- Operation voltage: 2.7V to 5.5V
Getting started with the GY-VEML6070 VEML6070 UV Sensitivity Detection Light Sensor for Arduino I2C
In this example we look at an VEML6070 UV sensor and connect it to an Arduino UNO
Step1: Hardware required
Step2: Connecting the Hardware
Connect Arduino and VEML6070 breakout board as, 5V, Gnd from arduino to Vcc and Gnd pin of Sensor breakout board and A4 arduino pin to SDA (for Uno A4 is SDA refer your arduino board SDA pin details if you use other Arduino board) finaly A5 arduino pin to SCL (for Uno A5 is SCL refer your arduino board SCL pin details if you use other Arduino board), In this project we dont use ACK pin hence there is no connection.
Step3: Setting up the library
Install VEML6070 Arduino library from Adafruit before uploading the sketch.
Step4: Upload code
#include <Wire.h>
#include “Adafruit_VEML6070.h”
Adafruit_VEML6070 uv = Adafruit_VEML6070();
void setup() {
Serial.begin(9600);
Serial.println(“VEML6070 Test”);
uv.begin(VEML6070_1_T); // pass in the integration time constant
}
void loop() {
Serial.print(“UV light level: “); Serial.println(uv.readUV());
delay(1000);
}
Step5: Testing the circuit
Open the serial monitor