• 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 , https://thecustomizewindows com/2019/02/guide-to-use-esp32-as-arduino/ , what pins to use on esp32 for led display

This Article Has Been Shared 708 Times!

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

  • 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

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

  • The Importance of Voice and Style in Essay Writing April 1, 2023
  • What Online Casinos Have No Deposit Bonus in Australia March 30, 2023
  • Four Foolproof Tips To Never Run Out Of Blog Ideas For Your Website March 28, 2023
  • The Interactive Entertainment Serving as a Tech Proving Ground March 28, 2023
  • Is it Good to Run Apache Web server and MySQL Database on Separate Cloud Servers? March 27, 2023

About This Article

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

Source:The Customize Windows, JiMA.in

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

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT