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 resistor, and a red LED. The Arduino UNO controls the LED, making it blink at regular intervals. The resistor is used to limit the current flowing through the LED to prevent damage.

Component List

Resistor

Arduino UNO

LED: Two Pin (red)

Comment

Wiring Details

Resistor

Arduino UNO

LED: Two Pin (red)

Code Documentation

Arduino UNO Code

const int externalLED = 2; // Pin D2

void setup() {
  pinMode(LED_BUILTIN, OUTPUT);
  pinMode(externalLED, OUTPUT);
}

void loop() {
  digitalWrite(LED_BUILTIN, HIGH);
  digitalWrite(externalLED, HIGH);
  delay(1000);
  digitalWrite(LED_BUILTIN, LOW);
  digitalWrite(externalLED, LOW);
  delay(1000);
}

This code is written for the Arduino UNO microcontroller. It defines pin D2 as externalLED and sets it as an output pin in the setup() function. The loop() function toggles the built-in LED and the external LED connected to pin D2 on and off every second, creating a blinking effect.