Wednesday, April 1, 2015

Getting ready for camping season

We picked up our trailer at a very reasonable price from very reasonable people toward the end of the last camping season. This means we got to use it just enough to really love it, and then it got put away for the winter. Fortunately, I have a nice big carport, which means the trailer was sheltered from the snow. I raised it on blocks to get the tires off the ground, flushed out the water system, brought the batteries in the house, and left it while the cold settled in.

But now, the crocuses are up, and the snow is gone from the roads, which means a new camping season is just around the corner. And that means it's time to get the RV trailer out of hibernation.

There are some tasks that are common to all RVs, like flushing the antifreeze out of the water system, reinstalling the batteries, and giving the running gear a good inspection. However, our trailer is pretty old, so there are some repair issues that need to be taken care of first.

Tires

The trailer tires were pretty bald when I parked it last fall, and they didn't grow any new tread over the winter, much to my disappointment. However, since the trailer was up on blocks, getting the tires replaced was pretty easy.

It's worth noting that, while passenger car tires will fit, there are tires made specifically for trailers, (they have "ST" in the sidewall marking,) and those are what should be used. Trailer tires have a thicker sidewall than car tires, so they can handle more weight and higher operating pressures. This adds up to a stiffer tire. On a car, this would be a bad thing as it would make for a harsh ride, but in a trailer, a soft ride is a problem as it makes the trailer more prone to swaying. ("Trailer sway" refers to that phenomenon where your trailer decides it wants to take you in a new direction. Like the ditch. Or oncoming traffic. At a hundred kilometers per hour.) Here is a video of what it looks like.

Bearings and Brakes

The gentleman that sold me the trailer is a heavy-duty mechanic, so I wasn't expecting any problems with the running gear. That said, he told me he hadn't touched the bearings in five years, so I figured they were due for an inspection. The brakes worked well for the few times I used the trailer last year, but since I would be exposing the brakes in the process of inspecting the bearings, it was a good time to check them out as well.

For each of the wheels, I removed the brake drum/hub assembly, cleaned the grease out of everything, and then inspected the bearings, races, and seals for damage. The bearings and races were in great shape, so I simply packed everything with grease and reassembled the hub. (Here are more detailed instructions.)

As for the brakes, all the magnets were in good shape, and the shoes all had enough lining on them to get through another season. Since this is my first time repacking bearings, I'm probably going to pull the hubs again next spring to see how well I did, and I can decide at that time if I want to replace the brakes or not.

(If you're interested in how electric trailer brakes work, watch this YouTube video.)

It's worth noting that bearings are pretty generic, so you can pick up a spare set, pack them with grease, and throw them in a ziplock bag. If you have a bearing failure on the side of the road, you can get underway with nothing more than some simple tools and about a half-hour of time, instead of having to abandon the trailer to seek help in the next town.

Electrical Upgrade

Being from the early eighties, the coach electrics on this trailer are pretty simple. All the gas-operated appliances have pilot lights, so the electricity is only needed for lights, the water pump, and the blower on the furnace. Electricity is supplied by a 12-volt battery mounted on the trailer tongue, and recharged by an onboard power supply when we're connected to shore power.

Since we bought the trailer, I added a couple power outlets for charging cellular phones and such. I also wanted to relocate the switch for the water pump to a more convenient location. We also do a lot of camping in places where there are no services, so I want to add another battery.

I installed a secondary fuse panel under the front bunk, so that I could put the water pump, light, and power outlets onto separate circuits (so that a short in the power outlet, for example, doesn't kill the water pump.) I also installed a relay near the pump so that I could move the switch further away using thinner wire.

Next, I installed a second battery under the dinette, next to the power distribution panel. It's connected in parallel with the other battery, secured to the floor, and vented to the outside. The venting is necessary since lead-acid batteries produce hydrogen gas when being charged.

Finally, I replaced the plug on the shore power line. The line uses 10 guage conductors, so it's good for 30 amps, but sometime in the past the 30-amp plug had been replaced with a 15-amp one. This was probably done for convenience; it's more common to find a 15-amp outlet than a 30-amp one. Adapters exist to connect this cable to a 30-amp outlet, but I would rather have to deal with the more common situation of plugging a 30-amp plug into a 15-amp outlet. I believe it is safer; if you use an adapter to connect a 30-amp cable to a 15-amp outlet, you know you'll never get more than 15 amps running through your shore power line (since the circuit breaker upstream from the outlet will limit current flow to 15 amps. However, if you use an adapter to connect a 15-amp plug to a 30-amp outlet, you can get 30 amps flowing through your connection. And the 15-amp plug is not designed to handle the extra current. This presents a fire hazard. I'm against fire hazards, so I spent $25 and bought the proper plug and an adapter.

Tuesday, March 31, 2015

Cheaper for a reason

So, my pressure washer packed it in this past weekend.

My son was rinsing off the truck, and all of a sudden the pitch of the pump changed.  He released the trigger, and the pump didn't shut off like it normally does.

I killed the power, and discovered that the washer was spraying water out of the pump housing.

After we finished rinsing the car with the regular nozzle, I tore apart the pressure washer in search of the problem.

The photo is the pump assembly. In the foreground is the fitting where the soap tank attaches. If you look closely, you can see a seam in the plastic.

That seam is the problem.

The seam has failed, so the pump no longer works. This is apparently a common problem with this type of pressure washer. There is no fix that I'm aware of. (A replacement pump costs as much as a whole new unit.)

In hindsight, I'm not surprised. This unit was cheap, less than $150 CAD. Even though it has a good brand name attached to it, it's at the bottom end of the pricing scale for pressure washers.

What did surprise me was the time to failure; I've owned this unit for about two years. I expected even a cheap unit to last longer than that, considering the care I was putting into it.

I learned three things from this experience:
  1. Buy a pressure washer with an all metal pump. They cost more, but last longer.
  2. It's cheaper for a reason.
  3. Cheap crap is crap and no amount of maintenance or TLC will change that. I made sure to purge the water every fall, and I stored the unit in the basement so there was no chance of freezing. That didn't stop it from failing.

OK, I kinda already knew the second one. But I've learned that a pressure washer is really worth two or three times what I paid for mine, and rather than throw good money after bad, I have to decide if I really need one.

Monday, March 23, 2015

Garage door

My radio hobby has been put on hold.

With the arrival of March comes the melting of snow, which means that I, and not the weather, am the factor holding up my spring projects.

First and foremost of those projects is fixing the garage door.

Now, before I go any further, I'm going to point out that this article is for entertainment purposes only. Garage doors are dangerous if installed improperly, and you can easily injure or kill yourself or someone else, or cause a lot of property damage. So I don't recommend that you attempt to install or adjust an overhead door. Now, back to our regularly scheduled programming.

Back in January the spring announced its retirement with a loud bang. Normally this wouldn't be a big problem, except that the door assembly came from Wayne Dalton, which means it uses their proprietary counterbalance system, and because my door is too old, I would have to shell out several hundred dollars for a complete counterbalance kit.

Fortunately, my father had recently replaced his garage door. New doors tend to come as a kit, which means you get not only the door, but also the track, pulleys, cables, springs, and various sundry hardware to install it. This means that after all was said and done, my father was in possession of a complete counterbalance kit which, although old, was still very serviceable. Modifying my door to use the old spring system seemed a much more cost-effective option.

It turns out that not much has changed in garage door technology in the past several decades.
First, a brief primer for anyone who doesn't know how an overhead door works.

To start with, they're heavy. Mine is about 55 kg, or about 125 lbs., which is too heavy for me to lift, nevermind the garage door opener (which doesn't actually lift the door, but I'll get into that later.)
In order to make the door usable, it's attached to a counterbalance that reduces the weight of the door by exerting an upward force on the door to reduce the net force required to lift it.

The problem with an overhead door like mine is that their weight changes as they move up and down. This is because as each segment rounds the corner on the track, that segment no longer pulls the door downward. What this means is that simply attaching a pulley and weight to the door won't work; as soon as the door starts to go up, it will go out of balance and shoot up because the counterweight will be too heavy.

The answer to this is to use a spring. The force a spring exerts is proportional to its spring constant, which is determined by its manufacture,  and the amount that it is deflected (pushed away from its resting position). So, as the door is raised, the spring's deflection is reduced, and the system stays more or less in balance through the entire travel of the door.

Fitting the old spring system to the new door turned out to be easier than I expected. (I won't go into the gory details here.) I had to replace a couple brackets to make room for the larger pulleys. I had to modify the cables that connect the door to the spring mechanism. And finally, I had to cut the shaft upon which everything mounts, as the donor door was 6 feet wider than mine.

Once all the hardware was mounted, it was time to load the spring. Here was the moment of truth; the donor door was much larger and heavier than mine. It was also about a foot shorter. All this means that the springs might not work for my door.

Remember that the force exerted by a spring depends on its spring constant and the amount it is deflected? Well, I knew from doing the math that I needed to twist the spring at least eight full turns in order for it to work; any fewer and it would stop exerting a force on the door before it was fully open, which would cause the cables to come off the pulleys and jam the door.

The problem was that if the spring was too stiff, it would overpower the door before I got to eight turns, and the door would open by itself.

Now, the donor door had two springs, which shared the lifting force equally. My plan was to use one, which cut the lifting force in half, and hope that the door would balance.

As it turns out, my hope was not in vain. Ideally, the door should be balanced at all points in its travel (ie., not want to go up or down on its own when stopped at various points.) Mine isn't quite so good; it's balanced at the bottom, but gets a little lighter near the top. However, it's close enough that it's not dangerous, and there's enough tension on the cables, even at the very top, that the door works.

It's not so far out of balance that it causes the garage door opener any stress, which is the most important thing.

Oh, right, the garage door opener. I said I was going to explain what I meant when I said that it doesn't lift the door. Well, it doesn't, at least not directly. Mine has a horizontal track that pulls the door away from the wall and the door follows. This only works because the opener is pulling at the very top of the door, where it is ready to follow the horizontal track along the ceiling. This means that the opener is not very well able to cope with an unbalanced door, as it's not able to directly oppose the force of gravity that's holding the door closed. And that is why a balanced door is so important; if the door were too heavy, the opener won't be able to open it. At best, the opener will stall and shut down. At worst, the opener could burn out, or it could tear the top of the door apart (although I would bet that most openers are both too smart and too weak for this to happen. But hey, why take the chance?)

So that's one major springtime project out of the way. My next task is to get the RV trailer ready for camping season, since our first outing is in less than two weeks. Stay tuned.

Wednesday, February 25, 2015

Tuning my first antenna

So, I done gone and built my first antenna.

It's a simple directional antenna called a "yagi", designed to operate in the 2 meter amateur band (144-148MHz). The plans came from this QST magazine article. So far I'm out about $14 in parts and a couple hours' labor. (The plans are titled "7dB for seven bucks"; I chalk up the discrepancy to inflation and currency conversion).

The antenna works like this: there are three wire elements attached to a non conductive boom. The center element is the driven element; it is connected to the radio and is driven by it. The other two elements are called parasitic elements because they are not electrically connected to anything; they work by absorbing and reflecting the field produced by the driven element.
The longer element is called the reflector and the shorter one is the director. They work together to focus the field produced by the driven element, stretching it out along the axis of the boom and compressing it along the sides, in much the same way lenses and mirrors can be used to shape the light coming from a lamp.

But just like a musical instrument, building it is only half the job. Because an antenna is part of a resonant circuit, it must be tuned to match the radio to which it's attached. And the resonance changes with frequency, so the antenna must be tuned for the frequencies on which it will be used.
Now, I don't want to dive into a lot of electrical engineering here, partly because I don't completely understand it myself, so the short story is that a good measurement of how well your antenna is tuned is something called the standing wave ratio. Basically, if the antenna is out of tune, some of the power sent to it will be reflected back to the radio. The further out of tune, the more power is reflected. Too much reflected power will overheat and burn out the radio. The SWR is the measurement of how much power is reflected.

The resonant frequency is controlled by the length of the driven element. So tuning the antenna means changing the length of the driven element until the antenna resonates at the frequency you want. Since it's hard to make wires longer, I started with an antenna that was too long and trimmed the elements as necessary.

So how do you measure SWR? Why, with an SWR meter of course! Trouble is, I don't have one. However, a fellow operator was kind enough to lend me his antenna analyzer, which not only measures the SWR, but also the impedance, capacitance, inductance, and many other things. Since this is my first antenna, I'm not too worried about these things; I'm mainly concerned with building something that is an improvement over what I already have, without blowing up my radio, and an SWR below 2 will do that for me.

So I stood the antenna up on a step ladder in my back yard, hooked up the analyzer, and started tuning. Initially, the antenna resonated at about 130MHz, which is too low. I began trimming the driven element in 1/8" and 1/4" increments until I eventually got the antenna resonating at about 145MHz with an SWR of 1.6. This puts it nicely in the 2 meter amateur band.

How good is this? Well, before I packed everything away, I hooked the analyzer to the factory-built magnetic whip I have (A magnetic whip is an antenna which is magnetically stuck on the roof of your car). It resonates at 162MHz, has an SWR of 2.9 at 144MHz and an SWR of 2.4 at 148MHz. That doesn't sound very good, but if I were to give the manufacturer the benefit of the doubt, I would say that the poor readings are the result of the fact that a magnetic mounted antenna uses the surface to which it's stuck as a ground plane, which means it relies on a good electrical connection, something that is dependent on the type of paint used on the car (non-metallic paints will provide a poor electrical connection, which will hurt the antenna's efficiency.)

So while it's not the best antenna around, I'd say it's a good first try. Mainly I did it for the learning experience, and for that it was wildly successful, as it taught me an important lesson about antenna-feedline interaction:

The feedline gets in the way, electrically speaking. I originally had the coax feedline hanging down the mast in the center, which puts it inline and near to the driven element. On the advice of a fellow operator, I routed the feedline along the boom to the rear. This meant the coax was now running perpendicular to the antenna elements instead of parallel to them, which had a significant impact on resonance, impedance, and SWR. Future designs will take this into account from the beginning.

Thursday, February 12, 2015

Portable shack: Powering up

I needed a power supply for my Yaesu mobile. Often times, such as when programming,  I find myself wanting to power up the radio in the house. However, since the radio is designed to run in a car, it wants 12 volts DC. 
To maintain flexibility, I've wired the Yaesu with an Anderson connector, and built a cable to plug into a car cigarette lighter socket. This allows me to drop it into a car easily. For use inside the house, I have a power supply from an electric cooler, which plugs into the wall and supplies 12 volts to just such a socket. 
However, this power supply isn't up to the task of supplying the current necessary to drive the radio at full power; I can turn the radio on and program it, but if I try to transmit at anything above minimum power, the little power supply shuts down. 

Now, lucky for me, a computer power supply can also supply 12 volts. And depending on the unit, it can supply quite a lot of power. But you can't simply plug a radio into a computer power supply.
For starters, the plugs don't match. The power supply has many special connectors for the computer motherboard, drives, etc., while the radio uses a different connector. (in my case, an Anderson SBS connector that I'd scrounged.)

Secondly, while this power supply is able to deliver 10 amps on the 12V rail, none of the components connected to it need that much current all by themselves. Thus, the power supply has several 12V wires going to different places. The radio, on the other hand, wants that 10A all to itself, which makes these little wires less than optimal, (and probably a fire hazard.)

And finally, there are a lot more wires than I need. The power supply can not only deliver 12V, but can also deliver 5V and 3.3V, for other uses inside a computer. The radio doesn't need any of these other voltages.

This is a power supply I rescued from a computer destined for the recyclers. The first thing I needed to do was remove the rat's nest of wires hanging out the back. To keep things clean, I wanted to desolder everything from the board and replace it all with a single Anderson SBS connector. Fortunately, the holes in the board are large enough to accept the 10 guage wire that's on my connectors; the challenge was finding a soldering gun large enough. The wires themselves will carry heat away from the joint, so you need a gun large enough to put heat into the joint faster than the wires can carry it away. A torch would do the trick, but it would also burn the board.

Once I had removed all the wires, I soldered the Anderson connector onto the board. There's just enough wire to carry the connector outside the case, where I could bolt it to the chassis (as a strain relief.)

The next task was to provide a way to turn the power supply on. This is an ATX power supply, which means it's normally controlled by the computer. The computer is able to turn itself on and off, but it also means that there isn't a switch on the power supply; there's no way to turn it on unless it's connected to a computer.

Well, a little research on the internet showed me that if you tie one of the wires to ground, the power supply will come on, and breaking that connection will turn the power supply off. So I drilled a hole in the back of the case, installed a toggle switch, and connected it between this lead and ground.

This power supply is able to drive my Yaesu at full power (75 watts) without any problems. It supplies just a shade under 12 volts, which is less than the car, but the radio doesn't seem to mind. 

Friday, February 6, 2015

Portable Shack: The Next Generation

My first design for a portable radio shack has died on the drawing board.
After a bit of thinking, I decided that a single box to contain all my radio gear would simply be too big. Starting with a 30kg battery and adding a few radios would have resulted in a box that was just too much to haul around in a practical manner.

Instead, inspired by the design of the case for the Spilsbury SBX-11 that was given to me by a friend, (similar to the one pictured on this page,) I decided to build a case for each radio, and one more for the battery. In addition to making it easier to pack everything, since it's easier to move several small boxes than one huge one, it also provides more flexibility. For example, if I'm going on a short road trip, I can take the 2m mobile and plug it into the car's power outlet instead of lugging around a bunch of extra stuff (battery, HF radio, antennas, etc,) that I won't need.

Well, I just finished the first of these cases. It's designed to hold my Yaesu FT-2900R 2m mobile radio. The box is constructed of 3/8 plywood, rabbetted and joined with glue at the seams. Inside the case are several ripped-down pieces of lumber which act as spacers, so the radio is held snugly in the case while allowing room for air circulation. There's a space behind the radio so the antenna cable has room to turn around and exit via the front opening without getting damaged.
The microphone hanger is attached to the lid of the case, so that the mic can be stowed inside the lid when not in use. The case is waterproofed, so it can be left out in the rain without risking damage to the radio. (The only thing left to accomplish this goal is to add a gasket to the lid seam.)
I've made the wiring connections as modular as the case design. The power cable is short, fused, and terminated with an Anderson SBS connector. It will be connected to a longer cable which will supply power from a battery, or a car's power outlet; using the Anderson connectors means I can build different cables for each power supply application, and interchange them between my radios. I'm also going to get a small extension for the antenna line so that I can connect an external antenna from the front, instead of having to remove the radio from the box each time I set it up and take it down.

With this setup, I can set up a station nearly anywhere, in only a couple minutes. It's even suitable for dropping into a vehicle to provide mobile service, as long as I don't have a front passenger. And while it's not as portable as my handheld, it also has fifteen times the output power, so I can see it being taken to a lot more places now that it has a nice-looking overcoat.

Wednesday, February 4, 2015

Chasing RFI: The Workaround

The only thing better than seeing a project through to its conclusion is not having to do the project at all.

I had been reading this document, which does a very good job explaining RFI, while I tried to find some time to hunt down the source of the interference in my house. While I was doing that, the good folks who brought us CHIRP made some improvements to the software that allow me to expand the squelch range on my Baofeng GT3, which meant I could cut out the bursts of static while still hearing actual signals.

"But hold on a sec," you say, "what exactly is this squelch thing you're talking about?" Squelch is a circuit in a radio receiver that turns off ("squelches") the audio when a signal is not being received. When a strong enough signal is detected, the "squelch is opened" - the audio circuit is turned on so you can hear the received signal.

Not all radios have a squelch circuit, but the ones that do (all that I've seen at least,) have an adjustment. This allows you to set the strength of signal that is required before the squelch opens. Ideally, you want to adjust the squelch to be low, so that you don't miss a transmission. However, there are times when you need to turn it up, such as when you're in an area with a lot of RF noise.

The problem with the UV5R series of radios (of which my GT3 is a member), is that the squelch is notoriously useless. Bursts of static will trick the radio into thinking that there's a signal present when there isn't one, and the squelch adjustment is very narrow (there is no noticeable difference between level 1 and level 9).

So, back to CHIRP. The 10 levels of squelch available in the GT3's menu (0 thru 9) are mapped to values inside the radio's programming. In fact, the radio can set the squelch anywhere between 0 and 127. At the factory, the 10 levels in the menu are mapped to these internal values.

Once I installed the latest daily build of CHIRP and looked at the squelch mappings on my radio, I discovered that levels 1 thru 9 (0 is mapped to 0, which disables the squelch circuit altogether) were mapped to values between 17 and 33, in increments of 2. On the advice of this page on the Miklor website, I changed the values to range between 24 and 64, in steps of 5.

After dumping the modified image to my radio, I moved to a part of the house where I previously had static. I turned the squelch up one step at a time until the static stopped. While I was doing this, a couple other folks were having a conversation on the local repeater that I was monitoring. I was able to confirm that my new squelch setting got rid of the static while still letting the signal from the repeater through.

So my time-consuming hunt for RFI sources has been called off. And a good thing too, since I have a bunch of other projects on the go, and I don't really have the time to go chasing RF gremlins.