Getting Started With ESP 32 Board +LED
by Rachna Aggarwal in Circuits > Electronics
542 Views, 1 Favorites, 0 Comments
Getting Started With ESP 32 Board +LED
![Connecting LED with ESP32 #ESP32Devkit_board](/proxy/?url=https://content.instructables.com/FKU/U2S6/KFCJHM8G/FKUU2S6KFCJHM8G.jpg&filename=Connecting LED with ESP32 #ESP32Devkit_board)
![20200908_171457 (1).jpg](/proxy/?url=https://content.instructables.com/FLO/7TF9/KFCJHLPR/FLO7TF9KFCJHLPR.jpg&filename=20200908_171457 (1).jpg)
I am using ESP 32 devkit board for my projects. ESP 32 board have a dual processor chip WROOM 32 which have inbuilt bluetooth and wifi modules in it. I bought ESP 32 at a very low price from amazon of around 600 rupees. Link to buy components for making this project is given next to each components in the Components required section.
Components required: -
1. ESP32 board : - https://amzn.to/3iXIcCV
2. Resistor of 220 ohms :- https://amzn.to/2ZuPNRN
3. LED :- https://amzn.to/3472iEP
4. Jumper wires : - https://amzn.to/3iqdBxM
5.Breadboard(optional) - https://amzn.to/3kdp4Rt
6. Arduino IDE software installed in your PCs
Setting up your Arduino IDE before uploading code in ESP32 is very important : - https://www.instructables.com/id/Setting-Up-Arduino-IDE-for-ESP32-Board/
Circuit Schematic for Connecting LED With ESP 32
![20200908_171457 (1).jpg](/proxy/?url=https://content.instructables.com/FN6/RSNL/KFCJHNT3/FN6RSNLKFCJHNT3.jpg&filename=20200908_171457 (1).jpg)
![led terminal.jpg](/proxy/?url=https://content.instructables.com/FAC/7ZR0/KFCJHO8J/FAC7ZR0KFCJHO8J.jpg&filename=led terminal.jpg)
GPIO23 - - > LED anode
GND - - > LED cathode
After connecting all components next step is to upload code to ESP32 board
How to Upload Code in ESP 32 Board
1. Click on upload.
2. If no error. At the bottom of Arduino IDE, when we get message Connecting ...,...,
3. Press Boot button on ESP 32 board till you get the message done uploading.
4. After you code is uploaded successfully. Press enable button to restart or start code uploaded on ESP32 board.
Code for LED and ESP32 Board
/*
Blink *
/ ledPin refers to ESP32 GPIO 23
const int ledPin = 23;
// the setup function runs once when you press reset or power the board
void setup()
{
// initialize digital pin ledPin as an output. pinMode(ledPin, OUTPUT);
}
// the loop function runs over and over again forever
void loop()
{
digitalWrite(ledPin, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(ledPin, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}