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

Arduino UNO LED Blinker with 220 Ohm Resistor

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

Circuit Documentation

Summary

This circuit consists of an Arduino UNO microcontroller, a red LED, and a 220 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 (red)

Resistor

Wiring Details

Arduino UNO

LED: Two Pin (red)

Resistor

Code Documentation

Arduino UNO Code

void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(13, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(13, HIGH);  // turn the LED on (HIGH is the voltage level)
  delay(1000);             // wait for a second
  digitalWrite(13, LOW);   // turn the LED off by making the voltage LOW
  delay(1000);             // wait for a second
}

This code initializes pin 13 of the Arduino UNO as an output in the setup() function. The loop() function then continuously turns the LED on and off with a one-second delay between each state change.