Determine the darkness by reading a Photoresitor output value.
The result is a value between 0 and 1023 (10bit) which is mapped to a value between 0 and 123 (7bit).
• 1x Arduino UNO
• 1x Photoresistor
• 1x 10k Resistor
Arduino = Photo Resistor
GND = GND (Black)
5v = VCC (Red)
A0 = Signal (Yellow)
Download Source Code
• Set the brightness of a white LED, if getting dark (link the level of darkness to the LED Brightness between 0 - 255).
Experiments & prototyping with the Arduino.
1 post • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest