Circuit Documentation
Summary
This circuit consists of an Arduino UNO microcontroller and a red LED. The LED is connected to the Arduino UNO such that it blinks on and off with a delay of 1 second. The Arduino UNO controls the LED through its digital pin D13.
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
- Purpose in Circuit: Acts as the main controller to blink the LED.
LED: Two Pin (red)
- Description: A red light-emitting diode.
- Pins: cathode, anode
- Purpose in Circuit: Provides visual feedback by blinking.
Wiring Details
Arduino UNO
- GND: Connected to the cathode of the LED.
- D13: Connected to the anode of the LED.
LED: Two Pin (red)
- cathode: Connected to the GND pin of the Arduino UNO.
- anode: Connected to the D13 pin of the Arduino UNO.
Code Documentation
Arduino Sketch
This Arduino Sketch controls a red LED connected to pin D13. The LED will blink on and off with a delay of 1 second.
/*
* This Arduino Sketch controls a red LED connected to pin D13.
* The LED will blink on and off with a delay of 1 second.
*/
void setup() {
// Initialize the digital pin 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
