veml6070

Crates.ioveml6070
lib.rsveml6070
version0.1.0
sourcesrc
created_at2018-10-12 05:44:47.530224
updated_at2018-10-12 05:44:47.530224
descriptionPlatform-agnostic Rust driver for the VEML6070 UV light sensor.
homepage
repositoryhttps://github.com/eldruin/veml6070-rs
max_upload_size
id89400
size27,787
Diego Barrios Romero (eldruin)

documentation

README

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.

Commit count: 50

cargo fmt