Arduino UNO LED Control Circuit with Red, Green, and Yellow LEDs
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit consists of an Arduino UNO microcontroller connected to three LEDs (red, green, and yellow) through resistors. The LEDs are controlled by the Arduino's digital pins, and the resistors are used to limit the current flowing through the LEDs.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
Resistor (200 Ohms)
- Description: A resistor with a resistance of 200 Ohms.
- Pins: pin1, pin2
LED: Two Pin (red)
- Description: A red LED with two pins.
- Pins: cathode, anode
LED: Two Pin (green)
- Description: A green LED with two pins.
- Pins: cathode, anode
LED: Two Pin (yellow)
- Description: A yellow LED with two pins.
- Pins: cathode, anode
Wiring Details
Arduino UNO
GND is connected to:
- Resistor pin2 (200 Ohms)
- Resistor pin2 (200 Ohms)
- Resistor pin2 (200 Ohms)
D5 is connected to:
- LED (red) anode
D4 is connected to:
- LED (yellow) anode
D3 is connected to:
- LED (green) anode
Resistor (200 Ohms)
pin1 is connected to:
- LED (red) cathode
pin2 is connected to:
- Arduino UNO GND
pin1 is connected to:
- LED (yellow) cathode
pin2 is connected to:
- Arduino UNO GND
pin1 is connected to:
- LED (green) cathode
pin2 is connected to:
- Arduino UNO GND
LED: Two Pin (red)
anode is connected to:
- Arduino UNO D5
cathode is connected to:
- Resistor pin1 (200 Ohms)
LED: Two Pin (green)
anode is connected to:
- Arduino UNO D3
cathode is connected to:
- Resistor pin1 (200 Ohms)
LED: Two Pin (yellow)
anode is connected to:
- Arduino UNO D4
cathode is connected to:
- Resistor pin1 (200 Ohms)
Code Documentation
Arduino UNO Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This code is a basic template for the Arduino UNO. The setup() function is where you initialize your settings, and the loop() function is where you place the code that you want to run repeatedly. In this case, the code is empty and does not perform any actions.