Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino UNO LED Blinker with Resistor

View and Edit Project In Cirkit DesignerImage of Arduino UNO LED Blinker with Resistor

Circuit Documentation

Summary

This circuit consists of an Arduino UNO microcontroller, a green LED, and a 200 Ohm resistor. The Arduino UNO is programmed to blink the LED on and off at one-second intervals.

Component List

Arduino UNO

LED: Two Pin (green)

Resistor

Wiring Details

Arduino UNO

LED: Two Pin (green)

Resistor

Code Documentation

Arduino UNO Code

void setup() {
  pinMode(13, OUTPUT); // Set digital pin 13 (D13) as an output
}

void loop() {
  digitalWrite(13, HIGH); // Turn the LED on (HIGH is the voltage level)
  delay(1000);            // Wait for a second (1000 milliseconds)
  digitalWrite(13, LOW);  // Turn the LED off by making the voltage LOW
  delay(1000);            // Wait for a second
}

This code sets up digital pin 13 (D13) as an output. In the main loop, it turns the LED on by setting D13 to HIGH, waits for one second, then turns the LED off by setting D13 to LOW, and waits for another second. This cycle repeats indefinitely, causing the LED to blink on and off at one-second intervals.