Using Arduino Nano BLE33 Sense for image classification problem

Hello,

I am using an Arduino Nano BLE33 Sense for image classification. My goal is to set some output pins if the AI detects a class. How can I code this in the image classification sketch I downloaded from Edge Impulse? I tried it with

if (result.classification[1].value >= 0.7) { digitalWrite(11, HIGH);};

but it doesn’t work. Also I tried to write the value in a different variable and read the new variable, but this also didn’t work.

Does the result.classification[x].value variable even store the results and can I read this out? Or am I completely wrong?
Thx for your help.

Hello @Gamingko ,

I wrote something similar some time ago. Could you try that (and adapt it form image classification):

Or How let my car kit to recognize my hand motion using Arduino Nano ble 33 sense - #2 by louis

Does the result.classification[x].value variable even store the results

Yes the inference results are stored in the results object.

What is attached to your digital pin 11?

Regards,

Louis

Hello @louis

thanks for your help, it is working now.

1 Like