Possible to send wi-fi data to RNBO?

Markus Baumknecht's icon

hi guys!

I need some guidance regarding a project that involves sending some wi-fi data, and wondering if RNBO is the tool for it.

Currently I'm sending gyroscope data from a battery-powered Arduino via wi-fi to Max running on my laptop (specifically I'm using the Sadam library's sadam.udpReceiver object) and using the data there to control some musical parameters.

Now, I'd like to ditch the laptop altogether and create a more mobile solution to play my audio, and thought about using RNBO and a Raspberry Pi 4 for that. Never worked with either before.

I've been browsing through the documentation and not quite sure now if RNBO + Raspberry Pi will be able to do what I need from it, namely

1. auto connect to the wi-fi network set up by my Arduino sending device
2. receive wi-fi / udp data on the Raspberry Pi

If people could give some informed information on these two, I'd greatly appreciate it.

Thirdly, and as a minor aside, I think I read that you need an audio interface to use RNBO on Raspberry Pi, is that correct? originally I was hoping that I could get away with the inbuilt audio jack ... didn't quite understand why exactly I need the interface or if I actually need it only for setup, and why I can't just use the built-in audio jack.

many thanks & best wishes to everyone

Markus

Florian Demmer's icon

Hi there.

RNBO doesn’t provide all the things you are looking for out of the box. However you can send OSC information to your exported patch running on the Pi.

One way to achieve that would be to run a script or program on the Pi alongside the RNBO runner, which also easily allows you to customize your setup or interact with more OS level things like networking. There is an example available in the docs that highlights how to pipe potentiometer data into RNBO via OSC.

While different it might show how to run a script to connect to the right WiFi. In your script you could also do any necessary handshake to tell the Arduino about the IP address and port or use it to forward the received data into RNBO.

Wrt using an audio interface. We recommend using an interface due to limitations of the audio out on the Raspberry Pi that might otherwise cause issues.

Either way - exciting project and curious how it turns out.

Thanks
Florian

Markus Baumknecht's icon

hi Florian
thanks for your advice & getting back about this. I'll test it and will get back to you ... won't get around to do it anytime in the next two months but I'll try to leave a comment if this thread is still open by then.
best wishes!