Go Down

Topic: pduino+arduino mega+20 servos (Read 1 time) previous topic - next topic

manut

hi everybody,
Like I said in the subject, I use pure data(pduino) with an arduino mega and I'd like to control +/- 24 servos for a big project, I want to control several robot musicians,here is a video of the work in progress http://www.dailymotion.com/video/xepro5_robot-drummer-work-in-progress-3_creation but I'm just able to control 14 servos, which is not so bad, but unfortunately not enough for my project, the pins that are working are 2,3,4,5,6,7,8,9,10,11,12,13,14 ....but I'm really frustrated when I see the number of pins on the mega board(more than 50..!!) or should I use two duemilanove? if it's the case, is it possible to use pduino with two duemilanove boards??
thanx
manu

PaulS

Quote
the pins that are working are 2,3,4,5,6,7,8,9,10,11,12,13,14

What happens on the other pins?

What code do you have on the Arduino?

manut

hi,
on the other pins, the servos don't move when I try to control them, but  I' m able to control leds (switch on or off).
the code on the arduino is the StandardFirmata from arduino 0021 Examples

PaulS

Perhaps you are not aware that Firmata is not fully supported on the Mega, because it is not aware of all the extra pins that the Mega has.

manut

...and do you know if it's possible to write something to make firmata aware of all the pins, or you think it's not possible to do it? and if it's not possible, do you know a way to control 24 servos with arduino and pure data? two boards synchronized?? :-/
thanx
manu

PaulS

Firmata is just an interface that maps serial messages to actions on the Arduino. You don't really need to use it.

If you feel that it would make your life easier, you could be the one to step up and make Firmata Mega-compatible.

manut

When you say I don't really need it, you mean that I could use another code on the arduino?
For sure it would make my life easier to have a Firmata Mega-compatible... I wish I could, but I'm not good enough...I tried but... :-/

PaulS

Quote
you mean that I could use another code on the arduino?

Yes. You can write your own sketch to handle the messages sent by PD.

zoomkat

You could get a servo controller like the ssc-32 (~$40) to handle the servo operations and just control it from the arduino.
Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   8)

mrmeval


You could use a demultiplexer to switch one PWM to many. You would  be using it to pick which servo to send the pulses to. The only limit would be the time it takes to switch the chip to the servo and then to send the PWM to the servo. The downside is that you can not sustain a PWM, when you switch it to the next servo the previous servo will no longer be getting any PWM.

If it was designed by man it can be repaired by man.

Go Up