Wireless Data Transfer between Arduino BLE 33 Rev2 and MaxMSP

Hi! I'm using an Arduino Nano 33 BLE Sense Rev2 for violin motion tracking. To visualize data from the Arduino. I want to send OSC data to Maxmspjitter. I can use a serial communication with a cable, but I need a wireless connection.

I found an OSC for Arduino by CNMAT, but it does not support BLE yet.

Does anyone know how to achieve a wireless data transfer between Arduino BLE 33 Rev 2 and maxmspjitter?

Thanks!

Could you envision moving to ESP32 + IMU + WiFI instead of Nano 33 BLE Sense + BLE communication ?

Alternatively since the CNMAT OSC library doesn’t support BLE, a "simple" wireless solution would be to use BLE to transmit your data in a custom format and then have a bridge program on your computer that receives BLE data and forwards it as OSC to Max/MSP

➜ On the Arduino, you configure a BLE peripheral with a custom service and characteristic, and write your motion-tracking data, such as accelerometer or gyroscope values, to that characteristic. On your computer, you run a small script, say in Python using the bleak library for BLE, which connects to the Arduino, reads or subscribes to the characteristic notifications, and forwards the data as OSC to Max/MSP via UDP. Max receives the OSC messages and parses them so you don't use CNMAT’s library for BLE while still providing wireless OSC.

Thank you for your reply and suggestion!

Suggestion 1: ESP32 + IMU (Nano 33 ble, it is a IMU sensor) + WIFI

In this case, I need only one more sensor (ESP32), right?

Suggestion 2: Using a Python Bridge

Sounds cool! I'll try it, and if it does not work, I can try suggestion 1.

Hi @yellowisland. It sounds like a cool project!

I case you decide you want a board that has Wi-Fi communication capability and an on-board IMU, you may consider the Nano 33 IoT:

https://docs.arduino.cc/hardware/nano-33-iot/

Of course - should have thought of that one

Thank y'all! I'll definitely try it asap :slight_smile: @ptillisch, @J-M-L

1 Like