Code Monkey home page Code Monkey logo

workshop-iotc-arduino-portenta's Introduction

IoT Central & Arduino PRO: Factory 5.0: ML-Powered Manufacturing Workshop

Thank you for registering for Edge Impulse's Factory 5.0: ML-Powered Manufacturing Workshop with IoT Central & Arduino Pro!

First, please read the Workshop Pre-requisites.

Glass Breaking Public Edge Impulse Project: https://studio.edgeimpulse.com/public/55141/latest

Food Quality Assurance Public Edge Impulse Project: https://studio.edgeimpulse.com/public/55159/latest

Requirements

Hardware

Tools

The arduino-cli tool is used to build and upload the Edge Impulse firmware to the Arduino Portenta H7 board. View installation steps at the link below:

The Edge Impulse firmware depends on some libraries and the Mbed core for Arduino. These will be automatically installed if you don't have them yet during the build script.

Building the application

Note: If you replaced the edge-impulse-sdk with a new SDK from an exported Arduino library from the Edge Impulse Studio then you must run the src/edge-impulse-sdk/create-arduino-library.sh script prior to building the application.

  1. Build the application:

    ./arduino-build.sh --build
    
  2. Flash the application:

    ./arduino-build.sh --flash
    

Using your own exported Arduino library from Edge Impulse Studio

Extract the contents of the exported Arduino library and replace edge-impulse-sdk, tflite-model and model-parameters in the src directory. Then run the create-arduino-library.sh script prior to building the application.

cd src/edge-impulse-sdk/
sh create-arduino-library.sh

Flashing the pre-compiled firmware

Enter the directory for either the Food Quality Assurance (pre-compiled/food-quality) or Glass Breaking (pre-compiled/glass-breaking) use case, then use the arduino-cli to flash the firmware to the Portena H7, for example:

cd pre-compiled/glass-breaking/
arduino-cli upload -p $(arduino-cli board list | grep Arduino | cut -d ' ' -f1) --fqbn arduino:mbed_portenta:envie_m7:split=100_0 --input-dir .

Then, start inferencing on the edge with: edge-impulse-run-impulse (or edge-impulse-run-impulse --continuous for the glass breaking use case)

Known Issues

  • Image corruption after audio capture when frame buffer is placed in SDRAM (EI_CAMERA_FRAME_BUFFER_SDRAM).

A simple work-around is to avoid image capture after audio capture, otherwise reset the board.

Troubleshooting

  • Not flashing? You can double tap the button on the board to put it in bootloader mode.

  • Invalid DFU suffix signature?

    dfu-util: Invalid DFU suffix signature
    dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
    dfu-util: Cannot open DFU device 2341:035b
    dfu-util: No DFU capable USB device available
    Upload error: Error: 2 UNKNOWN: uploading error: uploading error: exit status 74
    

    Having the above issues? Then copy 20-arduino.rules to /etc/udev/rules.d/ and try again.

workshop-iotc-arduino-portenta's People

Contributors

yennster avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.