Servo basics (moving a servo with a BS1)
Hi
I am using a BS1 Rev A to try and drive a servo to understand how this works. The servo is a GWS SO3N.
I have a seperate power supply for the stamp and servo. I can get a noise from the servo but no movement. The programme looks like,
PULSOUT 0, 150
PAUSE 18
I would be very grateful for help.
Thanks
Luke
Edit: Added a subject
Post Edited By Moderator (Ryan Clarke (Parallax)) : 6/27/2006 9:18:23 PM GMT
I am using a BS1 Rev A to try and drive a servo to understand how this works. The servo is a GWS SO3N.
I have a seperate power supply for the stamp and servo. I can get a noise from the servo but no movement. The programme looks like,
PULSOUT 0, 150
PAUSE 18
I would be very grateful for help.
Thanks
Luke
Edit: Added a subject
Post Edited By Moderator (Ryan Clarke (Parallax)) : 6/27/2006 9:18:23 PM GMT
Comments
·· There must be more to your program, since servos require refreshing to move to a new position and maintain it.· Please post your whole program.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Post Edited (Chris Savage (Parallax)) : 6/27/2006 5:05:01 PM GMT
Thanks for your reply. I think you have hit the problem. I am so new to this that I do not understand what to enter to refresh or get this working. Do you have a sample program that I might use?
Thanks
Luke
·· You need to loop your program...Of course, this will only move the servo to the position you specified and hold it there, but it shows the concept of refreshing the servo every 20 ms.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Thanks for your help. I have tried this and whilst the servo makes lots of encouraging noises, I am still unable to get it to rotate!. Do you have any easy guide to this sort of thing that I can read. I must be doing something wrong.
Thanks
Luke
·· If the servo is not a contiuous rotation servo it won't rotate.· It will move to a position and stay there until the pulse value changes.· Also, you can edit your posts when you make a mistake instead of starting a new post.· Just click the pencil icon at the top-right.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Thanks. The servo is not even moving to a position, so I am not sure I have got it working yet. Do you have a link to a guide to servos and BS?
Thanks
Luke
http://www.parallax.com/dl/docs/books/edu/wamv2_2.pdf
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Here is a simple BS1 code to move a servo back and forth (standard servo)
Note that the servo signal line (the white wire) is connected to I/O pin 0.
Hope this helps,
Ryan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ryan Clarke
Parallax Tech Support
RClarke@Parallax.com
Thanks for your help. I have used your programme. The servo itself moves from side to side but the rotor does not change. I am beginning to suspect that this means I have a bad servo and need to try adiffert one.
Any more ideas?
Thanks
Luke
What's a ROTOR? And how can the "SERVO" 'move'?
A "Servo" is basically a black can, with a shaft coming out of the top. The shaft is splined, and you can put a wheel or an 'arm' on the end of the shaft. When the servo moves the shaft, the wheel or 'arm' moves.
If you haven't affixed the servo to anything...