Circuit Documentation
Summary
This document provides a detailed description of a simple circuit that blinks an LED using an Arduino UNO. The LED is connected to pin D13 of the Arduino UNO through a 200 Ohm resistor to GND.
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: anode and cathode.
- Pins: cathode, anode
Resistor
- Description: A resistor with a resistance of 200 Ohms.
- Pins: pin1, pin2
- Properties:
- Resistance: 200 Ohms
Wiring Details
Arduino UNO
- GND is connected to pin1 of the Resistor.
- D13 is connected to the anode of the LED.
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 cathode of the LED.
Documented Code
Arduino UNO Code
/*
* This Arduino Sketch blinks an LED connected to pin D13 of the Arduino UNO.
* The LED is connected through a 200 Ohm resistor to GND.
*/
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);
}
LED: Two Pin (red) Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Resistor Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This document provides a comprehensive overview of the circuit, including the components used, their connections, and the code required to operate the circuit.
