Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

Arduino UNO Controlled LED with Pushbutton Activation

Image 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)

  • Description: A red light-emitting diode (LED) with two pins: an anode and a cathode.
  • Purpose: To emit light when powered, indicating the status or response to the pushbutton input.

Pushbutton

  • Description: A momentary pushbutton with four pins: two for the input side and two for the output side.
  • Purpose: To provide a user interface for input to the Arduino.

Resistor (1 kOhm)

  • Description: A resistor with a resistance of 1000 Ohms.
  • Purpose: To limit the current through the LED and to provide a pull-down for the pushbutton.

Arduino UNO

  • Description: A microcontroller board based on the ATmega328P.
  • Purpose: To control the LED based on the pushbutton input and execute the embedded code.

Wiring Details

LED: Two Pin (red)

  • Anode: Connected to a 1 kOhm resistor, which is then connected to the digital pin D8 of the Arduino UNO.
  • Cathode: Connected to the ground (GND) of the Arduino UNO through a 1 kOhm resistor.

Pushbutton

  • Pin 1 (in): Connected to the 3.3V power supply of the Arduino UNO.
  • Pin 4 (out): Connected to a 1 kOhm resistor, which is then connected to the digital pin D12 of the Arduino UNO.

Resistor (1 kOhm)

  • One Resistor: Connected between the pushbutton (Pin 4 out) and the Arduino UNO (D12).
  • Another Resistor: Connected between the LED anode and the Arduino UNO (D8).

Arduino UNO

  • 3.3V: Provides power to the pushbutton.
  • GND: Common ground for the LED and the pushbutton.
  • D8: Controls the LED through a resistor.
  • D12: Reads the state of the pushbutton through a resistor.

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.