Pages: [1]   Go Down
Author Topic: Extending number of servos ?  (Read 346 times)
0 Members and 1 Guest are viewing this topic.
The Netherlands
Offline Offline
Edison Member
*
Karma: 47
Posts: 1535
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Today (well, yesterday actually)i received the 4 servos i ordered (no plans, just to play around).
Played a bit with the sweep sketch to test them.
While playing, i saw that the servos stop working whenever the signal wires is disconnected.
They do not return to center or end position, they just stop at the point the last instruction told them to go.
Reconnecting that wire just starts the servo to continue to the point the sketch is running at that moment.

So is it a good idea to switch servo's and command those with just a few lines and extend the total number of servo's this way ?
If not, why not ?
So power would stay connected, and only pin 9 (std pin in the sweep sketch) would be connected to a different servo, perhaps by using a 74hc595.
Logged

Have a look at "blink without delay".
Did you connect the grounds ?
Je kunt hier ook in het Nederlands terecht: http://arduino.cc/forum/index.php/board,77.0.html

Montreal
Offline Offline
Faraday Member
**
Karma: 27
Posts: 2568
Per aspera ad astra.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

There is a  library, that support 12 servos, do you need more?
Logged

Offline Offline
Edison Member
*
Karma: 58
Posts: 2078
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Or 48 servos on the Arduino Mega 2560.

If you disconnect the signal wire, some servos turn into idle state.

If you are going to use an extra chip, why not use a I2C servo controller chip, http://www.adafruit.com/products/815

You could even use an AVR microcontroller (the same microcontroller as on the Arduino board) and use it as I2C slave to control a number of servos.

Or a servo controller board, http://www.ebay.com/sch/i.html?LH_BIN=1&_sop=15&_osacat=0&_from=R40&LH_PrefLoc=2&_nkw=servo+%28controller%2Cdriver%29+board+-stepper&_sacat=0
Logged

The Netherlands
Offline Offline
Edison Member
*
Karma: 47
Posts: 1535
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks guys.
That adafruit solution is interesting, and not too expensive.
I asked because i was just wondering what drawbacks there could be by doing it that way.
And to save pins so you can use your Arduino also for inputs or other outputs.

The other boards that involve an extra controller are way too espensive.
Logged

Have a look at "blink without delay".
Did you connect the grounds ?
Je kunt hier ook in het Nederlands terecht: http://arduino.cc/forum/index.php/board,77.0.html

Offline Offline
Edison Member
*
Karma: 58
Posts: 2078
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I read the tutorial of the Adafruit Servo Driver, it is possible to chain the driver boards to control many more servos.
Logged

Pages: [1]   Go Up
Jump to: