Warning: Some older devices only
re-program 1000 times e.g. 16F84.
You can use an ICSP programmer in circuit to test your projects out and once
set up you don't need to remove the programmer during testing.
So it's easy to change the code and you don't need to fiddle
about transferring microcontrollers from sockets to project board.
Links to pic projects
Note: All of these projects can be retargetted to
another device - all you need to do is ensure there is enough memory (compile
and check used memory). Also look at the requirements on the project page to
make sure that the device has the required hardware module (if any is
specified) and enough pins.
All you need to program the microcontroller in each of the
following projects is a pic
programmer that has an ICSP connector. You can
find a programmer project below but you should really buy one, such as a
PicKit3 since it saves making any mistakes as you don't have to build the
programmer i.e. one less thing to think about.
Note: Most of the pic projects are retargetable to
different devices - If you run out of pins use an I2C based display module.
This project uses the CCP module to measure the ultrasonic echo time for
calculating the object's distance. It also uses standard transistor components
for transmission and reception. Range is 5cm to 3m.
This project uses a 16F88 as the master I2C controller and for this chip the
I2C control has to be written in software. Unlike the 16F877A the 16F88 only
has a full implementation of the slave mode. The software I2C routines can be
used with any PIC micro. This project results in the standard 4 digit seven
segment display desk clock.
This project creates a serial port driven LCD display module.
All commands are in ASCII so you can test out the project by driving it
directly from a PC serial port. The project relies on the built in USART but
you could create a software UART (receiver part) and drive it in the same
There are no 'odd' commands e.g. to clear the display you would
type #C or #c and to write text to the display you just type text! Setting an
x or y position is also easy e.g. #X10 sets the cursor to x position 10.
With this project you can use a PIC micro to read any infrared
remote control, TV, DVD,Video, satellite etc. With it you can control your PC
e.g. start programs, move the mouse, turn the Windows volume up and down
A Parallel port pic programmer based on AN589 with an ICSP connector that
you can use to program virtually any PIC micro since they all use the same ICSP
connections. This project does not use a PIC micro - it needs a 74HC244 and
some standard transistors.
Note: This programmer is a modified AN589 and
lets you use it at the end of a 6ft parallel cable. The mod for this is
simply a standard resistor and capacitor which makes a transmission line
terminator. When I first built it I had not used the terminator and got
random results - very frustrating - the mod is simple and useful - there are
also other useful and simple mods in the project.