I'm using an ultrasonic range finder (HC-SRO4) which I have connected, via an Arduino and my computer’s serial port, to code in Supercollider. I have a Bela Mini and I'd like to use it with the HC-SRO4 and no computer.
a. Can Supercollider somehow run simultaneously with the Bela IDE so that I can use Bela IDE code for running the HC-SRO4 (https://forum.bela.io/d/283-how-do-i-connect-a-hc-sr04-ultrasonic-sensor) and have Supercollider somehow access its distance values as they are output?
b. How hard would it be to translate Bela IDE code for running the HC-SRO4 into Supercollider code in a way that would make the distance values accessible to the Supercollider code I have already written?
c. I’ve looked at the Bela Forum posts regarding connecting an Arduino to Bela via a serial port and using Supercollider. It looks like there has been some success with this but no clear solutions are yet available?
Thanks very much for any suggestions!