Circuit Documentation
Summary
This circuit consists of an Arduino UNO microcontroller, a resistor, and a red LED. The Arduino UNO is programmed to blink the LED on and off at one-second intervals. The resistor is used to limit the current flowing through the LED to prevent damage.
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
- Description: A passive electrical component that implements electrical resistance as a circuit element.
- Pins: pin1, pin2
- Properties:
- Resistance: 200 Ohms
LED: Two Pin (red)
- Description: A light-emitting diode that emits red light.
- Pins: cathode, anode
Wiring Details
Arduino UNO
- GND is connected to the cathode of the LED.
- D13 is connected to pin1 of the resistor.
Resistor
- pin1 is connected to D13 of the Arduino UNO.
- pin2 is connected to the anode of the LED.
LED: Two Pin (red)
- cathode is connected to GND of the Arduino UNO.
- anode is connected to pin2 of the resistor.
Code Documentation
Arduino UNO Code
void setup() {
pinMode(13, OUTPUT);
}
void loop() {
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000);
}
Description: This code sets up pin 13 as an output and then enters a loop where it turns the LED on and off with a one-second delay between each state change.
