Go Down

Topic: 20 servo sequence (Read 1 time) previous topic - next topic

liamviney

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

MarkT

If they have to rotate exactly in step you should be able to drive them from one pin (fanout permitting).
[ I won't respond to messages, use the forum please ]

liamviney

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

MarkT

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...
[ I won't respond to messages, use the forum please ]

johnwasser

The standard servo library can do 48 servos on an Arduino Mega so you should have no problem.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

liamviney

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.

johnwasser

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).
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

liamviney

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


PaulS

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.

liamviney

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.

Go Up
 

Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it's been approved by a moderator.
Name:
Email:

shortcuts: alt+s submit/post or alt+p preview