IoT playground for myself and eventually my daughter to play with. Started out as a simple project to play with hardware and learn about embedded programming. Ballooned into doing things the hard way quickly, mainly as a learning experience.
Tools used:
- Python libraries / tools
- PlatformIO
- Poetry
- Vagrant - For running a local Kubernetes "cluster"
- k0sctl - Kubernetes cluster setup automation
- protobuf-compiler & protobuf-c-compiler
Running pio run -t menuconfig is needed to set several defaults depending on the board you're using.
Look in the Components section and read through the options, but in particular
- Set the board memory sizes
- Enable the sensors your attaching for the particular build, and the pins I2C is connected to
- Set the partitions to custom, and which csv to use
pio run -t upload && pio device monitor --raw
Or you can do it through vscode
espcoredump.py -p /dev/ttyACM0 info_corefile ~/coding/iot-boards/esp-idf-humidity/.pio/build/featheresp32-s2/firmware.elf -d 1
PlatformIO doesn't directly support doing this so you have to go into the
framework folder directly, set IDF_PATH and then go into components to find
this file
Additionally there were I couple silly mods to the python modules that had to be made since the S2 I have needs to be set to not reset afterwards.