Circuit Documentation
Summary
This circuit consists of an Arduino UNO microcontroller connected to multiple LEDs of different colors (red, green, blue, and yellow) and a resistor. The LEDs are connected to various digital pins on the Arduino, and their cathodes are connected to a common ground through the resistor. The Arduino is programmed to control 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
LED: Two Pin (green)
- Description: A green LED with two pins.
- Pins: cathode, anode
LED: Two Pin (blue)
- Description: A blue LED with two pins.
- Pins: cathode, anode
LED: Two Pin (yellow)
- Description: A yellow LED with two pins.
- Pins: cathode, anode
LED: Two Pin (red)
- Description: A red LED with two pins.
- Pins: cathode, anode
Resistor
- Description: A resistor with a resistance of 470 Ohms.
- Pins: pin1, pin2
- Properties: Resistance = 470 Ohms
Wiring Details
Arduino UNO
- GND is connected to pin1 of the Resistor.
- D13 is connected to the anode of a red LED.
- D12 is connected to the anode of a green LED.
- D11 is connected to the anode of a blue LED.
- D10 is connected to the anode of a yellow LED.
- D9 is connected to the anode of a red LED.
- D8 is connected to the anode of a green LED.
- D7 is connected to the anode of a blue LED.
- D6 is connected to the anode of a yellow LED.
- D5 is connected to the anode of a red LED.
- D4 is connected to the anode of a green LED.
- D3 is connected to the anode of a blue LED.
- D2 is connected to the anode of a yellow LED.
- D1 is connected to the anode of a red LED.
- D0 is connected to the anode of a green LED.
LED: Two Pin (green)
- anode is connected to D12 of the Arduino UNO.
- cathode is connected to pin2 of the Resistor.
LED: Two Pin (blue)
- anode is connected to D11 of the Arduino UNO.
- cathode is connected to pin2 of the Resistor.
LED: Two Pin (yellow)
- anode is connected to D10 of the Arduino UNO.
- cathode is connected to pin2 of the Resistor.
LED: Two Pin (red)
- anode is connected to D13 of the Arduino UNO.
- cathode is connected to pin2 of the Resistor.
Resistor
- pin1 is connected to GND of the Arduino UNO.
- pin2 is connected to the cathodes of all LEDs.
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. Currently, both functions are empty and need to be filled with the appropriate logic to control the LEDs.
