Skip to content
parasquid edited this page Oct 2, 2019 · 18 revisions

M5Stack

https://m5stack.com/

ESP-IDF

https://docs.espressif.com/projects/esp-idf/en/latest/get-started/index.html https://docs.espressif.com/projects/esp-idf/en/latest/get-started/linux-setup.html

ESPduino-32

This is an ESP-32 on an Arduino UNO like board. Some shields are compatible, but others (especially shields that are not R3 compliant and thus doesn't use the standard SCL and SDA headers above the AREF) are not compatible.

https://github.com/SmartArduino/SZDOITWiKi/wiki/ESP8266---ESPduino-32 https://github.com/SmartArduino/ESPboard/blob/master/ESPduino-32s.pdf

SPI

MOSI MISO and SCK are the same as the Arduino UNO. SS in on pin 5.

#define SS 5

#define MOSI 23

#define MISO 19

#define SCK 18

I2C

SDA and SCL are the same as the Arduino UNO R3 but they are not present where they are as A4 and A5 on the UNO. Unfortunately, on this board the SENSOR_VP/36 and SENSOR_VN/39 pins are where A4 and A5 should be, and these pins are input only so they can't be used for I2C communications.

If you need to use those pins (e.g. using an old Adafruit data logging shield whose RTC I2C is connected on A4 and A5) you can use jumper wires to connect A4 to SDA and A5 to SCL

#define SDA 21

#define SCL 22

UART

These are the same as the Arduino UNO.

#define TX0  1

#define RX0  3

Others

Arduinos usually have the builtin led at pin 13; ESP32-duino has it on pin 2.

#define LED_BUILTIN 2

Arduino Pin Mappings

Arduino ESPduino-32
D02 26
D03 25
D04 17
D05 16
D06 27
D07 14
D08 12
D09 13
D10 05
D11 23
D12 19
D13 18
A0 02
A1 04
A2 35
A3 34
A4 36
A5 39
Clone this wiki locally