Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: wjweijo on May 27, 2008, 05:31:50 AM

Title: control servo motor
Post by: wjweijo on May 27, 2008, 05:31:50 AM

PIC16F877A microcontroller is used and the microcontroller is operated
with a 4 MHz crystal. The pulse required to operate a servomotor can very easily be obtained using the PULSOUT
statement of the PicBasic and PicBasic Pro compilers. When a 4 MHz crystal is used, the time
interval of PULSOUT is in units of 10s. For example, the following PicBasic statement generates
a pulse with a width of 1.3 ms from bit 0 of PortB (1.3 ms = 1300us and 1300/10 = 130):
                                      PULSOUT 0, 130

if i'm using 20MHz crystal, wat is the time interval of PULSOUT? wat is the different between 4MHZ and 20MHz...i'm using picbasic to control my servo (robotic arm)

thanks





Title: Re: control servo motor
Post by: Rebelgium on May 27, 2008, 05:52:04 AM
this forum is meant to post videos of robots in it, that's why it's called "robot videos".

Keep your questions together in one topic plz.
http://www.societyofrobots.com/robotforum/index.php?topic=4211.0