• 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 :

#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 , what pins to use on esp32 for led display

This Article Has Been Shared 529 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic 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

  • DIY 7 Segment LED Display Calculator (Arduino & Others)

    Here Are Schematics, Parts, Circuit Diagrams, Codes For Building DIY 7 Segment LED Display Calculator (Which Includes Arduino Project).

  • Setup Visual Studio Code on Mac For Debugging Arduino, WordPress : Part 2

    Here is Part 2 of How to Setup Visual Studio Code on Mac For Debugging Arduino, WordPress etc. We Have Shown to Setup WordPress Debug Setup.

  • Cheapest Components to Learn Arduino and Other Electronic Projects

    Limited Budget Often a Factor Which Affects Learning. Here is a List of Cheapest Components to Learn Arduino and Other Electronic Projects.

  • How to Develop Android App for Arduino

    You Can Develop Small Android Apps and to Control Arduino Projects for DIY Home, Car etc Automation. Here is How to Develop Android App for Arduino.

  • Which Kind of Multimeter Electronics Beginner Should Buy?

    Which Kind of Multimeter Electronics Beginner Should Buy? Any Multimeter Which Works. Technically You Should Know Formulas, Coding and Use Multimeter For Confirmation.

Additionally, 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

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

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 (20K Followers)
  • Twitter (4.9k Followers)
  • Facebook (5.8k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.2k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • What is a Loosely Coupled System? January 17, 2021
  • How To Repack Installed Software on Debian/Ubuntu January 16, 2021
  • Components of Agile Software Development January 15, 2021
  • What is Conway’s Law? January 14, 2021
  • Effects of Digitization on Companies : Part XIII January 13, 2021

 

About This Article

Cite this article as: Abhishek Ghosh, "General Purpose Guide to Use ESP32 as Arduino," in The Customize Windows, February 23, 2019, January 17, 2021, https://thecustomizewindows.com/2019/02/guide-to-use-esp32-as-arduino/.

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

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

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