April 23, 2004

MY FIRST PIC-CONTROLLED ROBOT

Here are some new happenings in my PIC programming adventures.
This robot moves forward for several seconds then makes a 90 degree turn.
It continues to do this moving in a square path.

The program uses the timer0 with an interrupt. The pre-scaler is set for 1:256.
My interrupt routine subtracts from a register everytime there is an interrupt. When my register is zero, I make my turn. I get about 8 to 10 seconds delay.

Posted by larrykeegan at April 23, 2004 06:49 PM