CaCO3 b45b0f6a2a . il y a 3 ans
..
.helper 957138960a Rolling 20211230 il y a 4 ans
components d0fb1fc0f1 removed zip files il y a 3 ans
include 749fc6699c Merge remote-tracking branch 'origin/gpio-handler' into rolling il y a 4 ans
lib 1a0feb4f19 compatibitly mit esp-idf pure il y a 5 ans
main ee724d372d remove autogenerated version files il y a 3 ans
test d807334141 Merge branch 'pr/1044' into rolling il y a 3 ans
.gitignore ee724d372d remove autogenerated version files il y a 3 ans
CMakeLists.txt 8bf4939ac1 added tflite-lib (resp. tflite-micro-esp-examples) again as submodule (master) il y a 3 ans
README.md b45b0f6a2a . il y a 3 ans
dependencies.lock 6e0a7a742e Rolling 210527 il y a 4 ans
partitions.csv 1a0feb4f19 compatibitly mit esp-idf pure il y a 5 ans
platformio.ini 79d1e6b932 Rollling 20220910 il y a 3 ans
sdkconfig 3f58086aa1 Re-init MQTT if it failed last time, added log messages il y a 3 ans
sdkconfig.esp32cam 86ba3e9bf4 autogenerated file got update => maybe we also can remove it? il y a 3 ans
sdkconfig.esp32cam.old 11c33f81dd Rolling 20220206 il y a 4 ans
sdkconfig.old 957138960a Rolling 20211230 il y a 4 ans

README.md

Build

Preparations

git clone https://github.com/jomjol/AI-on-the-edge-device.git
cd AI-on-the-edge-device
git checkout rolling
git submodule update --init

Build and Flash within terminal

See further down to build it within an IDE.

Compile

cd code
platformio run --environment esp32cam

Upload

pio run --target upload

If it doesnt find the device:

  1. make sure it is in bootloader mode
  2. set the UART device correctly: In platformio.ini, set upload_port correctly, eg. upload_port = /dev/ttyUSB0

Monitor UART Log

pio device monitor

Build and Flash with Visual Code IDE

  • Download and install VS Code
  • Install the VS Code platform io plugin
    • Check for error messages, maybe you need to manually add some python libraries
    • e.g. in my Ubuntu a python3-env was missing: sudo apt-get install python3-venv
  • git clone this project

    • in Linux:

      git clone https://github.com/jomjol/AI-on-the-edge-device.git
      cd AI-on-the-edge-device
      git checkout rolling
      git submodule update --init
      
  • in VS code, open the AI-on-the-edge-device/code

    • from terminal: cd AI-on-the-edge-device/code && code .
  • open a pio terminal (click on the terminal sign in the bottom menu bar)

  • make sure you are in the code directory

  • To build, type platformio run --environment esp32cam

    • or use the graphical interface:
    • the build artifacts are stored in code/.pio/build/esp32cam/
  • Connect the device and type pio device monitor. There you will see your device and can copy the name to the next instruction

  • Add upload_port = you_device_port to the platformio.ini file

  • make sure an sd card with the contents of the sd_card folder is inserted and you have changed the wifi details

  • pio run --target erase to erase the flash

  • pio run --target upload this will upload the bootloader.bin, partitions.bin,firmware.bin from the code/.pio/build/esp32cam/ folder.

  • pio device monitor to observe the logs via uart