Hi,
is there a way to display the live classification result on an OLED I2C screen (128x32) using the Arduino nano 33 BLE sense?
I found this example for displaying sensor reading: https://github.com/kegedy/523-Assignments/blob/b42a7b360ce4dcf3f6e07fc6a2d4397b3bc2366b/SmartAlignment_arduino/arduino_display_BLE.ino
Thanks,
Wolf
Hi @Wolf,
Sure this is something that you could do.
Using our Arduino libraries, you can directly retrieve the predictions data from the result structure:
// print the predictions
ei_printf("Predictions (DSP: %d ms., Classification: %d ms., Anomaly: %d ms.): \n",
result.timing.dsp, result.timing.classification, result.timing.anomaly);
for (size_t ix = 0; ix < EI_CLASSIFIER_LABEL_COUNT; ix++) {
ei_printf(" %s: %.5f\n", result.classification[ix].label, result.classification[ix].value);
In the for loop you can then call the OLED I2C function to display the content of result.classification
.
Aurelien
2 Likes
Thanks a lot,
this sounds quite straight-forward. But I don’t think I can put this together easily. Is there an example that shows this, maybe with another board?
Wolf