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

Arduino UNO Controlled LED with Pushbutton Activation

View and Edit Project In Cirkit DesignerImage of Arduino UNO Controlled LED with Pushbutton Activation

Circuit Documentation

Summary of the Circuit

This circuit consists of an Arduino UNO microcontroller, a pushbutton, two resistors, and a red two-pin LED. The pushbutton is used to provide input to the Arduino, which can control the LED based on the button press. The resistors are used to limit the current flowing through the LED and to provide a pull-down for the pushbutton.

Component List

LED: Two Pin (red)

Pushbutton

Resistor (1 kOhm)

Arduino UNO

Wiring Details

LED: Two Pin (red)

Pushbutton

Resistor (1 kOhm)

Arduino UNO

Documented Code

Arduino UNO Code (sketch.ino)

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

This code is a template and does not contain any functional code to control the LED or read the pushbutton state. The user should add the appropriate code within the setup() function to initialize the pin modes, and within the loop() function to read the pushbutton state and control the LED accordingly.