Frank Haverland e6cb9d67ee #1649 unnecessary np check (#1736) 3 tahun lalu
..
.helper f9939023c6 Rolling 20220925 3 tahun lalu
components e6cb9d67ee #1649 unnecessary np check (#1736) 3 tahun lalu
include a2ec5cc355 Update defines.h (#1726) 3 tahun lalu
lib 1a0feb4f19 compatibitly mit esp-idf pure 5 tahun lalu
main b9abbafefc Update SoftAP 3 tahun lalu
test f6369ff237 Code translation (#1626) 3 tahun lalu
.gitignore f04ca2bdde We should not edit sdkconfig.esp32cam as it is an autogenerated file! Instead we can do our condfiguration in sdkconfig.defaults. 3 tahun lalu
CMakeLists.txt 8bf4939ac1 added tflite-lib (resp. tflite-micro-esp-examples) again as submodule (master) 3 tahun lalu
README.md 38f6e49d00 Add USB port to readme 3 tahun lalu
dependencies.lock a122b37c81 Quick Fix for MQTT Init Problem 3 tahun lalu
partitions.csv 1a0feb4f19 compatibitly mit esp-idf pure 5 tahun lalu
platformio.ini eff713a2a9 Moved softAP to the very first checks 3 tahun lalu
sdkconfig - Kopie.defaults ee3b15990d Update defines 3 tahun lalu
sdkconfig - Kopie.esp32cam ee3b15990d Update defines 3 tahun lalu
sdkconfig.defaults ee3b15990d Update defines 3 tahun lalu

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 --upload-port /dev/ttyUSB0

Alternatively you also can set the UART device in platformio.ini, eg. upload_port = /dev/ttyUSB0

Monitor UART Log

pio device monitor -p /dev/ttyUSB0

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