The ‘Blinking of an LED on ESP32’ project “LED blinking on ESP32” uses the ESP32 Development Board will be used to blink an LED at a specific timed interval, continuously.ESP32 is a low power WiFi enabled microcontroller created and developed by Espressif Systems. The ESP32 is an advanced IoT microcontroller board possessing WiFi and Bluetooth Low Energy capabilities, as well as limited compatibility with the Arduino Core.
It is the required basic tutorial for any microcontroller board. The ESP32 DevKit, has a built-in LED that is connected to its GPIO 02
Components Required
- ESP32 development board
- 5mm LED
- 1KΩ Resistor
- 3 pieces of jumper wires
- Breadboard
Circuit Diagram
- Connect the positive pin (anode) of the LED, that indicated as the rounded edge of the LED to pin IO2 on the ESP32.
- Connect the negative pin (cathode) of the LED, indicated as the flat edge of the LED to a 1KΩ resistor.
- And connect the free end of the resistor to Ground.
Setup the ESP32 board in Arduino IDE
If you want to learn more about the ES P32 development board visit the official website of esp32:
There is an add-on for the Arduino IDE that allows you to program the ESP32 using the Arduino IDE and its programming language. Follow this tutorial to prepare your Arduino IDE:
Code Snippet:
// the setup function runs once when you press reset or power the board void setup() { // initialize digital pin 2 as an output. pinMode(2, OUTPUT); } // the loop function runs over and over again forever void loop() { digitalWrite(2, HIGH); // turn the LED on (HIGH is the voltage level) delay(1000); // wait for a second digitalWrite(2, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second }