• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » General Purpose Guide to Use ESP32 as Arduino

By Abhishek Ghosh February 23, 2019 10:11 pm Updated on February 24, 2019

General Purpose Guide to Use ESP32 as Arduino

Advertisement

WROOM ESP32 dev doard is a powerful Arduino compatible board with Wi-Fi, Bluetooth. Adafruit HUZZAH32 ESP32 Feather boards are not hugely different from core hardware point except the automatic bootloader reset and Lithium Ion/Polymer charger and Pin outs will not match. This is a general purpose guide for pin identification, required changes in Blink like examples of official Arduino. In earlier guides, we have described how to setup the software part to use ESP32 with Arduino IDE. That part probably most “difficult”. We faced no problem to re-write some codes to connect with IBM Watson IoT platform. But, not always we will be using ESP32 for IoT purposes. WROOM ESP32 dev doards are really good alternative to official Arduino boards. ESP32 gives entry to wider tools, apart from Arduino IDE. As example, to blink the onboard LED, we need to change the default blink sketch to :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
#define LED 2
 
void setup() {
  // Set pin mode
  pinMode(LED,OUTPUT);
}
 
void loop() {
  delay(500);
  digitalWrite(LED,HIGH);
  delay(500);
  digitalWrite(LED,LOW);
}

We are used with onboard LED on Pin 13 in case of Arduino IDE.

 

ESP32 as Arduino : Hardware Part

 

ESP32 is more sensitive than Arduino UNO. Slight maturity than newbie Arduino UNO user required in circuit designing. ESP32 is small in size (also cheap and powerful) and that makes it suitable to include directly in to real projects. WROOM ESP32 dev doard definitely looks complex to a newbie when compared to Arduino UNO. Keep in mind – this board supports only 3.3v modules, not the 5v modules of Arduino IDE. Also the board draws huge current. So it is practical to use some steady regulated voltage to power the external components using solutions such power supply to breadboard or DIY benchtop powersupply using PC power supply. In such setup, you need to common the ground of external power supply, ESP32 and the device which you are powering. It is practical to add 10K Ohm resistors at each end of the ground before connecting to ESP32’s ground.

Advertisement

---

WROOM ESP32 dev doard has internal temperature sensor, hall sensor, DAC, few capacitive touch sensor pins, SPI, I2C, I2S Audio. WROOM ESP32 dev doard has untested features. Coming to the Pin outs, which probably confusing to many of the users used with Arduino UNO.

The micro USB jack is used to connect the ESP32 to our computer through a USB cable. The EN button is the reset button of the ESP module to reset the code running on the ESP module. Boot button is used to upload the Program from Arduino to the ESP module (ESP enters into firmware uploading mode). The Red LED on the board is used to indicate the power supply. The Blue LED on the board is connected to the GPIO pin. The I/O pin of the module are capable of Digital Read/Write, Analog Read/Write, PWM, IIC, SPI, DAC etc. ESP32 has only 5 input pins.

If your ESP32 looks like the below illustration and Pin numbers on board matches then it is probably DO IT v1 clone. You can easily work with this illustration :

General Purpose Guide to Use ESP32 as Arduino

Open the full size image.

Input Only Pins

  1. GPIO 34
  2. GPIO 35
  3. GPIO 36
  4. GPIO 39

Pins with internal pull up

  1. GPIO14
  2. GPIO16
  3. GPIO17
  4. GPIO18
  5. GPIO19
  6. GPIO21
  7. GPIO22
  8. GPIO23

Pins without internal pull up

  1. GPIO13
  2. GPIO25
  3. GPIO26
  4. GPIO27
  5. GPIO32
  6. GPIO33

Analog Input Pins

  1. ADC1_CH0
  2. ADC1_CH3
  3. ADC1_CH4
  4. ADC1_CH5
  5. ADC1_CH6
  6. ADC1_CH7

Capacitive touch sensor connected Pins

  1. T0 (GPIO 4)
  2. T1 (GPIO 0)
  3. T2 (GPIO 2)
  4. T3 (GPIO 15)
  5. T4 (GPIO 13)
  6. T5 (GPIO 12)
  7. T6 (GPIO 14)
  8. T7 (GPIO 27)
  9. T8 (GPIO 33)
  10. T9 (GPIO 32)

DAC Pins

  1. DAC1 (GPIO25)
  2. DAC2 (GPIO26)

RTC Pins

  1. RTC_GPIO0 (GPIO36)
  2. RTC_GPIO3 (GPIO39)
  3. RTC_GPIO4 (GPIO34)
  4. RTC_GPIO5 (GPIO35)
  5. RTC_GPIO6 (GPIO25)
  6. RTC_GPIO7 (GPIO26)
  7. RTC_GPIO8 (GPIO33)
  8. RTC_GPIO9 (GPIO32)
  9. RTC_GPIO10 (GPIO4)
  10. RTC_GPIO11 (GPIO0)
  11. RTC_GPIO12 (GPIO2)
  12. RTC_GPIO13 (GPIO15)
  13. RTC_GPIO14 (GPIO13)
  14. RTC_GPIO15 (GPIO12)
  15. RTC_GPIO16 (GPIO14)
  16. RTC_GPIO17 (GPIO27)

PWM Pins

All pins which can act as outputs (34 to 39 can not generate PWM)

Serial Pins

  1. GPIO3 (U0RXD)
  2. GPIO1(U0TXD)
  3. GPIO16 (U2RXD)
  4. GIIO17 (U2TXD)

I2C Pins

  1. GPIO 21 (SDA)
  2. GPIO 22 (SCL)
Tagged With esp 32 scl sda , esp32 feather guide , esp32 in arduino , https://thecustomizewindows com/2019/02/guide-to-use-esp32-as-arduino/ , what pins to use on esp32 for led display
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to General Purpose Guide to Use ESP32 as Arduino

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • ESP32 vs Arduino : How ESP32 is Different from Arduino

    ESP32 is a low cost, low power consuming System on Chip (SoC) with integrated Wi-Fi and Bluetooth compatible with Arduino IDE.

  • ESP WROOM 32 : How To Setup ESP32 NodeMCU With Arduino IDE

    Here is Step by Step Guide to Setup on How to Setup ESP32 NodeMCU with Arduino IDE. We Provided Solutions For the Commonly Faced Problems Too.

  • How to Setup Node.js (low.js) on Windows for ESP32

    Low.js is a port of Node.js and Has Certain Requirements to Run. Here is How to Setup Node.js (low.js) on Windows for ESP32.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy