ESP32 module is built on 32 bit ESP-WROOM-32 & can be programmed with Arduino IDE. Old method of installing Arduino core is through GIT. New & simpler method is through BOARDS MANAGER.
My previous video on GIT installation is here.
If you had already followed this GIT procedure , then delete the folder espressif inside Arduino directory (generally the path is Documents/Arduino/hardware )
Find the espressif folder & delete it manually.
First time users can proceed directly further.
The ESP32 module is slightly bigger than the NodeMCU module .But much powerful than NodeMcu. ESP32 has more ADC pins, more UART pins ,PWM, communication protocols like CAN, IIC, SPI,
DAC Channels , 16MB FLASH ,512KB RAM , Bluetooth BLE & WIFI enabled.
ESP32 DEV KIT V1 is generally available in market and pin configuration slightly different from that of WEMOS or Adafruit make.
Two micro buttons are on board .One to the right of micro usb socket is the BOOT button.Generally while uploading any sketch on to ESP32 , YOU NEED TO PRESS & HOLD this BOOT button.
EN button acts as RESET button.
All GPIO pins are 3.3V LOGIC & not 5v ,please note.
Let us begin with Arduino core installation using the much simpler BOARDS MANAGER
Open the latest ARDUINO IDE.
Go to File —> Preferences
At the bottom you find the Additional Boards Manager URLs bos
Copy & paste the following link there.
https://dl.espressif.com/dl/package_esp32_index.json
If you had already installed Arduino core for NodeMCU , you may find a link already here.Use a comma after the existing one & paste the new link. Click OK.
Go to Tools –> Boards & click on Boards Manager
A new window opens.
Type in ESP32 in the search window
Select esp32 by Espressif systems & click on INSTALL .
You need Internet connection for this installation which takes few minutes.
Once the installation is completed you can see under File –> Examples –>ESP32 with some official example sketches.
Now connect your ESP32 to PC & note the COM port allotted from the Device Manager.
For this you should have already installed the Silabs cp2102 driver.
As ESP32 USB functionality is provided by a CP2102IC you need this driver installed.
Under Tools , ensure that the Board is selected as
ESP32 DEV MODULE , upload speed & others left to default.
Correct COM port to be selected to which ESP32 is connected.
Once the board & COM port are selected , open the BLINK sketch
The built in LED on ESP32 is mapped to GPIO2.
Add this line before void setup()
#define LED_BUILTIN 2
We use only the GPIO pin number in code & not the word GPIO2
Click on UPLOAD
While the Compiling is over , you see Connecting….. at the bottom of IDE.
Now Press & Hold the BOOT button on the ESP32 board.
The code is uploaded & you can see the onboard Blue LED blinking.
VIDEO Support :
1 Trackback or Pingback for this entry:
[…] ESP32 #1 Arduino core installation […]