upm  1.7.1
Sensor/Actuator repository for libmraa (v2.0.0)
Public Member Functions

API for the Vishay VEML6070 UV Sensor. More...

Detailed 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 signal can be easily implemented by the software programming. VEML6070 incorporates a photodiode, amplifiers, and analog / digital circuits into a single chip. VEML6070's adoption of FiltronTM UV technology provides the best spectral sensitivity to cover UV spectrum sensing. It has an excellent temperature compensation and a robust refresh rate setting that does not use an external RC low pass filter. VEML6070 has linear sensitivity to solar UV light and is easily adjusted by an external resistor. Software shutdown mode is provided, which reduces power consumption to be less than 1 uA. VEML6070's operating voltage ranges from 2.7 V to 5.5 V.

// Instantiate an VEML6070 sensor on i2c bus 0
upm::VEML6070 veml(0);
while (shouldRun) {
cout << "Retrieved UV value: " << veml.getUVIntensity() << endl;

Public Member Functions

 VEML6070 (int bus)
 ~VEML6070 ()
int getUVIntensity ()
void setIntegrationTime (veml6070_integration_time_t time)

Constructor & Destructor Documentation

VEML6070 ( int  bus)

VEML6070 constructor

busi2c bus to be used
devAddressi2c address of the sensor
~VEML6070 ( )

VEML6070 destructor

Here is the call graph for this function:

Member Function Documentation

int getUVIntensity ( )

Function to get the UV value.

int16_t UV value

Here is the call graph for this function:

void setIntegrationTime ( veml6070_integration_time_t  time)

Function to allow the user to set the intergration time for the sensor. Integration time: Bit Setting | Description | RSet IT1 IT0 | | 300 k-ohms | 600 k-ohms 0 0 | 1/2T | 62.5 ms | 125 ms 0 1 | 1T | 125 ms | 250 ms 1 0 | 2T | 250 ms | 500 ms 1 1 | 4T | 500 ms | 1000 ms


Here is the call graph for this function:

The documentation for this class was generated from the following files: