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:
In this example we look at an VEML6070 UV sensor and connect it to an Arduino UNO
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.
Install VEML6070 Arduino library from Adafruit before uploading the sketch.
#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);
}
Open the serial monitor
Kit include:
1 x VEML6070 UV Sensitivity Detection Light Sensor