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
Connect the ESP32 development board to the computer using a USB cable.
Install the required USB driver and configure the ESP32 board in the Arduino IDE.
Open the Arduino IDE and create a new program for LED control.
Configure the LED pin as an output pin in the
setup()function.Write the logic to control LED blinking without using the
delay()function.Compile the program and upload it to the ESP32 board.
Observe the LED operation after successful program execution.
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