Step 9Program the board
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 Step | Download PDFView All Steps | Next Step » |
![]() |
Add Comment
|



























![EMP HDD Launcher, [HD Video]](http://img.instructables.com/files/deriv/FUM/QO3R/GQBCI72I/FUMQO3RGQBCI72I.SQUARE.jpg)





















