Society of Robots - Robot Forum
Software => Software => Topic started by: wjweijo on May 23, 2008, 07:29:14 AM
-
Hi,
I'm using servo motor to control my line follower...so, PICBasic is easier to use...i wanna to ask help on the PICbasic programming...
-
wats the question
I know PICbasic very well
to control a servo you do PULSOUT x,y
where x is the pulse from 100-200 if you're running it at 4mhz
and where y is the traget , like portc.a ,etc.
-
...i didnt use picbasic before... can i have a sample code, so i can understand clearly..
for controlling the servo, i just know this information:
pulse = 1.5ms --> 90 degrees
pulse < 1.5ms --> 0 degrees
pulse > 1.5ms --> 180 degrees
and...do u know how to write the IR coding by using PICbasic....
-
google.com
http://www.societyofrobots.com/robotforum/index.php?action=search
search for tutorials. :)
-
http://www.picbasic.co.uk/forum/
the pulse number needed changes as the speed of the PIC changes ( like a PIC running at 8mhz instead of 4mhz)
-
Don't make new topics with the same questions, and certainly not in the wrong forum... Keep your questions in this topic.