BLINK 2 LED-DELAY ESP32

 EX NO 2                          BLINK TWO LED USE DELAY

LINK: BLINK LED CLICK HERE

Aim

To develop a simple embedded system application using an ESP32 microcontroller to blink two LEDs sequentially with the help of the delay() function and understand basic digital output control.

Requirements

Hardware Requirements

  • Espressif Systems ESP32 Development Board

  • Two LEDs or LED module

  • USB cable for power and programming

  • Jumper wires

  • Breadboard (optional)

  • Computer or laptop

Software Requirements

  • Arduino IDE

  • ESP32 Board Support Package

  • USB Driver for ESP32 communication

Procedure

  1. Connect the ESP32 board to the computer using a USB cable.

  2. Interface the two LEDs with the selected GPIO pins of the ESP32 board and connect the ground terminals properly.

  3. Open the Arduino IDE and select the correct ESP32 board and COM port.

  4. Create a program to configure both LED pins as output pins in the setup() function.

  5. Write the program logic in the loop() function to switch ON and OFF each LED one after another using the delay() function.

  6. Compile the program and upload it to the ESP32 board.

  7. After successful uploading, observe the LEDs blinking sequentially with a fixed time interval.

  8. Verify the working of the circuit and ensure both LEDs operate according to the programmed sequence.

Result

The two LEDs were successfully controlled using the ESP32 microcontroller and blinked sequentially with the help of the delay() function.


No comments:

Post a Comment