Get the latest tech news
Two ways to use an LED as a light sensor with Arduino
I needed to log when a light switched on and off during the night as part of debugging an oddly behaving movement sensor. To do that I built...
I needed to log when a light switched on and off during the night as part of debugging an oddly behaving movement sensor. To do that I built a really simple light sensor logger using an Arduino Leonardo, a large LED and a resistor or three. The main loop() just reads the voltage across the LED from analog input A1 and writes it to the serial port.
Or read this on Hacker News