



|
|
Seeker PIC Processor Software
Seeker uses a PIC16F877A processor. This inexpensive processor does
most of the low-level hardware interface for sensor data acquisition and
servo/motor control. The PC communicates with the PIC using RS-232, sending
commands arbitrarily, and getting status update blocks about every 200ms.
All communication is initiated from the PC, and the PIC responds.
The PIC handles these low-level tasks:
 |
Ultrasonic echo timing and calculation
Laptop and PIC Source |
 |
IR Sensor reading and scaling to inches |
 |
Bumper switch reading |
 |
I2C Compass reading |
 |
Battery monitoring |
 |
Drive Shaft Odometer and Motor Speed feedback (closed
loop) |
 |
Servo control (Steering, Speed, Gear, Camera Pan /
Tilt) PWM timing
|

Main Loop processing
|

Timer Loop processing
|
|