Inference on Arduino Nano 33 BLE Sense via Bluetooth

Hello, I am kind of new to Edge Impulse and looking forward to putting into practice some of the things I am learning.

I was wondering, after collecting data, train a model and deploy it to the Arduino Nano 33 BLE Sense, if it will be possible to perform inference via Bluetooth. I mean connecting the Arduino Nano 33 BLE Sense to my PC via Bluetooth and able to see inference results either via the Arduino serial port or terminal or any other means.

Technically I will like to know if there is any way to connect the Arduino Nano 33 BLE Sense to my PC without using the cable and able to perform inference and see the results.

I will appreciate any assistance to guide me on this.

1 Like

Hi @Vincent,

What you can do is build and train your model in Edge Impulse, then from the deployment tab select the “Arduino Library” option. Follow the instructions here on how to do this: https://docs.edgeimpulse.com/docs/running-your-impulse-arduino

Then, from the Arduino IDE, open and save the Arduino Nano 33 BLE Sense inferencing example sketch included in the deployed Edge Impulse library, and integrate the Arduino Bluetooth code into your sketch by following the tutorial here: https://docs.arduino.cc/tutorials/nano-33-ble-sense/ble-device-to-device specifically sending the results from the ei_impulse_result_t result structure to your BLE GATT characteristic.

Please let me know if you have any questions!

1 Like

Thanks for the prompt response, I will check this out once my board arrives and I will give update here.
However, if you have implemented this already, a sample code of your implementation could save me some time.

Hello @Vincent,

The process is somehow similar to what we have done during the Sparkfun Workshop:


Here is the direct link of Arduino Sketch to adapt: https://github.com/edgeimpulse/example-SparkFun-MicroMod-nRF52840/blob/main/arduino-examples/inference-over-bluetooth/inference-over-bluetooth.ino

Regards,

Louis

@louis Thanks, this will be helpful. Will look into it once my board arrives.

2 Likes

@Vincent What happened? did it work?

1 Like