Pages: [1] 2   Go Down
Author Topic: Problem with servo and Potentiometer  (Read 1281 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 90
ARDUINO
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

the servo is not working with the potentiometer for some reason, i am using the "Knob" sketch in the arduino library in the file attched you can see my wiring please help many thanks D.J.B


* Pot and Servo.jpg (1173.17 KB, 2640x1980 - viewed 18 times.)
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 90
ARDUINO
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i appreciate the help and have tested the pot with the link you gave me it seems to work perfectley is there a way i can test the servo, what about using a separate power supply? Many thanks  smiley-razz
Logged

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

Quote
what about using a separate power supply?
Why, how are you powering the servo now? (I almost didn't want to have to ask that question)
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.

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 90
ARDUINO
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i just did some research and i was powering it from the 5v on the arduino board this was not enough i believe and now power it using the VIN pin it still lags a little when i turn the pot fully the servo is like catching up is the best way i could put it, say i turn it left the pot turns a little then stops the turn stops and so on till it reaches the correct position  smiley-confuse
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 90
ARDUINO
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

will the VIN produce 12v if using the power supply? or will there be some resistance
Logged

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

You should not be using the Arduino to supply powerto the servo.
Use a separate battery pack and don't forget to connect the grounds together.
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.

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 90
ARDUINO
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

if i used a battery pack i just connect the + on the battery to (servo)red and - to (servo)black and only have the signal goin to the arduino?
hopefully this will sort my problem out smiley
Logged

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

No, you have to connect the two grounds together.
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.

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 90
ARDUINO
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i am new and i know this is stupid but i dont understand what you mean :/ the ground of the servo and....
Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 626
Posts: 34207
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

.. the ground of the arduino.

See:-
http://www.thebox.myzen.co.uk/Tutorial/Power_Supplies.html
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 90
ARDUINO
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

so the ground on the servo goes to ground on the arduino and negative on the battery pack?
Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 626
Posts: 34207
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes that is called a common ground.
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 90
ARDUINO
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thank you smiley i am glad you didnt get frustrated with my little knowledge
Quote
Yes that is called a common ground.

is the reason it has to still be grounded to the arduino because the negative on the battery is not a GND?
Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 626
Posts: 34207
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

No the reason is that there has to be a path in order for the current to flow to make things work. Look at that diagram in the link I posted.
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 90
ARDUINO
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

oh i understand now many thanks smiley
Logged

Pages: [1] 2   Go Up
Jump to: