BLINK LED-DELAY ESP32

 EX NO 1                               Blink traffic led without using “Delay”

LINK: LED LINK

Aim

To design and implement a simple LED blinking application using an ESP32 microcontroller without using the delay() function, thereby understanding non-blocking program execution and GPIO pin control.

Requirements

Hardware Requirements

  • Espressif Systems ESP32 Development Board

  • LED module / onboard LED

  • USB cable for programming and power supply

  • Breadboard and jumper wires (optional)

  • Computer or laptop

Software Requirements

  • Arduino IDE

  • CP2102 USB-to-Serial Driver

  • ESP32 Board Package Installation

Procedure

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

  2. Install the required USB driver and configure the ESP32 board in the Arduino IDE.

  3. Open the Arduino IDE and create a new program for LED control.

  4. Configure the LED pin as an output pin in the setup() function.

  5. Write the logic to control LED blinking without using the delay() function.

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

  7. Observe the LED operation after successful program execution.

  8. Verify that the LED blinks continuously while allowing the microcontroller to perform other tasks simultaneously.

Result

The LED blinking operation using the ESP32 board was successfully implemented without using the delay() function.

No comments:

Post a Comment