Home

Awesome

MicroPython-VEML6075

Driver base for the VEML6075 UV Light Sensor

The VEML6075 senses UVA and UVB light and incorporates photodiode, amplifiers, and analog/digital circuits into a single chip using a CMOS process. When the UV sensor is applied, it is able to detect UVA and UVB intensity to provide a measure of the signal strength as well as allowing for UVI measurement.

<b>DataSheet:</b>

https://www.digchip.com/datasheets/parts/datasheet/3951/VEML6075-pdf.php (in 09/21/2019) or file <i>'VEML6075_datasheet.pdf'</i><br>

<b>Key features:</b>

<b>Files:</b>

'veml6075.py' Version for Developers of driver for geral devices compatibles of MicroPython - ESP8266, ESP32 and LoPy.<br>

'veml6075_lowmem.py': Version Low Memory of driver for geral devices compatibles of MicroPython - No Documenteded

<b>Tests:</b>

ESP8266

import veml6075
from machine import I2C, Pin

i2c = I2C(sda=Pin(4), scl=Pin(5))
sensor = veml6075.VEML6075(i2c=i2c)

sensor.uv_index

ESP32

import  veml6075
from machine import I2C, Pin

i2c = I2C(sda=Pin(21), scl=Pin(22))
sensor = veml6075.VEML6075(i2c=i2c)

sensor.uv_index

LoPy

import veml6075
from machine import I2C

i2c = I2C(0, I2C.MASTER, baudrate=100000)
sensor = veml6075.VEML6075(i2c=i2c)

sensor.uv_index

<b>Driver Benchmark for Memory Consumed*:</b>

MicroPython v1.11-8-g48dcbbe60 on 2019-05-29; ESP module with ESP8266

ESP8266ESP32LoPy
Total Memory device (Kb)64520200
MicroPython Consumes (kb)31,75388,25
Memory Free (Kb)32.25111.75
Driver Uses Memory (Kb)2.753.52-