Society of Robots - Robot Forum

Software => Software => Topic started by: wjweijo on May 23, 2008, 07:29:14 AM

Title: line follower - PIC16F877A
Post 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...
Title: Re: line follower - PIC16F877A
Post by: airman00 on May 23, 2008, 08:10:08 AM
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.
Title: Re: line follower - PIC16F877A
Post by: wjweijo on May 23, 2008, 10:37:07 PM
...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....
Title: Re: line follower - PIC16F877A
Post by: Rebelgium on May 24, 2008, 04:00:22 AM
google.com
http://www.societyofrobots.com/robotforum/index.php?action=search

search for tutorials. :)
Title: Re: line follower - PIC16F877A
Post by: airman00 on May 26, 2008, 08:46:15 AM
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)
Title: Re: line follower - PIC16F877A
Post by: Rebelgium on May 27, 2008, 05:50:46 AM
Don't make new topics with the same questions, and certainly not in the wrong forum... Keep your questions in this topic.