Why we need to add Register in TriColor LED with Button?
Tutorial 6: 

Arduino with Tricolor LED and Push-button - English

Time: 8:10

The video has an explanation but I am not able to understand why we need to use register between pin no 4 and Anode pin of LED.

Arduino Arduino-with-Tricolor-LED-and-Push-button 08-09 min 0-10 sec 08-02-20, 4:40 p.m. chiragrpatel

Answers:

When you configure any digital pin on arduino as input,  it requires 5V supply to work any operations. When you press the push button, that pin gets the 5V supply it requires and the resistor connected to that pin makes sure that the current is not delivered to this pin immediately. The resistor is used to limit the current
08-02-20, 5:02 p.m. Pratikjb11


Click here to reply/comment online