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 is designed to control an LED using an Arduino UNO. The LED is connected to a digital pin on the Arduino through a current-limiting resistor. The Arduino is programmed to blink the LED on and off at one-second intervals.

Component List

Arduino UNO

Resistor

LED: Two Pin (red)

Wiring Details

Arduino UNO

Resistor

LED: Two Pin (red)

Code Documentation

Arduino UNO Code

// Define the LED pin
const int ledPin = 13;

void setup() {
  // Initialize the LED pin as an output
  pinMode(ledPin, OUTPUT);
}

void loop() {
  // Turn the LED on
  digitalWrite(ledPin, HIGH);
  delay(1000); // Wait for 1 second

  // Turn the LED off
  digitalWrite(ledPin, LOW);
  delay(1000); // Wait for 1 second
}

This code is written for the Arduino UNO and is used to blink an LED connected to digital pin 13. The setup function initializes the LED pin as an output. The loop function turns the LED on, waits for one second, turns the LED off, and then waits for another second, repeating this cycle indefinitely.