Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
March 29, 2024, 12:47:21 12:47


Login with username, password and session length


Pages: [1]
Print
Author Topic: servo motor control  (Read 9634 times)
0 Members and 1 Guest are viewing this topic.
ajak
Active Member
***
Offline Offline

Posts: 115

Thank You
-Given: 199
-Receive: 77


« on: August 11, 2008, 06:28:36 18:28 »

pls help.

i'd like to use pic16f84a and a 4mhz oscillator,

Posted on: August 11, 2008, 07:09:39 19:09 - Automerged

my servo motor is tower pro mg995, and i wish someone will help me how to use pulsout?
Logged
30f4011
Active Member
***
Offline Offline

Posts: 131

Thank You
-Given: 753
-Receive: 96



« Reply #1 on: August 11, 2008, 06:30:52 18:30 »

do you mean RC servo?

if yes :
             

then : http://www.instructables.com/id/Use-a-PIC-Microcontroller-to-Control-a-Hobby-Servo/

         http://www.rentron.com/SerialServo.htm
   
       
« Last Edit: August 11, 2008, 06:43:23 18:43 by 30f4011 » Logged
ajak
Active Member
***
Offline Offline

Posts: 115

Thank You
-Given: 199
-Receive: 77


« Reply #2 on: August 11, 2008, 06:35:23 18:35 »

im using the servomotor for a bipedal robot, could you please help about some simple program, for example just making the servo go to center, or go clockwise.
Logged
30f4011
Active Member
***
Offline Offline

Posts: 131

Thank You
-Given: 753
-Receive: 96



« Reply #3 on: August 11, 2008, 06:43:49 18:43 »

im using the servomotor for a bipedal robot, could you please help about some simple program, for example just making the servo go to center, or go clockwise.
which lng. you are using for programming?

 http://www.rentron.com/servo.htm
 http://www.toddlertime.com/robotics/servo.htm
 http://www.electronickits.com/kit/complete/motor/ck1403.pdf
 http://www.epanorama.net/documents/motor/rcservos.html
 http://www.digitalnemesis.com/info/projects/picservo/
 http://www.rentron.com/PICX5.htm
 http://www.parallax.com/dl/docs/article/IntSum02.pdf

 i don't know how to program PIC with pic basic pro,


 programmed using mikroc for dsPIC.

shaft movement of servo motor is from 0-180 deg.

 servo motor driving can be explained in following steps:

 >Config. any pin of mcu as o/p.
 >Use timer to generate delay of 20ms.
 >when you require shaft @ 0 deg ---------->pin is low
 >when you require shaft @ 180 deg ----------> pin is high for 2 ms followed by 20ms low period [pulse of 2/20=0.1ms duty cycle]
 >pulse in the range of 1/20=   5% to 10% duty cycle will made servo to move from 0 deg to 180 deg respectively.[range of 1ms to 2ms]
            ___________
            |               |
 _______|               |_____________________________
            /< 1 to 2ms> /
 
<---------------------------------------------------->|
            total 20 ms

« Last Edit: July 01, 2011, 12:44:12 12:44 by 30f4011 » Logged
ajak
Active Member
***
Offline Offline

Posts: 115

Thank You
-Given: 199
-Receive: 77


« Reply #4 on: August 11, 2008, 06:56:47 18:56 »

im using picbasic pro
Logged
hosmis
Active Member
***
Offline Offline

Posts: 173

Thank You
-Given: 325
-Receive: 243


« Reply #5 on: August 12, 2008, 03:31:35 03:31 »

http://www.4shared.com/file/58706766/a8edb924/servo.html
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC