go away spammer

Author Topic: line follower - PIC16F877A  (Read 7580 times)

0 Members and 1 Guest are viewing this topic.

Offline wjweijoTopic starter

  • Beginner
  • *
  • Posts: 5
  • Helpful? 0
line follower - PIC16F877A
« 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...

Offline airman00

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 3,650
  • Helpful? 21
  • narobo.com
    • Narobo.com - Mechatronics and related
Re: line follower - PIC16F877A
« Reply #1 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.
Check out the Roboduino, Arduino-compatible board!


Link: http://curiousinventor.com/kits/roboduino

www.Narobo.com

Offline wjweijoTopic starter

  • Beginner
  • *
  • Posts: 5
  • Helpful? 0
Re: line follower - PIC16F877A
« Reply #2 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....

Offline Rebelgium

  • Supreme Robot
  • *****
  • Posts: 637
  • Helpful? 0
  • It's called the future ... We like it here
    • orgcrime.net
Re: line follower - PIC16F877A
« Reply #3 on: May 24, 2008, 04:00:22 AM »
To relax after some hard work on robotics: A very fun free online text based MMORPG
orgcrime.net

Offline airman00

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 3,650
  • Helpful? 21
  • narobo.com
    • Narobo.com - Mechatronics and related
Re: line follower - PIC16F877A
« Reply #4 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)
Check out the Roboduino, Arduino-compatible board!


Link: http://curiousinventor.com/kits/roboduino

www.Narobo.com

Offline Rebelgium

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

 


Get Your Ad Here