ESP32 Notes

Example Projects

  • Official MicroPython Page

Product Comparison

micropython general refs

Install micropython IDE

derived from here

Flash $\mu$python

You will need the esptool from espressif (github)

It can be installed via pip from command line:

pip install esptool

First erase the flash

esptool.py --chip esp32 --port /dev/ttyUSB0 erase_flash

From then on program the firmware starting at address 0x1000:

esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 460800 write_flash -z 0x1000 esp32-20190125-v1.10.bin

Arduino Instructions

Install Arduino

Follow this tutorial to install ESP32 support on arduino

Alert

If you have python3 installed and linked to python, you’ll need to direct arduino to use it

echo "alias python=python3" >> .bashrc

then open arduino from the terminal

arduino

Pinout

from https://randomnerdtutorials.com/getting-started-with-esp32/
from https://randomnerdtutorials.com/getting-started-with-esp32/

TL/DR:

  • RX0 / TX0 are used by the onboard silabs USB/serial chip

Pinout Resources:

Examples

MQTT

Serial

Analog

Other Micropython stuff…

FAQ (from amazon)

1
vote

Question:
What board should be selected from the arduino esp32 support?
Answer:
Please use the NodeMCU-32S profile
By Xiuxin Seller on September 17, 2018

1
vote

Question:
What is the size of the Flash memory on the module?
Answer:
4MB
By Xiuxin Seller on March 11, 2019

0
votes

Question:
What is the processor clock speed (Mhz) ?
Answer:
The processor clock speed is 240 MHz, as indicated by esptool.py during "make flash:"

Chip is ESP32D0WDQ6 (revision 1) … see more
By Music Maker on April 1, 2019
2500 Mhz
By Xiuxin Seller on January 7, 2019
Collapse all answers

0
votes

Question:
Where can I find a schematic, or any documentation at all? It came with zilch.
Answer:
https://github.com/Nicholas3388/LuaNode
By Christian U. on May 2, 2019
https://spacehuhn.com
By GEORGE ALLEN on May 1, 2019
Collapse all answers

0
votes

Question:
What board should I choose? I followed espressif git configurations
Answer:
problem with this one is it's too wide to fit on a standard breadboard.. you'll need to be creative. https://www.youtube.com/watch?v=RtUIegaN644
By I'm Rich James on August 2, 2018

0
votes

Question:
why is there a capacitor soldered from the "en" button to some weird point on the board. this does not show up in the description
Answer:
It allows the board to automatically enter boot mode to receive code uploads. Otherwise, you have to hold the boot button during code upload.
By Spaceboyr00 on March 9, 2020
Sorry I don’t know the answer.
By Americubariqueño on November 18, 2019
Collapse all answers

0
votes

Question:
Does this board can read in analog values?
Answer:
Yes, there are 15 analog inputs and the analog voltages 0v to 3.3v map to digital values of 0 to 4095 respectively.
By Larry J. on January 29, 2019
THere are 2 ADC's Each with about 7 AI's. However, ADC 2 is not available when WiFi is active. So, yes its there, but not really
By jt on July 22, 2019
Collapse all answers

0
votes

Question:
Where can I find a pinout? Which pins are analog?
Answer:
Google search with name of the board
By Dawid W. on August 18, 2021

0
votes

Question:
can this charge a lipo battery?
Answer:
You need additional module to charge a battery
By Dawid W. on August 18, 2021

0
votes

Question:
What is the spacing on the mounting holes?
Answer:
approx. 47mm x 23.5mm (I never use the mounting holes, 30 soldered pins is more than enough)
By Steve Weingart on August 18, 2021
They fit a standard breadboard. So 1/10" or 2.54mm
By Jerry Stephens on August 18, 2021
46 x 18mm and 46 x 19mm on the other side as close as I can measure
By Jim V on August 18, 2021
The board is about quarter size in width
By Dawid W. on August 18, 2021
Collapse all answers