Hi all,
I'm working on a project where I need to send messages from Puredata to Arduino. My goal is to generate control messages within PD, and drive 4 spark plugs which are driven by 4 Arduinos through pwm outs.
I'm using Arduino because when I drive the spark plugs through Bela, it crashes even I'm using optocouplers for isolation. The coils are generating thousands of volts and kicking back some voltages that affects my audio and video monitors as well. However, Arduino does it without getting affected.
So, I will use Arduinos as spark plug drivers, and I want to use Bela as the base, where it sends control messages(frequency, trigger, boolean) to 4 Arduinos at the same time. What would be the best option for this communication. I searched the forum but couldn't find PD to Bela serial communication. If I could compile pd-extended, would it be possible to use comport object and send data to Arduino's TX pin?
Any ideas?