top of page
Arduino Photo-Cell
1.
We power up the bread board to start.
2.
We now connect the LED with its resistor. You can use a resistor from 220 ohm's, up to 500 ohm's. You should not use the led without a resistor. Doing so may cause the led to blow out, or damage other things on your project.
LedConnection
3.
We set up the Photocell.
Be sure to use a resistor like shown. A 10k ohm resistor is recommended.
PhotocellConection
4.
Software:
We read the value of the photocell on pin A2. It will give a value between 0-1023. The LED should light if the reading is over 2.5, and go off if its less then that.
Note:
You need to open the serial monitor and see if the value of the photocell.
Code
More Info coming soon!
bottom of page