Go Down

Topic: Problem controlling 2 continuos and 1 standart servo (Read 1 time) previous topic - next topic

n0talentGEEK

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.  :~

Anyone here now how I can solved that problem?

Thank you so much :D

oric_dan

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.

zoomkat

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.
Google forum search: Use Google Advanced Search and use Http://forum.arduino.cc/index in the "site or domain:" box.

AWOL

My guess would be that you're not powering the servos from a separate supply like you should be doing.
"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.

n0talentGEEK

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.  :~

AWOL

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

Jantje

Have you used pins 0 and 1? If so use other pins.
Best regards
jan
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 -

n0talentGEEK

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

retrolefty

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


DuaneB

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
Read this
http://rcarduino.blogspot.com/2012/04/servo-problems-with-arduino-part-1.html
then watch this
http://rcarduino.blogspot.com/2012/04/servo-problems-part-2-demonstration.html

Rcarduino.blogspot.com

PaulS

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.

DuaneB

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.
Read this
http://rcarduino.blogspot.com/2012/04/servo-problems-with-arduino-part-1.html
then watch this
http://rcarduino.blogspot.com/2012/04/servo-problems-part-2-demonstration.html

Rcarduino.blogspot.com

retrolefty


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.

DuaneB

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

Duane B

rcarduino.blogspot.com
Read this
http://rcarduino.blogspot.com/2012/04/servo-problems-with-arduino-part-1.html
then watch this
http://rcarduino.blogspot.com/2012/04/servo-problems-part-2-demonstration.html

Rcarduino.blogspot.com

PaulS

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.

Go Up