Monday, April 18, 2016

DXCC - Meeting the Challenge

Since I started uploading my logs to the ARRL Logbook of the World in November 2003, I've been working toward the DXCC Challenge. I've been carefully trying to work DX stations on multiple bands, hoping to get my current entity-band totals past the Challenge threshold of 1000.

Well, sometime this weekend, I received enough confirmations to get me past the 1000 mark. At the moment, I have 1003 entity-bands confirmed.

I guess I'll be submitting an application for the DXCC Challenge this year! That along with 30m DXCC.

UPDATE: I also notice that I have exactly 239 current entities confirmed for Mixed DXCC. This means I'm exactly 100 entities away from working all 339 current entities, or 91 away from the DXCC Honor Roll.


Saturday, April 2, 2016

DXCC - Excellent Service!

CP1FF QSL clearly shows 15m Phone.
I recently uploaded all my logbooks to ClubLog, and I was trying to reconcile my DXCC credits with those shown in LoTW. While doing this, I noticed something odd.

Back in 2009, I submitted a hybrid application for Phone DXCC using, 52 LoTW credits, and 10 paper QSLs. Among the paper QSLs was one for an SSB contact with CP1FF on 21 MHz.

I received credit for Bolivia for my SSB contact, so I didn't think much of it. However, in trying to reconcile with ClubLog, I noticed that the credit was apparently entered for 80m instead of 15m.

I've never worked CP1FF on 80m. Indeed, I have never worked Bolivia on 80m at all. Why did I have credit for it?

A quick email to the DXCC Admin sorted this out right away. She changed my credit from 80m to 15m, as it should be. Thank you!

Of course, this means I'm one more entity further away from 80m DXCC....

Saturday, January 9, 2016

Project From a Friend - HF4B

HF4B Parts, after sitting out in the weather
for about 25 years.
I had a friend call me the other day. She was licensed about 25 years ago as N4VMN, but her license has since lapsed. In any case, she had some antennas that had been sitting out at beside her house in Marietta for quite a few years now -- she wanted to know if I might know anyone who could make use of them.

Well, I'm always interested in antenna projects, and I could certainly use some smaller antennas, so I said, sure, I could use them.

She had a slightly bent Ringo Ranger, and an old Butternut HF4B. Ah, the Butternut HF4B. I had one in Stone Mountain, GA from late 1987 until 1991, when I replaced it with a Cushcraft A3S.

N4VMN lived in another part of the same subdivision back then. She gotten licensed, bought a rig, and put up this antenna on a roof tower -- and she did it all without consulting me. While I was a bit disappointed I couldn't have given her advice, I was still impressed that she managed to do it all herself.

My experience had been that the Cushcraft A3S worked way better than the HF4B, but the Butternut was a solid performer.

The HF4B is a light-weight, trap-less tribander that uses large bow-tie shaped elements and a clever matching network. It supports 10, 15 and 20m, also also works on 12m. I never could get mine to match well on 12m, but it worked OK on the other bands. Being only two elements, it didn't offer a lot of gain, but had solid front to back. On difficulty in dealing with this antenna was it was so three-dimensional, as the bow-tie supports go three feet above and below the elements. Overall, though, it is pretty small. It can be easily turned with a small TV-type rotator.

N4VMN's antenna had spent a couple of decades outside next to the house. I expected after all this time it might need some repairs. The U-bolts are all shot, and will need to be replaced. The bow-tie supports were all bent, but look repairable. All of the bow-tie wires were broken or missing. The matching network tube supports were all bent, but look repairable. One of the element tubes had filled with water at some point, froze, and split about five inches from the center insulator. It might be repaired with a clamp or two, but replacement is probably a better option. The two fiberglass insulators seem to be in OK shape, although they need to have some of the weathering sanded off and protected with a nice coat of flat black paint (as I did on the R7000).

OK, this is going to be a project, but it looks like what remains is serviceable. I could definitely use a small tribander at the Walton County QTH, or even as a South-America facing antenna in Gwinnett County. I'll have to work out a 20-25 foot support to mount it on, eventually.

PICKit3 and DIYMall Board

PICkit 3 and DIYMall programming board.
PIC16F1503 in programming position.
When I wrote the last article about the PIC, I had forgotten to take some pictures of the PICkit 3 and the DIYMall programming board.

I've include them here. The PICkit 3 is really quite nice little unit, and pretty easy to use, once you figure out the details.

The DIYMall board, which came with no separate documentation, and certainly had no documentation on any web site, appears to have comprehensive, if somewhat cryptic, documentation on the back of the board. You can see the four heavy white lines on the back, that indicate the proper positions for different types of devices.


Complete documentation on the back of the DIYMall board.
40 and 28 pin DIPs go and the end, on the 1/40 pin mark. 8, 14, 18 and 20 pin DIPs go at the 11/30 pin mark. PIC16F57 chips have a special place at the 5/36 pin mark. As does the tiny six-pin PIC10FX chips, which go in backwards at the far end the 20/21 pin mark. The three jumpers, J1, J2 and J3 need to be appropriately selected as well.

It seems unlikely that a lot of new designs would use the older PIC16F57 or PIC10FX chips, but it is nice to know it is possible.

Once you set the jumpers and drop the chip in the right place, they actually program pretty easily.

Thursday, December 31, 2015

The PIC

K9AY controller that doesn't
work.
For a year and a half, I've been working on a push-button controller for my K9AY loops. The loop remote box is pretty much as K9AY originally designed it -- two 6 volt DPDT relays, fed with 6 volt pulsating DC or AC that is coupled into the coaxial feed line. While some people used separate control lines for the relays because of hum problems, I never encountered this issue.

For years, I used a rotary switch to select the direction. Then I decided I wanted a push-button controller so I can immediately select the desired direction.

The push-button controller design was based on a 74LS175 Quad D-type flip flop and SPDT buttons. Pressing a button drives the clock line low and also raises the corresponding D input on the flip flop. Releasing the button causes the leading edge to latch the state of the button. The not-Q outputs of each flip flop drive the LED on the button, while the Q outputs feed to an VN10KN MOSFET that drives a SPST relay that supplies voltage. Six volts for NW, minus six volts for SE, six volts AC for SW, and no voltage (no relay) for NE. Simple.

Except it doesn't work.

The buttons are the problem. Like all mechanical switches, they bounce. These bounces are probably a handful of times within 2-10 ms, but that's enough to throw off the logic which switches within a handful of nanoseconds. Sometimes you press a button and nothing happens. Sometimes you press it, and more than one relay activates.

It's frustrating. The whole purpose of the push-button controller is to command the loops to go immediately to one direction, except the circuit isn't reliable.

I wanted to keep this circuit simple -- one 14-pin chip. Now it looks like I'd have to add a lot more logic to get this design to work.

As a software developer, I kept thinking -- if I only had a micro-controller, I could avoid the switch bounces with software. And I could fix other problem with the design. For example, if you accidentally pressed two switches at the same time, two LEDs would light. With software, I could make it so only the last switch press is selected -- only one direction selected at a time.

This made me wonder -- if I were going to use a micro-controller -- what would I use? I got started on my software career when I built a 6800-based computer in 1977. I was familiar with the 6802, 6801 and 6805. But these were relatively huge chips, and required a lot of support logic. What I needed as a micro-controller that would fit into a 14-pin or 16-pin chip, and allow for four digital inputs, and seven digital outputs without any support. What was available, and how much would it cost?

So, I went to mouser.com and started searching. Hey, these Microchip PIC micro-controllers seem like they would work. After all the Elecraft K2 has a bunch of them. There were also ATmel AVR chips, whatever they are. Seems to me those are used in the Arduino.

Actually, there was an abundance of these devices that might work. It got more interesting when I sorted them by price. I ended up selecting the Microchip PIC16F1503.

This is a pretty amazing device! Two kilowords of instruction memory, 128 bytes of RAM. Capable of up to 5 MIPS. Low power consumption, very flexible operating voltages. With a whole host of interesting I/O features: 12 input and 11 digital output channels, 10-bit A/D converter with eight external and three internal channels, 5-bit D/A converter, two comparators, three timers, 10-bit Pulse-Width Modulator, two configurable logic cells, and a 20-bit numerically controlled oscillator.

Of course, you can't use all of that all at the same time, but this seemed like a marvelously flexible device for all kinds of projects. The best part was the price -- 90 cents a piece. Naturally, I ordered 10 of them.

This device has plenty of power for my K9AY controller. The first step was to figure out how to use it. Microchip offers the free MPLAB X IDE software, which can be easily downloaded for Windows, Mac or Linux. The IDE alone will let you write software and run the simulator. The next question is -- how to get the program into the chips. Microchip also makes a device called the PICkit 3 -- a USB device that easily connects to PIC processors and allows for programming as well as some limited hardware debugging. There was also an end of year special, so I could get it for $36 plus shipping.

The circuitry to connect the PICkit 3 to the chips is dead simple. I looked into building a little board with a ZIF socket. However, ZIF sockets are like $10 apiece. Before I could submit my order for one, I found a little board on amazon.com from DIYMall that is exactly what I was thinking of building for less than $8.

It took me a couple of nights to figure out how to use the IDE. The PIC itself is mind-numbingly complicated. First step is to set the configuration bits, which tells the PIC things like where it's clock signal is coming from. Then you actually get to the start-up code, where you have to program the chips innards to reflect the configuration you wish to use -- which pins for I/O, and what function blocks are connected to those pins. The PIC16F1503 is complex enough that it would actually take a lot of time and code space to configure each block. But, again, you can't use all that stuff at once, so just focus on the items you need.

The configuration is done by writing to specific memory addresses. This would be easy if the chip allowed direct access to all of the data memory. However, because of the programming architecture, it really only has direct access to the first 128 bytes of memory. So, of that space, all but the first 32 bytes and last 16 bytes of that space are banked into 32 banks of memory. Interspersed in those banks are the configuration registers.

Confused yet? Well, the PIC instruction set is nothing to write home about either. There's only one accumulator (W) and no other implicit registers, other than those in low memory. The PIC16F1503 is at least a mid-range CPU, so it has some additional instructions to make things easier to program.

If you are not an assembly language programmer, you really ought to ask yourself what the heck you are doing writing micro-controller software, but there is a C compiler that can be used.

I had little problem writing a program on the simulator. Getting it into the chips was something more of an ordeal that took me about three days to figure out. I wrote a little program that takes all 6 bits of PORTC and outputs a counter on them. It increments the W register from 0 to 0 (256 times) between counts, so the results should be visible. I used a 32 kHz clock speed, so things ought to happen slowly enough to observe.

At first, I couldn't get MPLAB X to talk to the PICkit. MPLAB X seemed to know the PICKit was there, but when going to program, it just sat there, doing nothing. After digging around on the web, I found that you could reset the PICKit by holding down it's button while you plugged it into USB.

At that point, MPLAB X was now talking to the PICkit, but it still wouldn't program. The PICkit has an option to supply power for programming, but the default is not to. Once I turned the power on,  I was getting a warning that the PICkit was trying to supply 5 volts, but it was reading only 4.75 volts. Now, there's nothing on the DIYMall board other than a ZIF socket and a couple of jumpers. Setting it to 4.75 volts made the warning go away, but it couldn't find the chip.

It was about this time I started studying the DIYMall board more closely. It came with no documentation, and I couldn't find anything on-line about it either. When I turned it over, I found there were jumper indications. I moved the first jumper to the B position, which was correct for 14-pin chips.

No difference. This shouldn't be so hard!

Looking at the board some more, it turns out that the 14-pin chips aren't supposed to go in pin 1 of the ZIF socket, but way down around pin 30. There was a heavy white line on the backside of the board indicating this. That's the first time I've encountered documentation printed solely on the board itself. I figured I'd try it. Low and behold, it programmed!

Putting it in a board, it worked the first time. I've included a little video of the chip in action.

video


Wednesday, November 25, 2015

Forty Years of Ham Radio

My novice key.
I don't remember a lot about forty years ago. I don't remember much about taking the Novice exam, or the name or call of the fellow kind enough to give it to me. But I do remember, in November of 1975, receiving my Novice license. I became WN8WOY. It took months for me to get on the air in June of 1976. I kept that call until the FCC  issued me WB8WOY the next fall. I've told many of the details in my Novice Story.

I do remember ham radio being a lot different forty years ago. I was using all tube type gear. Although all-solid-state gear was available, it was rather uncommon until the early to mid-80s. I remember learning about transistors and tubes at the same time. It was easier and cheaper to generate RF using tubes, something that's still true today at the higher power levels.

I remember that I didn't have a clue what I was doing with ham radio. I had read a lot of 73 Magazine articles, but that didn't prepare me for actually being on the air, or how to put up reasonably effective antennas. In retrospect, I did a lot of dumb things, and perhaps missed some opportunities. But, I was having fun, and learning as I went along.

In those days, I remember working toward the goal of getting Worked All States. I believe I collected cards for about thirty states, but came nowhere close to working them all. Today, I've earned WAS on six bands, and worked all fifty states just last weekend in a contest.

I do remember I was quite shy about transmitting, and I did a lot of listening. Perhaps my first decade was much more about listening than transmitting.

I also remember I enjoyed building things. I'm glad I still do. Here's to forty more years of building, learning and enjoying ham radio.



Friday, November 20, 2015

Mark V Shunt Feed Matching Network (80m)

Inside of the Mark V matching network. Notice the larger
capacitor in the back upper right, and the new inductor,
both for 80m.
I wrote earlier that I was having trouble with my 80m shunt-feed matching network. I managed to identify the problem using an enormous variable capacitor, but that was only temporary. As it was, the Bread-slicer obtained several spots of rust for the week I left it outside. I needed a permanent solution.

Having nothing in my junk box that was suitable, I found a 80 pF variable cap with reasonable (4 kV) plate spacing on eBay. It would fit into my NEMA box, but just barely.

In my earlier hunt for the 80m issue, I had already re-wound the 80m inductor on a T200-2 core with insulated wire.

While I was doing this, I realized I had no more T200-2 cores. I was giving idle thought to going to 2 T200-2 cores, as I had for the 160m inductor. Double cores would allow me to use fewer turns, so I could use a larger gauge wire, increasing the inductor Q.

T200A-2 core in center, cover in
fiberglass tape on left, and a
finished 80m coil on a T200-2 core
for comparison on right.
While I was shopping on-line, I came across a new product from Amidon. It is variously labelled T200A-2 or T200-2B, but it is essentially a T200-2 core that is 1 inch thick -- the same as stacking two cores together. Needless to say, I bought two.

New 80m inductor.
Using the larger core, I went from 38 turns on the T200-2 to only 28 turns on the T200A-2 core. The most difficult part of this exercise was finding suitable wire in the junk box. I ended up using a bright orange 16 gauge wire that had much thicker insulating than I needed -- but it is what I had. The resulting coil was a bit difficult to wind, and I used a couple of wire ties to keep the ends from unravelling.

New cap and inductor for 80m.
Shoehorning the capacitor and the larger inductor into the NEMA box took some doing. I had to move the relay just to get the capacitor in the box. And the wiring had to be re-done.

I used two 100 pF 6 kV disc ceramic caps in parallel with the 80 pF variable to get enough capacitance to match.

All assembled, it tunes up nicely around 3800 kHz with a 1.1:1 SWR. And the SWR doesn't change at all when going to 100 watts. Perhaps with the new cap and inductor, I could put a few hundred watts through it with no problems. I'll have to wait to fix the AL-80A before I can test that.

Next step will be to get the 160m network to tune better, it's a little off lately, I think I need more capacitance.