Arduino tricolor with push button
Title
Question
<font size="3">Why it is necessary to connect cathode of rgb led to the push button? </font>
Arduino Arduino-with-Tricolor-LED-and-Push-button 11-12 min 10-20 sec
Answers:
In this experiment, we are showing the use of push button to control the illumination of the RGB LED. Since, we are using common cathode RGB LED, to complete the circuit, we have connected one end of push button to cathode of RGB and other end to +5V pin of Arduino.
// This experiment demonstrates controlling an RGB LED with a push button.
// We are using a common cathode RGB LED, so the cathode is connected to one leg of the push button.
// The other leg of the push button is connected to +5V on the Arduino.
// Pressing the button completes the circuit and powers the LED through the cathode.
this experiment, we are showing the use of push button to control the illumination of the RGB LED. Since, we are using common cathode RGB LED, to complete the circuit, we have connected one end of push button to cathode of RGB and other end to +5V pin of Arduino.
13-03-23, 2:03 p.m. pratikjb9485
add comment
this experiment, we are showing the use of push button to control the illumination of the RGB LED. Since, we are using common cathode RGB LED, to complete the circuit, we have connected one end of push button to cathode of RGB and other end to +5V pin of Arduino.
13-03-23, 2:03 p.m. pratikjb9485
add comment
10-08-25, 6:40 p.m. 22ece031@vcew.ac.in
add comment
Login to add comment