Using the Arduino IDE
-
Go to Files > Preferences and add https://dl.espressif.com/dl/package_esp32_index.json in Additional Boards Manager URLs
-
Go to Tools > Boards > Board Managers, search for esp32 and install
Using the PlatformIO Cli
- To install plataformIO cli on debian based distros:
user@computer:~$ sudo python -c "$(curl -fsSL https://raw.githubusercontent.com/platformio/platformio/develop/scripts/get-platformio.py)"
- To create a new project do:
user@computer:~/project_folder$ pio init --board=node32s
- To compile:
user@computer:~/project_folder$ pio run
- To upload:
user@computer:~/project_folder$ pio run -t upload --upload-port=/dev/ttyUSB0
Python utility to plot the data present in a serial port formatted in CSV.
- Usage:
user@computer:~/serialPlotter$ python main.py