Professional Documents
Culture Documents
Line Line
sensor1 sensor2
PIC16F877A
Relatively cheap
Easy to get
33 I/Os –quite a lot
All required features
needed are included
PIC uC mode
Actually, 1 set of transceiver (transmitter and receiver) is capable to make the bot to track the
line.
More transceiver sets would improve the tracking capability –increase speed (2nd objective in
line tracking after tracking itself)
However, coding would become considerably complex.
Google it up to find the various combinations.
Reading
analog input
and printing Defining the serial
communication
via serial
comm.
•Select particular ADC channel Printing to the serial
comm.
•Delay for electrical reasons
•Read that particular ADC channel
DC motor with
Tamiya twin gearbox
used.
Cheap
Available
Easy mounting
There are a lot of examples out there in the world wide web.
Some sites:
http://robotroom.com/
http://www.wrighthobbies.net/guides/linefollower.htm
Controllers
Code download
Inputs
Outputs
PIC16F87x Series
Ref: http://www.etc.ugal.ro/cchiculita/software/picbootloader.htm
Saturday, 11 August 2007 eleem383@gmail.com
Bootloader
Works on a firmware basis, not hardware.
Faster
Does not have to be removed
The same configuration can be used as serial
communication.
Hex inverter acts as the buffer/converter between
the PC’s serial communication (RS232) and the
PIC’s internal serial communication (UART)
Hex inverter used as cheap substitute of the
MAX232 IC.
Don’t forget the socket for the IC!
The currently used – PICBoot+ (can use others –
if you want to)
Need to load the firmware first – using ICSP – a
one time operation (as long as your uC is not
damaged ^^)
Download software and firmware from below.
Ref: http://www.microchipc.com/PIC16bootload/
Saturday, 11 August 2007 eleem383@gmail.com
Using the ICSP –JDM Programmer