#light #sensor #i2c #driver #embedded-hal-driver

no-std veml6070

Platform-agnostic Rust driver for the VEML6070 UV light sensor

1 unstable release

Uses old Rust 2015

0.1.0 Oct 12, 2018

#19 in #light

33 downloads per month

MIT/Apache

13KB
143 lines

Rust VEML6070 UV Light Sensor Driver crates.io Docs

This is a platform agnostic Rust driver for the VEML6070 UV light sensor, based on the embedded-hal traits.

This driver allows you to:

  • This driver allows you to:
  • Enable/disable the sensor
  • Read the UV measurement
  • Set the integration time
  • Enable/disable ACK signal
  • Set ACK threshold value

The device

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 Filtron TM 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 μA. VEML6070's operating voltage ranges from 2.7 V to 5.5 V.

Datasheet:

Application note:

License

Licensed under either of

Contributing

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~110KB