Lux Meter Using VELM6040
![IMG_20170922_105014366.jpg](/proxy/?url=https://content.instructables.com/FME/6IMO/J7UQW9QF/FME6IMOJ7UQW9QF.jpg&filename=IMG_20170922_105014366.jpg)
![IMG_20170922_105032018.jpg](/proxy/?url=https://content.instructables.com/F8H/CGHO/J7UQW9M3/F8HCGHOJ7UQW9M3.jpg&filename=IMG_20170922_105032018.jpg)
This project reads the values of velm6040 sensor,convert them in lux,and display it in 3 different ways,as described above in image.
Senstivity of the sensor can be toggled with the push buttons
there are also pushbuttons for "freezing" the display and toggle the led,on-off
Hardware
![velm6040 software led button.png](/proxy/?url=https://content.instructables.com/F3Z/C4CZ/J7UQXUC9/F3ZC4CZJ7UQXUC9.png&filename=velm6040 software led button.png)
![velm6040.png](/proxy/?url=https://content.instructables.com/FBE/05P5/J7UQXUC3/FBE05P5J7UQXUC3.png&filename=velm6040.png)
The hardware consists of
arduino nano
ssd1306 based i2c-128x32 oled
velm6040 sensor,
either
3 pushbuttons and optocoupler (817c) with 220 ohm resistor
or
2 push button and a toggle switch.
choose your flavor
The Code
the code was wirtten in arduino ide
I've left a lot of comments in the code so that ,hopefully those who want to modify it, will find it easy to do so.