top of page

Arduino Photo-Cell

Arduino-Light-Sensor-Circuit-using-LDR.jpg

We use a photocell, 2 resistors, and an Led to test out our Arduino.

1.

We power up the bread board to start.

Button_bb2.png

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.

Photocell_bbLED.png
LedConnection

3.

We set up the Photocell.
Be sure to use a resistor like shown. A 10k ohm resistor is recommended

Photocell_bbdone.png
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:

clipart1869059.png

You need to open the serial monitor and see if the value of the photocell.

Code

More Info coming soon!

bottom of page