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

Arduino UNO LED Blinker with 200 Ohm Resistor

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

Circuit Documentation

Summary

This circuit consists of an Arduino UNO microcontroller, a red LED, and a resistor. The Arduino UNO controls the LED, making it blink with a delay of 1.5 seconds. The resistor is used to limit the current flowing through the LED to prevent damage.

Component List

Arduino UNO

LED: Two Pin (red)

Resistor

Wiring Details

Arduino UNO

LED: Two Pin (red)

Resistor

Code Documentation

Arduino UNO Code

#define led_pin 8

void setup() {
    pinMode(led_pin, OUTPUT);
}

void loop() {
    digitalWrite(led_pin, HIGH);
    delay(1500);
    digitalWrite(led_pin, LOW);
    delay(1500);
}

This code defines the pin connected to the LED (led_pin) as pin 8. In the setup function, the pin mode is set to OUTPUT. The loop function then continuously turns the LED on and off with a delay of 1.5 seconds between each state change.