The VEML6070 is an advanced ultraviolet (UV) light sensor with I2C protocol interface, designed for detecting the intensity of incident UV light. This sensor is capable of providing a digital representation of UV light intensity, which can be used in various applications such as monitoring the UV index for weather stations, personal UV exposure measurement devices, and in UV sterilization systems.
Pin Number | Name | Description |
---|---|---|
1 | VDD | Power supply (2.7 V to 5.5 V) |
2 | GND | Ground connection |
3 | SDA | I2C data line |
4 | SCL | I2C clock line |
5 | -INT | Active low interrupt (optional use) |
#include <Wire.h>
#include "VEML6070.h"
VEML6070 uv = VEML6070();
void setup() {
Wire.begin();
Serial.begin(9600);
uv.begin(VEML6070_1_T); // Initialize the sensor with 1T integration time
}
void loop() {
uint16_t uvLevel = uv.readUV();
Serial.print("UV Level: ");
Serial.println(uvLevel);
delay(1000); // Delay between readings
}
Q: Can the VEML6070 be used to detect UVB or UVC light? A: No, the VEML6070 is designed specifically for the UVA spectrum (320 nm to 400 nm).
Q: How can I adjust the sensitivity of the sensor? A: Sensitivity can be adjusted by changing the integration time setting in the initialization of the sensor in your code.
Q: Is the VEML6070 waterproof? A: No, the VEML6070 is not inherently waterproof. Additional protection is required for use in moist or outdoor environments.
Q: What is the I2C address of the VEML6070? A: The VEML6070 uses two I2C addresses, 0x38 and 0x39, for reading the UV data.
For further assistance or technical support, please refer to the manufacturer's datasheet or contact technical support.