Introduction To ESP32

ESP32

What is ESP32?

Anyone who works with Electronics & IoT knows how powerful the ESP32 boards are! ESP32 boards are the successor of ESP8266. It is just like an Arduino board, but with built-in Wifi, Bluetooth, temperature sensor, touch sensor and much much more! After the ESP8266, the ESP32 has again been a killer product by the manufacturer “Espressif Systems”. This low-cost board has everything you needed to get started with most of it being built-in as a feature.

 

ESP32 Features and Specifications:

 

The ESP32 has a lot of built-in features. For example Wifi connectivity, Bluetooth connectivity, Temperature sensors, Hall effect sensors, Touch sensors and many more. Below are some key features and specification which makes it an exclusive choice for the IoT developers:

  • CPU: Xtensa dual-core (or single-core) 32-bit LX6 microprocessor
  • Memory: 520 KiB SRAM
  • Wi-Fi: 11 b/g/n
  • Bluetooth: v4.2 BR/EDR and BLE
  • GPIO: 36
  • Software PWM: 16 channels
  • SPI/I2C/I2S/UART – 4/2/2/2
  • ADC –  12-bit
  • Touch Sensor
  • Temperature Sensor
  • Hall effect sensor

 

ESP32 vs ESP8266 vs Arduino Uno

 ESP32ESP8266Arduino Uno R3
CORES211
ARCHITECTURE32 bits32 bits8 bit
CLOCK SPEED160MHz80MHz16MHz
WiFiYesYesNo
BLUETOOTHYesNoNo
RAM512KB160KB2KB
FLASH16Mb16Mb32Kb
GPIO361714
INTERFACESSPI / I2C / UART / I2S / CANSPI / I2C / UART / I2SSPI / I2C / UART
ADC1816
DAC200

Clearly, the ESP32 is much faster than both Arduino UNO and ESP8266. It comes with a dual-core processor and much higher clock speed than most of the other boards within the price range. It has a lot of GPIO pins. It has additional Bluetooth connectivity built-in. The one thing where both ESP boards lack on was the number of ADC pins, but ESP32 overcomes that shortcoming with 18 ADC pins, which is even more than the Arduino Uno board.  

Programming the ESP32 Board:

Step 1: Download and install the latest Arduino IDE Windows Installer from Arduino.cc

Step 2: Download and install Git from git-scm.com

Step 3: Open Git Gui and select “Clone Existing Repository

Step 4: Select source and destination

  • Sketchbook Directory: Usually “C:/Users/[YOUR_USER_NAME]/Documents/Arduino” and is listed underneath the “Sketchbook location” in Arduino preferences.
  • Source Location: https://github.com/espressif/arduino-esp32.git
  • Target Directory: C:/Users/[YOUR_USER_NAME]/Documents/Arduino/hardware/espressif/esp32
  • Click Clone to start cloning the repository

 

  • Open a Git Bash session pointing to – [ARDUINO_SKETCHBOOK_DIR]/hardware/espressif/esp32

  To point the session to that specific directory, first type in: cd “[ARDUINO_SKETCHBOOK_DIR]/hardware/espressif/esp32”

Then,type: git submodule update –init –recursive    

  • Open [ARDUINO_SKETCHBOOK_DIR]/hardware/espressif/esp32/tools and double-click get.exe

When installation finishes, you should see the following files in the directory  

 

  • Plug your ESP32 board and wait for the drivers to install (or install manually any that might be required)
  • Start Arduino IDE
  • Select your board in Tools > Board menu & select your board.

 

    

  • Select the COM port that the board is attached to.

 

 

  • Setup the following Circuit

  • Now Compile the following code at your Arduino ID

 

    

  • Upload it (You might need to hold the boot button while uploading)
Someone in WEST RICHMOND bought a
30A Range Current Sensor Module - ACS712 ACS712T ACS712TELC-30A
about 43 mins ago
 
Someone in NEWSTEAD bought a
2.4GHz 3dB SMA Antenna with U.FL UFL Pigtail
about 50 mins ago
 
Someone in NGUNNAWAL bought a
Arduino Nano 3.0 Atmel ATmega328 Mini-USB Board + 3 Items
about 12 hours ago
 
Someone in MITCHAM bought a
Arduino Nano 3.0 Atmel ATmega328 Mini-USB Board+ 1pcs USB Cable
about 13 hours ago
 
Someone in DULWICH bought a
IR Infrared Obstacle Avoidance Sensor - E18-D80NK
about 19 hours ago
 
Someone in EIGHT MILE PLAINS bought a
High Accuracy DS3231 RTC and EEPROM
about 21 hours ago
 
Someone in ALBION PARK bought a
Micro SD Card Reader Module for Arduino
about 22 hours ago
 
150Mbps Mini USB Wifi LAN Adapter - Raspberry Pi, Mac, OSX, Windows, Linux
Someone in BILGOLA PLATEAU bought a
150Mbps Mini USB Wifi LAN Adapter - Raspberry Pi, Mac, OSX, Windows, Linux
about 24 hours ago
 
Rotary Encoder Module - KY-040
Someone in SALISBURY bought a
Rotary Encoder Module - KY-040
about 1 day ago
 
Someone in NORTH MANLY bought a
Micro SD Card Reader Module for Arduino + 1 Item
about 1 day ago
 
Share This
X