3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

EMP shopping cart locker

Step 9Program the board

Program the board
You will need Microchip's free MPLAB or other PIC software to program the microcontroller.

We used an ICD2 to program the PIC, but there are many suitable and cheap programmers out there.

The programming header is in the prescribed Microchip order. Starting on the left:

1) Vpp (HV programming, connected to reset)
2) Vdd (+5V)
3) GND (ground)
4) PGD (program data)
5) PGC (program clock)

You will either need the AC adaptor for the ICD2, or you will need to connect the batteries before programming. Alternatively, since you should have socketed the PIC, it can be programmed off board.

The included source code was written in C, but the compiler we used is not free. The compiled hex file is also included here. We make no claims that the code is efficiently written, but it works.

Note that there's a small problem with simply broadcasting at one frequency. The FFT shows that the carrier frequency of the signal is about 7800 Hz. However, component values for inductors and capacitors (used in the receiving circuit) could be off by as much as 20%, depending on the tolerance of the parts. When driven "off resonance", receivers are much much much less sensitive. To combat this, the code steps through a series of 5 frequencies, centered about somewhere near 7800 Hz.
« Previous StepDownload PDFView All StepsNext Step »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
6
Followers
1
Author:orthonormal_basis_of_evil
The measure of a man is the size of his inductor.