handheld experiment and systems design nightmare.
-
- an esp32 microcontroller
- USB cable ("data" cable)
-
- ESP-IDF v5.x
- Python 3.9+ (ESP-IDF needs it, for venv)
- CMake
-
- vscode (any forks would also do)
- wokwi access key && wokwi extension for vscode(or forks)
-
get ESP-IDF:
-
arch linux:
using yay
> yay -S esp-idfif it installed successfully it should tell you to do
> source /opt/esp-idf/export.sheither that or something similar which btw should be ran in every new shell that is meant to be used for esp-idf related activities. ideally it should be installed in:
/usr/share/esp-idfif not then just follow the logs they should be able to just guide you.
once all done you can do
> idf.py --versionto verify the install.
-
others:
follow the official guide: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/linux-setup.html
-
-
other software requirements:
i think you got this. -
clone this repo:
> git clone https://github.com/epxzzy/t-8.git> cd t-8
-
Install ESP-IDF Tools Installer:
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/windows-setup.html -
Use ESP-IDF PowerShell (important — don’t skip this)
Verify installation:
> idf.py --version -
other software requirements:
i think you got this one probably. -
clone this repo:
> git clone https://github.com/epxzzy/t-8.git> cd t-8
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/macos-setup.html
hope this helps :)
this part should be similar for most machines.
instructions below assume you are in the root directory.
if you are on linux run this before you proceed with anything:
> source /opt/esp-idf/export.sh
set target:
> idf.py set-target esp32
add dependency:
> cd firmware && idf.py add-dependency "espressif/esp_websocket_client^1.6.1"
and then to build:
> cd ../ && idf.py build
if you have the hardware, plug it in and then:
> idf.py flash monitor
if you do not have the hardware(holy brokie),
i am setting up wokwi so you can simulate the
thing. i will expand more on this later.
first install via the official installation guide:
https://docs.wokwi.com/vscode/getting-started#installation
once you have the extension activated you can just hit ctrl + shift + p
and input Wokwi: Start Simulation to run it. its that simple.
make a few changes, tweak a few things, build via espidf and the simulation
will automatically reflect the changes.
if you would like to tweak wokwi related stuff:
./diagram.json - responsible for the circuitry
./wokwi.toml - wokwi configuration