0% found this document useful (0 votes)
29 views

ESP32 Arduino IDE Start Here Guide Ver 1 (2)

This guide provides essential information for getting started with the ESP32 using the Arduino IDE, including hardware recommendations, library sources, and community support. It highlights the importance of using the correct library versions to avoid compile errors and offers tips for successful project design and hardware interfacing. Additionally, it lists various resources and forums for further learning and troubleshooting.

Uploaded by

KGOTSO MORABA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views

ESP32 Arduino IDE Start Here Guide Ver 1 (2)

This guide provides essential information for getting started with the ESP32 using the Arduino IDE, including hardware recommendations, library sources, and community support. It highlights the importance of using the correct library versions to avoid compile errors and offers tips for successful project design and hardware interfacing. Additionally, it lists various resources and forums for further learning and troubleshooting.

Uploaded by

KGOTSO MORABA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

ESP32 Arduino IDE – Start Here Guide

A Hardware – development kits.

Development kits supplied by Espressif the designer, manufacturer and supplier the ESP32 are
available here. We have standardized the ESP32-DevKitC, an entry-level development board, as
first MCU exposure to students – good quality board. There are various third party ESP32 boards
available with varying degrees of quality and added functionality. A search on Google will provide
lots of different solutions. MicroRobotics have a range of devices locally available. DIYElectronics is
another useful source.

B Hardware – memory.
N = Flash memory R = RAM connected with SPI
ESP32-WROOM-32E-N4 Board has only 4 MB Flash memory
ESP32-WROOM-32E-N16R2 Board has 16 MB Board with 2 MB RAM connected with SPI

C Correct library and device information sources.


Library versions 2 and 3 – Named Arduino-esp32 and located on Github is the latest version of the
library in source code with examples – the correct reference! In the library folder you will find the
official Espressif drivers with examples.
Warning: If you copy code from various sources and compile it Arduino IDE, sometimes you will find it
gives compile error for some APIs used in the code. The reason for this is that the code was written
using library version 2 and you are currently using version 3. Some of the APIs has changed in version
3. The Espressif APIs documentation for version 3 are located here and should be consulted to
correct the compile errors by updating the source code to the current API code.

D Espressif ESP32 Arduino community support forum is located here and is a good source of
information.

F Official ‘Getting started’ guide by Espressif is located here. However a very simple guide is located
on the web – follow the steps below:
1. Download latest Arduino IDE from here and install it.
2. Download the Silicon Labs CP210X windows driver and install it.

3. Follow the steps to installing ESP32 boards in Arduino IDE


When setting up Arduino IDE, the URL named
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-
pages/package_esp32_index.json should be replaced with
https://espressif.github.io/arduino-esp32/package_esp32_index.json
G Tips to help you to find and apply informaton to ensure a successful ESP32 project with Arduino
IDE.
1. If require more ADC inputs and DAC outputs, I recommend that you use the following devices below. There
are libraries for the Arduino IDE, just open the library manager and add type in the part number to find and
install it. Ensure the IO pin numbers are as per your physical connections.
• ADS1115 Precision ADC module
• MCP4725 Digital to Analog Converter, 12 Bit, I2C
• HX711 Load Cell Amplifier if you are using load cells
2. Hardware interfacing and design:
• You cannot connect a voltage higher than 3.3 Vdc to any ESP32 input and any output pin voltage will
be 3.3 Vdc if you do not exceed the 12 mA design rule. Make use of a logic level shifer if you need to
connect from and to other devices using 5 Vdc logic
• When you are required to connect loads to output pins, it is highly recommended to not exceed
current sinking or sourcing output current of 12 mA. Some pins configured as outputs can source 40
mA and sink 28 mA where there are specific pins that can only source 20 mA. To ensure safe and
reliable output pin operation, please apply the basic recommended design guideline!
• Follow the basic project hardware rules: - lots of students just ignore these guidelines and then
have unnecessary problems in their projects putting them under pressure!
o Use a star ground wiring layout.
o Keeping analog and digital circuits physically away from each other with their
respective grounds and supplies as taught in EACV301.
o Use screened cable or twisted pair cable for analog inputs and ground the screen closest
to the MCU.
o Use opto-couplers or isolation transformers where electrical isolation is required.
Optocouplers gives cheap and easy electrical isolation. Solid state relays are another
solution. Remember you only have 3.3 Vdc from ESP32 output pin to switch the solid state
relay on. See the specification of the relay when you make a selection to see if it is suitable
for your application.
o Always beter to filter noise in hardware than in software.
o Connectng a 100nF ceramic capacitor across the noisy supply in your system helps to reduce
high frequency noise. Always done directly across the power supply IC pins close to each
IC in the circuit.
3. Helpful websites and forums:
• Here are 372 examples for Arduino IDE using the ESP32 boards ranging from simple to complex.
• Random Nerds 160+ ESP32 Projects, Tutorials and Guides with Arduino IDE
• Instructables Arduino ESP32 projects
• Github Arduino ESP32 projects
• Hackster.io for Arduino with ESP32 forum
• ESP32 Arduino user forum
• reddit forum for ESP32
• htps://chat.openai.com/ A wonderful learning resource if you know how to use it. If you have a
problem and searching for possible solutions, ask ChatGPT. Stumble upon concepts which you do
not understand, ask ChatGPT. You can even ask it to write basic programs or example programs for
specific applications.

You might also like