I know that some of you have already experimented with the Nano 33 IoT, so maybe somebody has a suggestion/solution for me. Here’s what’s going on:
- I took this code example: https://www.edgeimpulse.com/blog/platformio, replaced the sensor library with the one used by Nano 33 IoT (LSM6DS3), connected it to the data forwarder, and acquired some gesture/movement data;
- built and trained a model, ran some tests with the board, no problems here;
Next step is deployment to the board, and here I ran into some problems:
I build the Arduino library, I include it in Arduino IDE (unfortunately it seems hard to do it in PlatformIO). I get the “accelerometer” example, and replace the sensor library again.
I also had to add
#include <cstdarg> otherwise it wouldn’t compile.
I build it, flash it, it runs on the Arduino Nano 33 IoT board, but… it’s not doing any inference.
It’s supposed to tell me the probabilities for various classes, but it doesn’t give any, just prints the standard, hardcoded output (“Predictions…, Classification…”).
As if it either wasn’t sampling the acceleration, or running any inference.
So just out of curiosity I built the Nano BLE Sense firmware from the exact same project, and flashed it to the BLE Sense: it works like a charm.
I can’t figure out what’s going on: the API between the two sensor drivers is the same, and in fact it works no problem when acquiring data, or doing live classification. Is there more that I need to fix in the Arduino library example, to make sure that it runs OK on a slower board?