LED sensor

 

LED SENSORS

Required hardware :

1. Audrino

2. 10k ohm resistor

3. LED

4. 220 ohm Resistor

5. Breadboard

Circuit



. connect 3 wires to audrino

. red wire goes from 5V to breadboard, black wire goes from ground to breadboard, the white wire goes form analog input to breadboard.

. plug the LED longer part (the anode, positive part) to pin 13 through 220 ohm reisitor and the smaller part(the cathode, negative part ) to the ground(GND) in audrino.

Code



 

 


 

 You can adjust the speed of LED blinking.

Comments

Popular posts from this blog

Quantum Learning Companion

Servo Motors