This project meets that need.
This project is my first experimentation with the PIC. Consequently, it isn't as elegant as other similar designs, nor has it all the features of other projects. But it is a useful springboard to other CW + PIC projects. It should provide others the encouragement to have a go with these wonder chips.
"CQ CQ CQ DE VK2KEP VK2KEP VK2KEP K"
The "device" in this instance is a PIC 16F84 micro-controller from Microchip®. A PIC is microprocessor similar to what you might find in a computer (well an older one anyway). Unlike a microprocessor though, it also has some RAM and EPROM as part of the chip, and specific IO capabilities to make it very easy to interface to other devices.
The 16F84 chip has the following features:
With respect to the radio, I use either an FT-817 or an FT-847. On the CW key input, the dot/dash lines are "pulled up" to +5V dc. To cause the radio to transmit, it is a simple matter of grounding the dot or dash line.
With respect to the box, as a minimum, we need one input line to tell the PIC to send the CW message. On the output side, we need two lines - one for the DASH line and the other as the DOT line. On the input line, a +5V signal to trigger the device to send via S1, else it is held at logic low. On the output line, we need to short circuit the appropriate line to earth to cause the radio to transmit. The easiest way of doing this is using the PIC output lines to drive two small signal switching transistors. The output lines from the PIC are capable of 0 or 5 Vdc, with about 25mA of current source or sink.
This allows us to design the circuit.
CLICK HERE FOR CIRCUIT DIAGRAM
The Bill of Materials is as follows:
Type Part Qty Semiconductors Microchip 16F84 - programmed 1 7805 – 5 volt regulator 1 BC547 or 2N2222 2 Resistors 3.9k Ohm 2 10k Ohm 1 Capacitors 15 pF 2 Crystal 4.0 MHz 1 Switch S1 – push 1 S2 - Toggle 1 Connectors 3.5 mm Stereo 2 9 Vdc Battery snap 1 Misc Enclosure 1 Veroboard 1 18 Pin IC Socket PCB Mount 1 PCB Pins for Test points Hookup wire PIC Source code / hex file Machined PIN IC socket Strips 9 Volt battery 3.5mm Stereo straight-through cableIntroduction
It seems these days that if you want to be on the cutting edge of HAM homebrewing, if you want to front run the pack, if you want to be well regarded by yours peers, then you need to have designed, built and published your own PIC construction project. Actually, that's not what I set out to do. I needed a simple project to teach myself about the PIC, how to design the hardware, write the software etc with the view of building other radio PIC projects that I have in mind
Objective
Often when I'm in my shack, I'm doing several things at once. I have the computer/Internet on, along with the soldering iron ready for my latest homebrew adventure. I also have several radios on monitoring useful frequencies to me. Often, this includes various QRP CW frequencies (for example 14.060 MHz). I've often thought it would be nice to have a little box connected to my FT-817 that caused it to send "CQ DE VK2KEP K" in CW whilst I did my soldering or typing. When someone returned the call, it would be just a matter of grabbing the paddle.
Theory
The "Box" to be built needs to sit between the paddle and the FT-817 (or other radio). Inside the box, the paddle and radio should be "straight-through" connected, with the "device" connected in parallel (or "Y-Connected"). In this way, any action on the paddle causes the FT-817 to transmit as usual. And, as required, the "device" can switch the dash and dot lines to earth, similarly causing the FT-817 to transmit
Construction
The construction is very easy. This is a characteristic of PIC projects in general.
The layout is non-critical.
If you want to program the PIC yourself, there are two files of interest to you:
First, test the paddle. Make sure that the paddle operates the rig correctly.
Now, turn on the box. Press the button. All things being well, the radio should start calling CQ in Morse.
Sit back, relax, while the box does the heavy work for you!
I'll leave it up to you.
Conclusions
From my point of view, the main objective of getting into PIC design was achieved with this little project. Whilst the circuit is a bit of a novelty, there are some possible real applications: