Pages: [1]   Go Down
Author Topic: Servo speed controlled by pot  (Read 550 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello!

I'm about to buy a Aurduino Uno R3, breadboard, breadboard jumpers, servo and a potentiometer.

Now my question is..

-Is this enough to be able to controll a servo up and down via a written code program?
-Is this enough to be able to controll the speed of a servo?  Let's say the servo is moving up and down in a loop and while that's running I want to be able to controll the speed with a pot.

If not what do I need?

Sorry for my English..

Any help will be appriciated smiley
« Last Edit: October 21, 2012, 04:09:26 pm by Arduinoprojects » Logged

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

Yes, that is enough. About the only thing I would add is a separate power source for the servo as many run into problems trying to power a servo from the arduino's 5V pin. Even four series connected AA batteries would be a better way to power a servo.

Lefty

Logged

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

Yes, that is enough. About the only thing I would add is a separate power source for the servo as many run into problems trying to power a servo from the arduino's 5V pin. Even four series connected AA batteries would be a better way to power a servo.

Lefty



Thanks!

But I thought that the 5v pin from the arduino should be enough to power it?

Is this a common problem?

And where/what to buy the external power source?

Edit : This won't be a problem since I have a cellphone charger that gives 5V just laying around somewere smiley-wink
Logged

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

Yes, that is enough. About the only thing I would add is a separate power source for the servo as many run into problems trying to power a servo from the arduino's 5V pin. Even four series connected AA batteries would be a better way to power a servo.

How were planning on powering the arduino board? That may factor on the best/easiest was to power the servo independently from the arduino 5V pin.

Lefty



Thanks!

But I thought that the 5v pin from the arduino should be enough to power it?

Depends on servo model, mechanical load on servo, etc. Arduino is great at controlling a servo, not so great at powering them. If only using one servo with no mechanical load and it is a low current model then maybe you will get lucky. Try it and see, but if anything strange happens remember to then try powering it externally.

Is this a common problem?

Yes, people post all the time about trouble using servos with arduino, and often it's because they are not using an external power source for the servos.

And where/what to buy the external power source?

Servo's like +5vdc power (usually rated from 4.8 to 6vdc) and one amp of current per servo being powered is a good rule of thumb. Many sources of power modules and batteries are available, perhaps the same place you got the arduino?

« Last Edit: October 21, 2012, 04:24:20 pm by retrolefty » Logged

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

Yes, that is enough. About the only thing I would add is a separate power source for the servo as many run into problems trying to power a servo from the arduino's 5V pin. Even four series connected AA batteries would be a better way to power a servo.

How were planning on powering the arduino board? That may factor on the best/easiest was to power the servo independently from the arduino 5V pin.

Lefty



Thanks!

But I thought that the 5v pin from the arduino should be enough to power it?

Depends on servo model, mechanical load on servo, etc. Arduino is great at controlling a servo, not so great at powering them. If only using one servo with no mechanical load and it is a low current model then maybe you will get lucky. Try it and see, but if anything strange happens remember to then try powering it externally.

Is this a common problem?

Yes, people post all the time about trouble using servos with arduino, and often it's because they are not using an external power source for the servos.

And where/what to buy the external power source?

Servo's like +5vdc power (usually rated from 4.8 to 6vdc) and one amp of current per servo being powered is a good rule of thumb. Many sources of power modules and batteries are available, perhaps the same place you got the arduino?


1AMP per servo?

Will a 5v cellphone charger work?

I'm not very good at electronics, I bought this to educate myself smiley-razz

The servo I got was a 10KG torque, so I think it's pretty powerfull, I see how that can give me problems when running of the aurduino.
Logged

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

Yes, that is enough. About the only thing I would add is a separate power source for the servo as many run into problems trying to power a servo from the arduino's 5V pin. Even four series connected AA batteries would be a better way to power a servo.

How were planning on powering the arduino board? That may factor on the best/easiest was to power the servo independently from the arduino 5V pin.

Lefty



Thanks!

But I thought that the 5v pin from the arduino should be enough to power it?

Depends on servo model, mechanical load on servo, etc. Arduino is great at controlling a servo, not so great at powering them. If only using one servo with no mechanical load and it is a low current model then maybe you will get lucky. Try it and see, but if anything strange happens remember to then try powering it externally.

Is this a common problem?

Yes, people post all the time about trouble using servos with arduino, and often it's because they are not using an external power source for the servos.

And where/what to buy the external power source?

Servo's like +5vdc power (usually rated from 4.8 to 6vdc) and one amp of current per servo being powered is a good rule of thumb. Many sources of power modules and batteries are available, perhaps the same place you got the arduino?


1AMP per servo?

Will a 5v cellphone charger work?

Yes for one servo, just be sure you also add a wire from the cellphone charger negative to a arduino ground pin as well as to the servo ground pin.

I'm not very good at electronics, I bought this to educate myself smiley-razz

The servo I got was a 10KG torque, so I think it's pretty powerfull, I see how that can give me problems when running of the aurduino.

That is probably it's maximum torque rating, the actual mechanical load attached to the servo will determine actual torque delivered and current demand values.

Logged

Pages: [1]   Go Up
Jump to: