Pages: [1]   Go Down
Author Topic: Problem controlling 2 continuos and 1 standart servo  (Read 1087 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

Hi all,

I want to ask on how can I use 2 continuous rotation servo and 1 standart servo at the same time.
Because if I connect those things above in normal way, I can't even upload the sketch into the Arduino.
And another thing when I detach (physically) the standart servo, the others 2 continuous rotation servo is working but later on (5-10 seconds) both of them are somewhat jammed.  smiley-confuse

Anyone here now how I can solved that problem?

Thank you so much smiley-grin
Logged

the land of sun+snow
Offline Offline
Faraday Member
**
Karma: 149
Posts: 2790
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Continuous servos accept exactly the same signals as standard servos. 1000usec pulses make
them go one way, 2000usec the other way, and 1500usec make them stop [approximately].

Also, check out the example code in the Arduino IDE under "File > Examples > Servo > Sweep".

Saying "connect those things above in normal way" doesn't mean much, if anything at all. If you're
trying to power your servos off the Arduino +5V buss, forget it. Use an extra power source, preferably
4-5 AA battery cells wired in series.
Logged

0
Offline Offline
Tesla Member
***
Karma: 118
Posts: 8962
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Anyone here now how I can solved that problem?

Best to get the individual servos working first, then try to combine the code to control all three.
Logged

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

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 240
Posts: 24464
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

My guess would be that you're not powering the servos from a separate supply like you should be doing.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

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

Sorry for make you confuse with the term "normal way", I have already used the power supply. So it powered by the usb and adapter.

The problem is the two continuous servos somewhen jammed (5-10 seconds) after Arduino start and when I connect the third servo the Arduino did not respond anything.

I have not tried yet to connect the servo one by one though.  smiley-confuse
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 240
Posts: 24464
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Have they got common grounds?
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Belgium
Offline Offline
Edison Member
*
Karma: 58
Posts: 1742
Arduino rocks; but with my plugin it can fly rocking the world ;-)
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Have you used pins 0 and 1? If so use other pins.
Best regards
jan
Logged

Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

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

No, I use pin 8 and 9 for two continuous servos and pin 10 for standart servo.
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 331
Posts: 16564
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

As already stated you first have to get the power situation resolved to properly power three servos. The arduino board is perfectly capable of controlling three servos, but not to provide power for them.

Lefty

Logged

Dubai, UAE
Offline Offline
Edison Member
*
Karma: 21
Posts: 1670
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
   I have written a post covering the most common servo mistakes, it might not be exhaustive, but its a reasonable first draft, see here -

http://rcarduino.blogspot.com/2012/03/how-to-connect-servo-to-arduino.html

Duane B

http://rcarduino.blogspot.com
Logged


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

Quote
I have written a post covering the most common servo mistakes, it might not be exhaustive, but its a reasonable first draft, see here -
The very first thing that you suggest that people do perpetuates the myth that the Arduino can power a servo. For very small servos, under no load, this is indeed true. For larger servos, under heavy load, this is not true.

I didn't read beyond that. If you really want to help people use servos with Arduino, I think you need to address this point first.
Logged

Dubai, UAE
Offline Offline
Edison Member
*
Karma: 21
Posts: 1670
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I was able to drive four hobby sized servos from an Arduino with a PP9 battery. I took the trouble to stall one of the servos to ensure it was pulling reasonable current and the system was still happily sweeping away.

Its not a long term solution it does have problems but in order to get people over the first hump it works.

If you had read one, I get to power eventually -



I am in the process of rewriting the whole thing for clarity.

Duane B.
Logged


Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 331
Posts: 16564
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I was able to drive four hobby sized servos from an Arduino with a PP9 battery. I took the trouble to stall one of the servos to ensure it was pulling reasonable current and the system was still happily sweeping away.

Good for you. But many have problems powering even one servo using the arduino's 5v pin and using PP9 sized batteries, we see the posts here all the time from fustrated beginners. The lesson is that the arduino board is very good at controlling things, but at powering things, not so good.
 
Its not a long term solution it does have problems but in order to get people over the first hump it works.

But many won't see it as a short term only solution and still base their servo application on using such a unreliable power source.

If you had read one, I get to power eventually -



I am in the process of rewriting the whole thing for clarity.

Duane B.
Logged

Dubai, UAE
Offline Offline
Edison Member
*
Karma: 21
Posts: 1670
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
   I can accept that and will take it into account for the rewrite.

Duane B

rcarduino.blogspot.com
Logged


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

Quote
I can accept that and will take it into account for the rewrite.
If you'd like to have the material reviewed before posting, I'd be happy to review it. I'm sure that others would be, too.
Logged

Pages: [1]   Go Up
Jump to: