Pages: [1]   Go Down
Author Topic: pduino+arduino mega+20 servos  (Read 1228 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 22
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 644
Posts: 50452
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 22
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 644
Posts: 50452
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 22
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

...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
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 644
Posts: 50452
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 22
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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... :-/
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 644
Posts: 50452
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

0
Offline Offline
Tesla Member
***
Karma: 145
Posts: 9699
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You could get a servo controller like the ssc-32 (~$40) to handle the servo operations and just control it from the arduino.
Logged

Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   smiley-cool

Greenwood, Indiana
Offline Offline
God Member
*****
Karma: 0
Posts: 508
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


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.

Logged

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

Pages: [1]   Go Up
Jump to: