Author Topic: control servo motor  (Read 4295 times)

0 Members and 1 Guest are viewing this topic.

Offline wjweijoTopic starter

  • Beginner
  • *
  • Posts: 5
  • Helpful? 0
control servo motor
« 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)


Offline Rebelgium

  • Supreme Robot
  • *****
  • Posts: 637
  • Helpful? 0
  • It's called the future ... We like it here
Re: control servo motor
« Reply #1 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.
To relax after some hard work on robotics: A very fun free online text based MMORPG


Get Your Ad Here