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
Connect the ESP32 board to the computer using a USB cable.
Interface the two LEDs with the selected GPIO pins of the ESP32 board and connect the ground terminals properly.
Open the Arduino IDE and select the correct ESP32 board and COM port.
Create a program to configure both LED pins as output pins in the
setup()function.Write the program logic in the
loop()function to switch ON and OFF each LED one after another using thedelay()function.Compile the program and upload it to the ESP32 board.
After successful uploading, observe the LEDs blinking sequentially with a fixed time interval.
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