Circuit Documentation
Summary
This circuit consists of an Arduino UNO microcontroller, a pushbutton, a red LED, and two resistors. The circuit is designed to interact with the pushbutton and control the LED based on the button's state. The Arduino UNO is programmed to handle the input from the pushbutton and output signals to the LED.
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 (red)
- Description: A red LED with two pins.
- Pins: cathode, anode
Resistor (220 Ohms)
- Description: A resistor with a resistance of 220 Ohms.
- Pins: pin1, pin2
Pushbutton
- Description: A pushbutton with four pins.
- Pins: Pin 3 (out), Pin 4 (out), Pin 1 (in), Pin 2 (in)
Resistor (200 Ohms)
- Description: A resistor with a resistance of 200 Ohms.
- Pins: pin1, pin2
Wiring Details
Arduino UNO
- 5V is connected to Pin 2 (in) of the Pushbutton.
- GND is connected to the cathode of the LED and pin2 of the 200 Ohms Resistor.
- D9 is connected to pin2 of the 220 Ohms Resistor.
- D2 is connected to Pin 4 (out) of the Pushbutton and pin1 of the 200 Ohms Resistor.
LED: Two Pin (red)
- cathode is connected to GND of the Arduino UNO and pin2 of the 200 Ohms Resistor.
- anode is connected to pin1 of the 220 Ohms Resistor.
Resistor (220 Ohms)
- pin1 is connected to the anode of the LED.
- pin2 is connected to D9 of the Arduino UNO.
Pushbutton
- Pin 2 (in) is connected to 5V of the Arduino UNO.
- Pin 4 (out) is connected to D2 of the Arduino UNO and pin1 of the 200 Ohms Resistor.
Resistor (200 Ohms)
- pin1 is connected to Pin 4 (out) of the Pushbutton and D2 of the Arduino UNO.
- pin2 is connected to GND of the Arduino UNO and cathode of the LED.
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 the main code runs repeatedly. In this template, no specific functionality is implemented yet.
