ESP32 - Core board
The esp32-coreboard-v2 is a development board based on the Espressif ESP32 a powerful chip that is used on many different board mostly because of the built-in radio that can be used for WiFi or Bluetooth wireless connections.
Interfaces
| Interface | Hardware Supported | TinyGo Support |
|---|---|---|
| GPIO | YES | YES |
| UART | YES | YES |
| SPI | YES | YES |
| I2C | YES | YES |
| ADC | YES | YES |
| PWM | YES | YES |
| USBDevice | NO | NO |
| WiFi | YES | YES |
| Bluetooth | YES | YES |
Pins
| Pin | Hardware pin | Alternative names |
|---|---|---|
CLK |
GPIO6 |
|
CMD |
GPIO11 |
|
IO0 |
GPIO0 |
PWM1_PIN |
IO1 |
GPIO1 |
TXD, UART_TX_PIN |
IO2 |
GPIO2 |
LED, PWM0_PIN |
IO3 |
GPIO3 |
RXD, UART_RX_PIN |
IO4 |
GPIO4 |
PWM2_PIN |
IO5 |
GPIO5 |
SPI0_CS0_PIN |
IO9 |
GPIO9 |
SD2, UART1_TX_PIN |
IO10 |
GPIO10 |
SD3, UART1_RX_PIN |
IO16 |
GPIO16 |
|
IO17 |
GPIO17 |
|
IO18 |
GPIO18 |
SPI0_SCK_PIN |
IO19 |
GPIO19 |
SPI0_SDI_PIN |
IO21 |
GPIO21 |
SDA_PIN |
IO22 |
GPIO22 |
SCL_PIN |
IO23 |
GPIO23 |
SPI0_SDO_PIN |
IO25 |
GPIO25 |
|
IO26 |
GPIO26 |
|
IO27 |
GPIO27 |
|
IO32 |
GPIO32 |
|
IO33 |
GPIO33 |
|
IO34 |
GPIO34 |
ADC0 |
IO35 |
GPIO35 |
ADC1 |
IO36 |
GPIO36 |
SVP, ADC2 |
IO39 |
GPIO39 |
SVN, ADC3 |
SD0 |
GPIO7 |
|
SD1 |
GPIO8 |
|
TCK |
GPIO13 |
|
TD0 |
GPIO15 |
|
TDI |
GPIO12 |
|
TMS |
GPIO14 |
Machine Package Docs
Documentation for the machine package for the ESP32 Core board v2
Flashing
-
Flash your TinyGo program to the board using this command:
tinygo flash -target=esp32-coreboard-v2 [PATH TO YOUR PROGRAM] -
The ESP32 board should restart and then begin running your program.
Troubleshooting
Goes here
Notes
WiFi
You can use the onboard wireless chip for WiFi using the espradio package.
For more information, see https://github.com/tinygo-org/espradio
Bluetooth
You can use the onboard wireless chip for Bluetooth Low Energy using the bluetooth package.
For more information, see https://github.com/tinygo-org/bluetooth
On the ESP32, Bluetooth needs 64KB of RAM. TinyGo only reserves it in programs that use Bluetooth.