Hello there,
I have used Bela for some time, but primarily for audio, using Pure Data.
Works great.
However, I have some questions about implementing some motos:
what I would like to do is convert some some simple stepper motor code from Arduino to Bela using Pure Data so that I can combine it with my audio patch and run both my audio and my motors off the Bela, rather than using an Arduino and a Bela separately (or, as I have also been inefficiently doing as Raspberry pi and and Arduino) as I have been doing.
I have looked through the obvious tutorials, and it is clear to me that I should be able to use my 5V output and Ground from the Beaglebone, via the pins on top of the Bela but I am not sure what pins would correspond to the Arduino pins I have been using (on both Mega and Duemilanove) which are PWM 8 9 10 11.
My first question is therefore, which Bela/Beaglebone pins should I use for this, and how do I address them in Pd? Apologies if this is answered elsewhere, I have certainly been looking and reading.
Second, am I right in thinking that if I want 5V out I need to plug the Bela in via the barrel plug rather than simply USB?
However, for control I am sending the Bela numbers via a Python script running on another computer, so I do need to have the USB connection intact to receive these in Pd on Bela (this is already working well, via [netrecieve]. Will having the USB and the barrel adaptor plugged in cause issues?
and (perhaps) finally, I am using one of these drivers (
so that makes things easier. I guess this also means that I don't need diodes or transistors between the Bela and the motor?
THANKS I realize this is a multi-part question, really appreciate this forum, super helpful.
Jorge