Circuit Documentation
Summary
This circuit is designed to control an LED using an Arduino UNO. The LED is connected to digital pin D13 of the Arduino and will blink with a delay of 1 second. The circuit includes an Arduino UNO, a red LED, and a resistor to limit the current through 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 (200 Ohms)
- Description: A resistor with a resistance of 200 Ohms.
- Pins: pin1, pin2
- Properties:
- Resistance: 200 Ohms
Resistor (200 Ohms)
- Description: A resistor with a resistance of 200 Ohms.
- Pins: pin1, pin2
- Properties:
- Resistance: 200 Ohms
Wiring Details
Arduino UNO
- GND: Connected to pin1 of the 200 Ohms resistor.
- D13: Connected to the anode of the red LED.
LED: Two Pin (red)
- anode: Connected to D13 of the Arduino UNO.
- cathode: Connected to pin2 of the 200 Ohms resistor.
Resistor (200 Ohms)
- pin1: Connected to GND of the Arduino UNO.
- pin2: Connected to the cathode of the red LED.
Code Documentation
Arduino Sketch
/*
* Arduino Sketch for controlling an LED connected to pin D13.
* The LED will blink with a delay of 1 second.
*/
void setup() {
// Initialize digital pin D13 as an output.
pinMode(13, OUTPUT);
}
void loop() {
// Turn the LED on (HIGH is the voltage level)
digitalWrite(13, HIGH);
// Wait for a second
delay(1000);
// Turn the LED off by making the voltage LOW
digitalWrite(13, LOW);
// Wait for a second
delay(1000);
}
Code File Information
- File Name: sketch
- File Extension: ino
