Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 07, 2016, 09:11:31 21:11


Login with username, password and session length


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

Posts: 116

Thank You
-Given: 198
-Receive: 77


« on: August 11, 2008, 07:28:36 19: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: 132

Thank You
-Given: 626
-Receive: 96



« Reply #1 on: August 11, 2008, 07:30:52 19: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, 07:43:23 19:43 by 30f4011 » Logged
ajak
Active Member
***
Offline Offline

Posts: 116

Thank You
-Given: 198
-Receive: 77


« Reply #2 on: August 11, 2008, 07:35:23 19: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: 132

Thank You
-Given: 626
-Receive: 96



« Reply #3 on: August 11, 2008, 07:43:49 19: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, 01:44:12 13:44 by 30f4011 » Logged
ajak
Active Member
***
Offline Offline

Posts: 116

Thank You
-Given: 198
-Receive: 77


« Reply #4 on: August 11, 2008, 07:56:47 19:56 »

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

Posts: 143

Thank You
-Given: 214
-Receive: 206


« Reply #5 on: August 12, 2008, 04:31:35 04: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