Pages: [1]   Go Down
Author Topic: 20 servo sequence  (Read 797 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 20
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have been experimenting with the servo sweep example, however I am about to undertake a much larger project where I wish to run a sequence of 20 servos that will basically rotate in step to a controlled amount of degrees.

However I am unsure about the best way to do this and was hoping that someone could advise.

I am using a arduino mega board and the servos are HS-322HS Standard Deluxe servos.

If more information is needed just let me know.

Cheers
Logged

0
Offline Offline
Shannon Member
****
Karma: 161
Posts: 10426
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If they have to rotate exactly in step you should be able to drive them from one pin (fanout permitting).
Logged

[ I won't respond to messages, use the forum please ]

Offline Offline
Newbie
*
Karma: 0
Posts: 20
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Sorry I should of explained more clearly, there needs to be a delay between each servos movements
Logged

0
Offline Offline
Shannon Member
****
Karma: 161
Posts: 10426
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Checkout the Servo library documentation - I think it can do several servos per timer, the Mega has about 6 timers, so it all depends on what 'several' actually is...
Logged

[ I won't respond to messages, use the forum please ]

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 179
Posts: 8066
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The standard servo library can do 48 servos on an Arduino Mega so you should have no problem.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Offline Offline
Newbie
*
Karma: 0
Posts: 20
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Due to space i am unfortunately down sizing the project to 12 servos. However I am hoping someone could give me advice on the best way to power this.

Each servo requires 6V to be able to run at its full speed. I have never tried connecting a external power to arduino and would really appreciate some guidance on this and the best way to power all 12 servos.
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 179
Posts: 8066
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The servos have three wires:  Power, Ground, and Signal

Connect your 6v power supply to Power (+) and Ground (-).  Connect the Arduino to Signal (data pin) and Ground (ground).
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Offline Offline
Newbie
*
Karma: 0
Posts: 20
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

And that 6V supply will be enough to run all 11?

Logged

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

Quote
And that 6V supply will be enough to run all 11?
Maybe, maybe not. You've told us which servos you have, which defines how much current you need to supply, but you haven't told us anything about the power supply, except that it is 6V.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 20
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

sorry my mistake, im currently using a regulated bench power supply, with output voltage adjustable range between 1.0 - 20Vdc and a output current adjustable range of 0 - 5A . If i have missed anything just let me know.
Logged

Pages: [1]   Go Up
Jump to: