SybexXx be6844c719 Log flow parameter section starts at info level 19 giờ trước cách đây
..
.helper f9939023c6 Rolling 20220925 4 năm trước cách đây
components be6844c719 Log flow parameter section starts at info level 19 giờ trước cách đây
include f322778f43 Enforce VGA camera output and retain sensor-side zoom 1 ngày trước cách đây
lib 1a0feb4f19 compatibitly mit esp-idf pure 6 năm trước cách đây
main 53b8010bd6 Increase HTTP URI handler limit for flow controls 20 giờ trước cách đây
test 6c2f19a6a6 feat(postprocessing): add ContinuousLastDigit option 4 tuần trước cách đây
.gitignore dc9f1aad27 new images on dig-class100, older ana-class100 removed (#2545) 3 năm trước cách đây
CMakeLists.txt 1e60d839b7 added and activated espressif mDNS service (#3494) 1 năm trước cách đây
README.md c57cd83948 Update README.md 1 năm trước cách đây
dependencies.lock 42d4916cb8 Rewrite InfluxDB Interfache (#3520) 1 năm trước cách đây
partitions.csv 1a0feb4f19 compatibitly mit esp-idf pure 6 năm trước cách đây
platformio.ini 3da0e71246 Update platform version to 6.11.0 10 tháng trước cách đây
sdkconfig.defaults a862098b6e Set lwIP socket pool limit to twelve 22 giờ trước cách đây
sdkconfig.esp32cam-board-rev3.defaults 245302c6ca Release Preparations (#1925) 3 năm trước cách đây
sdkconfig.esp32cam-cpu-freq-240.defaults 245302c6ca Release Preparations (#1925) 3 năm trước cách đây
sdkconfig.esp32cam-debug.defaults 245302c6ca Release Preparations (#1925) 3 năm trước cách đây
sdkconfig.esp32cam-dev-himem.defaults 245302c6ca Release Preparations (#1925) 3 năm trước cách đây
sdkconfig.esp32cam-dev-task-analysis.defaults 245302c6ca Release Preparations (#1925) 3 năm trước cách đây
sdkconfig.esp32cam-dev.defaults 245302c6ca Release Preparations (#1925) 3 năm trước cách đây

README.md

Build

Preparations

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

Update Submodules

cd /components/submodule-name (e.g. tflite-micro-example)
git checkout VERSION (e.g. HASH of latest tflite-micro-example build)
cd ../../ (at the code level)
git submodule update --init

You may need to manually delete some directories in the 'components' folder beforehand, as they were not deleted during checkout (before 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 main
      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

Update Parameters

If you create or rename a parameter, make sure to update its documentation in ../param-docs/parameter-pages! Check the ../param-docs/README.md for more information.