Friday, February 20, 2015

A "quiet" 5 volt USB car power supply

For a previous, related article see the May, 2014 posting - "How USB car power adapters can ruin 2 meter mobile reception" - link.

In that post I wrote about those ubiquitous USB car power adapters that fit in a cigarette lighter and while these devices work well for power phones, GPS receivers and the like, they are terrible if you have any intention of listening on 2 meters (or other bands!) while in your car - even if you are using an external antenna.

Unmodified, I found that the unit that I had in my car had effectively reduced the sensitivity of my 2 meter transceiver - with its external, permanently-mounted antenna - by nearly 40dB.  To put that into other terms, a signal that was weak, with this adapter turned off, would have to be increased in signal strength by a factor of 10 thousand to sound the same when the adapter was plugged in with cables attached!

Figure 1: 
The completed USB car power adapter in the box.
Click on the image for a larger version.
Modifying the adapter as noted in the above link I managed to knock down garbage emitted from the adapter by 15-20 dB (a factor of 30-100) - a significant improvement - but when driving up some of the local canyons I found that repeaters that had been perfectly copyable along the entire route previously were no longer audible unless I unplugged the adapter.

Something had to be done!
 
I'd already done about as much
to the small cigarette-lighter USB adapter as I could, short of completely rebuilding it, but it was still too noisy.  The problem with this device was that of differential currents:  Between the input and output terminals of the device there were, on the circuit board, several amps of switching current floating around.

Even though there was a common "ground" shared between the input and output, this same "ground", consisting of just a few short and somewhat thin traces rather than a large, heavy and solid ground plan was suprisingly reactive at higher frequencies - such as those above a few 10's of MHz.  Even a very short length of circuit board trace can have a few 10's of nanoHenries of inductance, but if you are pushing amps of current and considering harmonic energy at 100+ MHz, you can soon see that these seemingly few nanoHenries can make what would seem like a "solid" ground plane act like the feedpoint of an antenna.  With the switching supply itself as the transmitter and the car wiring and the connected USB cables acting like the wires of a dipole antenna one can soon see where the interference was coming from!

Aside from having the voltage converter designed on a "proper" multilayer circuit board with very high quality components - not something that you'll get on a $5-$20 power adapter - the only other way to take care of the problem is to put the entire thing into a metal enclosure and filter/bypass all of the power leads going in and out.

Two approaches:

There are two approaches that I could have taken to accomplish this task.

 1)  Containing noise from the original adapter.

The easiest would have been to take the original USB power adapter and put it in a shielded enclosure and bypass all of the leads going in and out.  I would, of course, have lost the convenience of the small, self-contained device that plugged into the cigarette lighter, but I would have solved the problem.

The techniques described below could apply to filtering the original adapter, just as they did the approach that I ended up taking.

2)  Build another supply.

Figure 2:
The "DC to DC Converter Step-down Voltage LED Power Module 3A"
obtained from EvilBay.  (Ignore the slightly messy soldering - that
was the fault of myself and the often  "grainy" nature
of  lead-free solder!)
Click on the image for a larger version.
If you have been following this blog or read any of the other entries, you will not be surprised that I took this route - but I did not build it entirely from "scratch", but I went to EvilBay and found some inexpensive buck-type switching regulators for under $2 each and used them as a starting point:  I couldn't even get the components themselves for $2!

The devices that I found were described as "DC To DC Converter Buck Step-down Voltage LED Power Module 3A 12V To 5V 3.3V" (see Figure 2) and are based on the LM2576 switching regulator.  These also had a fixed 3.3 volt regulator on board, but I had no need for that so I left it in place, doing nothing with it.

It is important to note that a cheap, $2 switching regulator from EvilBay is not going to be any better than the original USB car adapter in terms of RF cleanliness and it may even be suspect in terms of reliability so a few things need to be done to the $2 board before it may be deemed to be reliable and useful.

The first things to consider are the electrolytic capacitors on the cheap switching regulator boards:  They are not to be trusted!  This should be considered to be true of any cheap switching supply that you get on EvilBay!
 
Figure 3:
The inside of the converter showing the  components for filtering
and the two switching modules.
Click on the image for a larger version.
In any switching regulator, one of the most important aspects of component selection is that of the quality of the capacitors:  They must be of the low ESR type, designed specifically for switching service and even more importantly, they must be of a known manufacturer, obtained from a reputable seller.

Upon inspection of these switching regulators I saw that the capacitors onboard were rated at 105C - a good sign - but I'd never heard of the maker.  Rather than removing the original capacitors, I simply paralleled them with 100uF low-ESR Nichicon units that I'd obtained from a reputable supplier (either Digi-Key or Mouser) and used a dab of RTV ("silicone") adhesive to secure them into position.  I would not recommend the use of "hot melt" (thermoset) glue for this:  It will be in a car, which will get hot and bounce around and they will break loose!  Putting these "good" capacitors in parallel would take a lot of the stress off the "unknown" capacitors on the board, prolonging their life.

Figure 4: 
A close-up of the added capacitors and the piece of copper added
for heat sinking and mounting of the regulator board.  As can be seen, a
small piece was added to help stiffen the right-angle board and
increase the heat conductivity.
Click on the image for a larger version.

The second thing to consider about these cheap switching regulator boards are their current/power ratings.

These units are rated at 3 amps output, and a quick check on the data sheet for the LM2576 indicated that this was about right.  Going on faith that the LM2576's on board were the genuine article - and not counterfeit devices - I put one of them on the bench supply and loaded the output to 3 amps and found that they held up fine, but that the heat-sinking - such as it was - was not adequate, at least if I were to put them inside a metal box with no air ventilation.

Fortunately, the solution was simple:  Add a bit of extra heat-sinking.

Using a bit of scrap copper, I constructed and then soldered an "L" bracket to the circuit board on the back side of the board, opposite to where the LM2576 was mounted.   This bit of copper would not only conduct heat away from the LM2576, to the aluminum body of the  die-cast box, but it also provides a very good local electrical "ground" connection for the board as well:  Figures 4 and 6 show details on this bracket.  When you solder this piece of copper to the board, be careful in the application of heat as you could easily "un-solder" the LM2576 from the other side:  I did this by accident on this board that you see in Figure 2 which explains the rather lumpy solder connections!


Filtering circuitry:

The schematic diagram in Figure 5, below, shows how the input and output filtering is connected.
Figure 5: 
Schematic diagram showing the filtering and interconnections.
The "5V/3A Buck Conv." are the voltage converter modules as described/modified.
Click on the image for a larger version.

How it works:

Referring to the diagram in Figure 5, above, L1, a 22uH inductor (the toroid in the upper-left corner of Figure 3, wound with red wire) offers impedance to RF that may ingress from outside and feedthrough capacitor FT1 shunts any remaining RF to ground.  L2 (the yellow-core toroid on the far left wound with reddish wire) blocks RF that may be present from the switching converters DC inputs, also allowing capacitor FT1 to do its job.  Capacitors C1 and C2 perform "bulk" filtering of high switching currents that may be present on the DC input lines, coming from the two DC-DC converters.

There are two identical DC-DC "buck" type converters and only the upper one will be discussed:

Inductor L3 (visible on the right side of Figure 3 on edge covered in heat-shrink tubing) blocks residual switching energy and RF that are on the DC line coming out of the switching converter and these are shunted to ground by FT2, a feedthrough capacitor and additional filtering is provided by C3.

As noted above, all of the electrolytic capacitors are of the "Low ESR" types and of well-known manufacturers (I use only Panasonic or Nichicon).  Again, when dealing with switching supplies, these special low-impedance capacitors are absolutely necessary in order for proper, long-term reliability and efficient operation of such power supplies and using any other type of capacitor will inevitably result in reduced operational lifetime and/or efficiency.

Figure 6: 
The back side of the switching regulator board showing the
added capacitors and the added mounting bracket/heat sink.  The 100uF,
low ESR capacitors added to supplement the original capacitors
on the (cheap!) regulator board can be clearly seen, held in place
with RTV (silicone) adhesive.
Click on the image for a larger version.

Not mentioned in the above description are components R1, R2 and R3 which are self-resetting thermal fuses.  These typically look much like yellow disk ceramic capacitors (they may be either round or square) and when the current through them exceeds their ratings, they get hot (approximately 100C) and their internal resistance increases, effectively opening the circuit.  Unlike a fuse, when the current is removed they immediately cool down and return to their previous state and reset themselves.

These devices are inexpensive and have the obvious advantage of protecting their circuits like a fuse, but self-resetting after the fault has been cleared!

In the above circuit I happened to use "feedthrough" capacitors which may be seen on the metal barrier near the right edge of Figure 3 (the blue devices soldered into it).  While these devices are especially designed for passing DC and blocking RF, they are a bit difficult to find - but are not absolutely necessary.  Instead of feedthrough capacitors, good-quality "monolithic" multilayer capacitors (the small square ones - not disk ceramic) could be used instead, soldered to the wires with very short leads as they pass or through a hole in the solderable ground plate.

In looking at Figure 3 you will also notice that there are two metal barriers constructed of brass:  One in the upper-left corner, just above L2, and the more obvious one near the right side into which feedthrough capacitors FT2 and FT3 are soldered.  Perhaps a bit of overkill, these provide a (literal!) RF barrier into which the feedthrough capacitors are soldered,  Practically speaking, they provide a convenient place to which the important RF bypassing capacitors may be mounted to the aluminum box to which one cannot solder

Aspects of filtering - why this works:

It was noted earlier that the reason why the original USB power converter was so noisy was that there were many amps of switching currents floating around along the circuit board and even though it was "grounded" at DC, the fact that there was so much current and that the circuit board's traces had some inductance that was significant at VHF was the reason why it radiated badly!

In this circuit, we have taken pains to avoid the pitfalls that would cause it to radiate and if you take your own approach using your own switching converter - perhaps putting that USB power adapter that you already own into its own, shielded box, there are a few things to consider.

In this case, it is the combination of the box itself and the inductors and capacitors that work together to contain the switching energy within the confines of the ground plane of the interior of the box.  It is important to note that it is not the shielding of the box, per se that is the magic here, but the combination of chokes in the various leads and the "solid" ground plane which assures that the circulating currents stay between the input and output leads and do not appear across them where they can radiate.

Take, for example, the output inductors, L3/L4.  The job of an inductor is to resist the change of current so it will pass DC just fine, but it will block AC which means that any RF that gets out of the switcher will hit L3/L4, be blocked by it and whatever small amount of residual energy is left will get shunted to ground by FT2/FT3 and further filtered by C3/C4.

The point here is that on the output lead, L3/L4 will block the RF currents as they leave the switcher, breaking up the path for these currents on the output leads.  This not only prevents that energy from appearing on the output leads, but it also prevents any circulating currents between the input and output as well.

What about switching currents on the input lead?

This is handled by using a good quality capacitors for C1 and C2 which will shunt the vast majority of switching energy to ground.  Residual RF switching energy is then blocked by L2 and whatever little gets through is shunted to ground by FT1 and then there's yet another inductor, L1!

Sources of components:

I happen to have a pretty good junk box of components - particularly the toroidal inductors used.  If you don't have such inductors laying around, junked PC power supplies will likely have what you need in the form of toroidal inductors and small, solenoid-wound chokes wound on ferrite.

The values given (22uH, 47uH) are not at all critical:  Anything from 4.7uH to 100 uH would likely work fine as this range would be more than enough to choke off RFI - but the higher values (22uH and higher) would be somewhat preferable if you have an HF rig in your vehicle that might be bothered.  The most important rating on the chokes to consider is that they be wound with reasonably large wire - say #18 AWG or heavier:  If a couple of amps is pulled through the choke, you don't want it to drop more than a tenths of a volt at most, particularly on the output lead!

As mentioned above, you really do need to get good quality electrolytic capacitors for this and I would recommend places like Digi-Key or Mouser in the U.S. and Panasonic or Nichicon brands. I would strongly suggest that when you go looking for capacitors that you get only those that have "low impedance" and/or "low ESR" in their specifications.  Another thing to look for is their temperature rating:  If they are only 85C, they are probably NOT low ESR or low impedance type.

The die-cast box is approximately 4-5/8" x 2-1/2" x 1-1/2" (12 x 6.5 x 3.75 cm) in size and I obtained it from Jameco Electronics, but similar boxes are readily available surplus and on EvilBay.  A suitable enclosure could be also be constructed using pieces of copper-clad circuit board material, and this would have the advantage of being able to solder directly to it, or one could use a much less-expensive folded aluminum "Bud" type utility box.  The important point is that internally, everything must be connected together on a very heavy, solid ground plane, preferably  without any mechanical joints in the box itself between those internal ground connections.

If you were to just put all of these same components into a plastic box and connect their common point grounds together with thin pieces of hookup wire, you would be risking having RF currents circulating along that thin piece of wire and there being differential voltage across it and having the problem, once again, of RFI escaping the switching regulators!  The only way to make a plastic box work for this sort of thing would be to construct a "box within a box" with the internal one being constructed entirely of metal.

Getting the power out and connecting it to the devices in the car:

Up to this point nothing has been said about getting the power out of this box.

Since the female USB connector is ubiquitous, I decided that this was a good approach so I found some inexpensive "USB Extension cables" on either EvilBay or Amazon (I forget which) and when they arrived, I cut them up, using only rather short portion of the cable with the female USB cable to minimize voltage drop, verifying the power connections in the USB connector using an ohmmeter and a USB pinout diagram that I found on Wikipedia.

It should be mentioned that some devices, particularly cell phones of various brands, particularly those named after fruit, may require that the "data" lines be connected to resistors that "program" the charging current before they will accept a charge:  Not having one of those types of phones I connected nothing to the "D+" or "D-" lines and found that my Android phone charged normally - although it may be that it would charge faster if I would have connected those lines to resistors.  Some phones will pull several amps while charging, hence the use of a pair of 3 amp converter boards!  (e.g. one to run the GPS receiver in the car, the other to charge phones...)

Other devices simply connect to the female USB sockets as normal.

One of the devices powered by this box is my Garmin GPS receiver which has a "special" power cord:  If there is not a resistor across one of the pins of its mini USB connector it will search for a computer when it powers up, delaying its start up.  Since this resistor is built into its power cord I simply removed the cord from the original Garmin power adapter and connected it to the new power converter box and it was happy, booting up immediately, bypassing the check for the computer!


How well does it work?

One of the tests that I ran on this USB supply was to connect a 100 MHz oscilloscope to the input and output leads of the power supply.  With the sensitivity of the 'scope set to maximum I can see just a few millivolts of ripple from the LM2576 regulators, but this energy is confined only to the switching frequency of these devices and the first few harmonics.  Since it is at such a low level it is very unlikely that even if I were to power a sensitive receiver from this regulator that was tuned to the switching frequency that I would even be bothered by it!

The 'scope showed absolutely no evidence of switching energy at higher frequencies so I connected my FT-817's antenna directly to the DC input and output of the supply via a 0.01uF blocking capacitor and only at the lower frequencies (say, 160 meters and lower) could I detect the harmonics of the switching regulators.  If I placed a wire connected to the FT-817's antenna port near one of the power wires going into/coming out of the box, I could hear nothing of it at all.

After all of this, it needn't really be said that this device is completely "clean" at 2 meters and 70cm as well as the FM broadcast band!

What I did hear a little bit of "grunge" from is one of the devices that I run from it (a gps-based dashcam) but breaking that device open and adding a small choke and capacitor on its DC input lead fixed that problem - but a couple of turns of the power lead through a ferrite core would have probably quashed this as well.

Using a "Linear" regulator:

It is worth noting that a much simpler 5 volt USB power supply could have been built using a linear, 3-terminal regulator such as a 7805 or one of its variants.

While this would certainly satisfy the problem of there being switching energy, it would introduce the problem of power conversion efficiency.  In the car environment, wasting a few watts of electricity isn't too much of a problem, but the difficulty is getting rid of heat.  For example, if you were charging your telephone and it was pulling 1.25 amps, running the numbers tells us:

14 volts (typical vehicle voltage) - 5 volts (output) = 9 volts to drop across the regulator

9 volts * 1.25 amps = 11.25 watts of heat to dissipate

11 watts of heat does not sound like much, but it actually takes a fairly large heat sink to do this - and this heat sink must have free air circulation around it.  In other words, if you build a power converter based on this, if you put it into a box, the heat sink cannot be enclosed within the box unless there are a lot of holes and the box itself is located where there can be good convection air circulation!

Alternatively one could build the regulator into a metal box, using the enclosure itself as the heat sink.  Still, it would be a good idea not to bury it somewhere where it could not get some air across it or was exposed to engine heat or in the direct path of air from the heater vent.

In contrast, the aforementioned switching power converter is capable of approximately 6 amps and if one assumes that it is 85% efficient - a reasonable value - one can see that it would not produce much more heat than the above example, worst case!


Final comments:

I could have used the above techniques to clean up the original cigarette-lighter USB power adapter, if I had:
  • Removed the circuit board from its case.
  • Put it in a metal box, grounding it firmly.
  • Supplied DC input power via the L/C (coil/capacitor) filtering as done above.
  • Filtered the DC output power via the L/C filtering as shown above.  I would not have been able to use the USB connectors of the original power adapter, directly, but rather I'd had to have wired in female USB connectors as was done above.
 It would have taken less effort, but it would probably have worked just as well!


[End]

This page stolen from "ka7oei.blogspot.com".

Friday, January 30, 2015

Updated version of the "Simple" PWM LED/Laser modulator

A few years ago, for our friends in the Tucson area, I threw together a "simple" PWM circuit for audio modulation of high power LEDs (but it works just as well for laser pointers) for an optical transmitter - you can read about that here:

A "Simpler" Pulse-Width Modulator for LEDs, Lasers and whatnot and a simpler foam-core enclosure - link
Figure 1:
As-built prototype of the updated PWM transmitter designed to test both
 the AGC and manual gain/tone configurations.
There is currently no circuit board pattern:  If you design one,
please let me know!
Click on the image for a larger version.

As the page describes, this was intended to be comparatively simple and flexible in its operation, providing both modulation of both audio and test tones.  While it worked just fine, it did bother me a bit that it did not have a "manual" gain mode - that is, one could not simply override the audio AGC - which does work quite well - and "ride" the audio level manually, instead.

That was 2009 - so flash forward to 2014 when, at the request of some fellow amateurs in Australia, I finally got the impetus to update the firmware to add the means of selecting a completely manual gain control to the PWM circuit, of so-desired, in addition to various tone modes, all by setting pins on the PIC processor to the appropriate logic levels.  Of course, the original AGC audio mode is still present and may be used exactly as before, if one wishes, and one could even construct the circuit so that it could be switched between manual and AGC mode.

What it's for:

If you have ever been to the Modulatedlight.org web site link  (which I'll admit to having quite a lot to do with...) you will know that it has a lot to do with optical communications - mostly using high-power LEDs, but it also touches a bit on using low-power laser modules as well.

For modulating audio onto LEDs, onto LEDs, one of the easiest ways to do this is via linear current modulation, a process that is explained on the web page Linear Modulator for high-power LEDs - link.

Figure 2:
Examples of waveforms used to generate PWM signals,
from the web page "The Luxeon:  
New Light of Hope for Optical Communications"
by Chris Long

Another way that LEDs may be modulated is by turning them on and off in a manner that simulates linear modulation using a method called PWM, or Pulse Width Modulation - a system that is very easy to do using digital hardware such as counters and is often found in microcontrollers.

For laser diodes such as those found in laser pointers, current modulation is NOT very good for a number of reasons, including the fact that the brightness-current curves of laser diodes isn't particularly linear over a wide range, nor is it predictable at which current a diode will start to laser under a given set of conditions (e.g. temperature, age) or up to what current a specific diode can be safely operated!

For amplitude modulation, it is always preferable that one modulates as deeply as possible to achieve the best-possible signal-noise ratio and if one is trying to current-modulate a laser diode, this becomes problematic as the bounds of safe and reliable operation are difficult to know!  It is more convenient, then, to simply turn it on and off, operating it at a known, safe current when it is on and varying the duty cycle using PWM.

If the switching frequency of the PWM is sufficiently high it will be compatible with a "conventional" analog optical receiver that was intended for amplitude-modulated light sources as the PWM waveform will be integrated by the low-pass response of the receiver's front end.  At the very least, the PWM frequency must be at least twice that of the highest modulating frequency of the audio to be carried  and if necessary, a simple low-pass filter could be added to an existing receiver to remove any residual switching components - see Figure 2 for a pictorial of how a "slow", low-pass response can smooth out the PWM frequency components.

How it works:

Figure 3:
Diagram of the version with audio AGC.
Click on the diagram for a larger version.
This circuit uses a PIC12F683, an 8 pin microcontroller internally clocked at 8 MHz.  Using its PWM hardware, it generates a waveform with a clock rate of 31.25 kHz that is pulse-width modulated at a resolution of 8 bits - suitable for voice.

Audio can come from one of two places:  A built-in tone generator, or an external microphone/line-in audio source.

Using DDS techniques, audio sine waves can be generated at frequencies from a few 10's of Hz to several kHz and these are applied to the PWM generator, producing tones with 100% modulation depth.

Audio from the microphone or line input is first amplified and then low-pass filtered to remove high-frequency content and applied to the 10 bit A/D input of processor where it is digitized at a rate of 31.25 kHz and also passed to the PWM output.

"AGC" mode:

In diagram depicted in Figure 3, the circuit is configured to use an audio AGC to assure that the modulation is kept at a consistently-high level.  The audio level is monitored continuously to determine if its level is within 6 dB of clipping.  If it exceeds that level, a counter is incremented, but if it does not, a counter is allowed to self-decrement.  If the counter exceeds a pre-set value indicating that the audio level has been high recently, the processor pins that control the gain on the amplifier stage are adjusted to reduce the gain to the next, lower step.  If the counter self-decrements below a pre-set value indicating that the audio level has been consistently low, the gain is adjusted to increment.

There is also a built-in 12 dB gain adjustment in software:  If the audio has been low and the audio gain is near maximum, a 12 dB gain step can be switched in which is done by first limiting the A/D values in software to ostensible 8 bit values and then shifting the A/D data to the left by two bits and offsetting.

When switched to the "tone" mode, instead of audio being applied to the A/D input, the voltage from potentiometer R220 is applied instead allowing a variable voltage to be used to set the tone mode:
  • <=0.5 volts:  1 kHz tone
  • >0.5 to < 4.5 volts:  Variable frequency audio tone
  • >= 4.5 volts:  Tone sequence
Having a fixed 1 kHz tone is useful if using a computer or other device when setting up end-to-end alignment of an optical path as narrow detection bandwidths may be employed to maximize the overall sensitivity of the detection scheme.  Because this PIC's oscillator is not crystal-based, the actual frequency can vary by several percent, but it should be easily spotted with spectral analysis programs such as "Spectrum Lab" by DL4YHF, Spectran or Argo (to name but a few).

In the variable tone mode the frequency may be set from a few 10's of Hz (below mains frequency) to a bit over 2 kHz as desired.  Finally, the "tone sequence" mode is designed to emit a musically-dissonant series of notes (C4, E5#, F4#, E6) that really stick out of the noise:  By being dissonant, spanning over an octave and non-continuous they avoid "ear fatigue" and are more likely to be heard amongst other sounds that may be being heard from power mains and electric signage that might be intercepted.

Manual gain mode:
Figure 4:
The version with manual gain control
Click on the image for a larger version.

While the audio AGC works quite well to assure that ones voice fully modulates the LED to maximize "talk power" and signal-to-noise ratio, one may prefer to have a manual gain control instead and manipulation of several of the pins on the processor allows the selection of that mode as depicted in Figure 4.

In this version the audio gain is set with R309, but one can effect a "software" gain setting two switch in an extra 12 dB of gain via appropriate strapping of pin GP4.  As with the "AGC" version, there a variable "tone" mode is available but there are also some "fixed" tone modes that may be selected via appropriate strapping of pins GP3, GP4 and GP5 if you don't wish to use a potentiometer.

Minimalist version:
 
Figure 5:
Minimalist version.
Click on the image for a larger version.

Finally, Figure 5 depicts a somewhat minimal approach to the circuit, using only a single op-amp section with no active low-pass filter, manual gain control and the optional selection of a tone mode if you choose to implement switch SW301.

At its very simplest, one would connect GP3 (pin 4) to the +5 volt line to put the PIC into audio mode all of the time, but the triviality of adding just one SPST switch and a resistor would provide the facility of a tone generator, doing so would be hard to resist!

Getting the code:

If you are interested in building a modulator for an LED or laser using this device and are interested in the .HEX file for programming the PIC yourself, please let me know.  If you don't have a way to program the PIC and want a pre-programmed device, I can arrange that, too.


More information:

For more information about Free Space Optical Communications for the amateur, be sure to visit the Modulated Light page - http://www.modulatedlight.org



[End]

This page stolen from "ka7oei.blogspot.com".

Tuesday, January 27, 2015

Update on the mcHF transceiver - Adding features to the original code

For an follow-up article, see this link.

It has been a few months since I have posted anything on the mcHF transceiver  (my previous post may be found here - link) so unless you have been following the mcHF Yahoo group (link - membership required) you would be forgiven for thinking that I had abandoned work on it.

Figure 1:
The mcHF transceiver in operation, showing signals on 10 meters.
Click on the image for a larger version
Quite the contrary, a lot of features have been added to the code, starting with the fine foundation written by Chris, M0NKA based on version 0.0.181.  Considering that he pulled the disparate pieces together pretty much single-handedly, it is quite amazing what was there when I started!

Of course, this is open-source and the whole idea behind it is to allow multiple contributors:  It would be the height of hubris to think that just one person had a monopoly on good ideas, let alone the time to implement a fraction of them, so a group effort is key here.  Even if the majority of the group does not actually contribute directly to writing code, getting user-feedback is absolutely vital to knowing if one is going down the proper path and the detection and fixing of the inevitable bugs that creep in when work is done!

What is the mcHF?

I've had a few people ask me about this transceiver, wondering what it is, some apparently under the mistaken impression that it connects to a computer somehow like many SDR products.

This is, in fact, a completely stand-alone SDR transceiver capable of operating on all bands from 80 through 10 meters. *


RF goes in/out through a BNC connector, DC is applied, one listens to audio on a speaker or headphone, and "talks" with a microphone or an attached CW key/paddle/bug.  If so-desired, you can even connect it to a computer (or smart phone) and run some "sound card" digital modes like PSK31, RTTY, Olivia, WSPR, DV2 or SSTV if you like via its Line in/Line out jacks. **

The "heart" of this transceiver is the ARM Cortex M4 processor (made by ST) running at something under 200 MHz, a reasonably-powerful device, but not super powerful, which makes for some interesting challenges when one is trying to squeeze in various features - more on that in later posts.

* 160 meters is possible too, with just a bit of "hacking" - maybe just as simple as adding an outboard 160 meter low-pass filter.
** Because it is an SDR it should, in theory, be possible for the mcHF to run some digital modes stand-alone as well, but there is the problem of "too many desired features and too little time"!

Why did I do this?

You might think that I started this project knowing all about SDR and DSP.

You would be wrong.

The reason that I tackled this project was that I DID NOT  know all that much about SDR and DSP.  To be honest, I do have a programming and electronics background (but almost entirely self-taught) and I "knew" how SDR radios and DSP worked at the high level, but I'd really never gotten my hands dirty - so this was my chance to get myself drenched, not just my feet!

Not having worked with the Cortex M4 processor before or the CooCox programming environment, but being familiar with the "C" programming language in general (I've used it for many years in programming PICs and other things) I found Chris' source code to be fairly easy to follow, fairly well documented, and the programming software pretty easy to use and I was soon able compile my own code successfully - so I started adding features.

In the next few posts I'll describe the "behind the scenes" of a few of the features that I added.

* * * * *

Adding features - AGC:

As it happened, just as I got started with this project, Chris had other obligations that diverted his attention for a while, but he was happy to see progress being made:  He did make it open source, after all!

The first major change that I made was the implementation of an AGC in the receiver - something that had been missing from the beginning.

Admittedly, I had no pre-conceived notion as to how to do this in code and I purposely did not look at other open-source implementations, but since I knew exactly how an AGC circuit worked, so I simply wrote some code that emulated the rapid charging of a capacitor in the presence of a signal and the slow discharge in its absence and adjusted the "gain" of the audio path in the process simply by multiplying the "live" audio by the floating point number on-the-fly.

In a nutshell, it works like this.

In a loop, operating on each audio sample:
  • Take the absolute value of the pre-AGC, post-filter audio signal.
  • Multiply it by the current AGC value.
  • If the resulting value is above the AGC "knee" value, reduce the AGC value quickly (e.g. the AGC "attack") by an amount proportional to the current AGC value, but if it is below the AGC "knee" (e.g. the AGC "decay") increase the AGC value comparatively slowly by a proportional amount.   The rate of the "decay" is the AGC "hang" time.
  • Enforce limits to minimum and maximum AGC values.
  • Multiply the audio signal by the AGC value.
  • Use the linear AGC value to calculate the logarithmic S-Meter reading.

To my amazement, it actually worked the first time!

Not mentioned above is the fact that a bit of delay is added to the audio path, allowing the AGC correction to be applied "before" the signal was too high:  Doing this "look ahead" properly can completely prevent AGC overshoot when there is a (suddenly) strong signal in the passband.

Signal path gain control:

As often happens, tweaking the software leads to tweaking the hardware - which leads back to more tweaking the software.  Originally there had been an N-channel JFET across the RF signal path ("Q2" on the RF board) to provide a manual attenuation control.  The problem was that, due to an oversight it was not possible to completely bias this JFET to an OFF state as there was no way to apply a negative gate bias, so it was always causing a bit of signal attenuation (typically 6 dB) even when the attenuation control (and gate voltage) was set to "zero."

I'd also noticed that, while tuning around the bands, particularly 40 and 80, that some strong signals would cause terrible distortion so I put the transceiver on my service monitor and observed that its receiver would overload badly, with clipping of the A/D converter occurring at around -55dBm!

Ouch!

This transceiver uses a Wolfson WP8371 (which is very similar to the pin-compatible TI TLV320AIC23) which contains both a 16 stereo A/D and D/A converters.  In receive mode, the A/D converter takes the quadrature I and Q channels from the receive mixers and digitizes them, sends them to the MCU (processor) and then the D/A converter produces the receive audio.  In transmit, the A/D converter takes the transmit audio which is processed by the MCU and the I and Q channels are sent out via the D/A converter to the transmit mixers.

Upon inspecting the code I noted that the internal gain control of the codec was set to maximum which made me wonder if I could extend the dynamic range of the receiver with the codec's own gain control.

A bit of quick experimentation showed that by setting the codec gain to minimum the signal overload point of the receiver was raised from about -55dBm to around -19dBm - a significant improvement!

Note:  This "overload" level applied to signals within the A/D passband, +/- 24 kHz of center.  The "overload" level of signals beyond this range is approximately -5 dBm or so, the level at which the mixer, RF amplifiers and operational amplifiers started to compress/clip.  This is possible due to hardware-based "brick-wall" filtering within the codec chip that removes out-of-band signals beyond this +/- 24 kHz range plus the intrinsic low-pass filtering of the signal chain that attenuates signals that are much farther removed than that.

A bit more "hacking" at the code yielded the final result - an additional "AGC" loop wrapped around the main AGC loop:

  • The output of the A/D converter is monitored.  If the output exceeds 1/8th full-scale, the codec gain is reduced by one "step" ("several" dB) immediately.  At this same instant other places in the receive signal chain (e.g. audio, S-meter) are rescaled by the same amount to compensate.
  • If the output of the A/D converter never exceeds 1/16th full scale for "a little while" the gain is increased by one step.  In other words, when the strong signal(s) disappear, the gain is increased relatively slowly.  A lower threshold is used for the gain increase to add hysteresis and reduce the likelihood of constant "hunting".
  • If the output of the A/D converter is higher than 1/4 full scale, the bottom portion of the S-meter scale - which is normally white - is displayed in red to indicate a possible overload condition.  This does not indicate a malfunction, but is mostly for informational purposes and it could be useful if one decides to override the "Automatic" codec gain control and use the "manual" codec gain control instead.
  • Internally, the "front end" gain of the codec is tracked and this value is used to compensate, on the fly, those other values that require the input level to always be properly scaled with respect to the RF signal's input level.  Such parameters include the S-meter, spectrum scope/waterfall and the digitized audio from the A/D converter itself.  Where this not done the aforementioned items would "jump" as the codec's gain was adjusted, affecting their operation!
The upshot of the above is that on a "busy" band with strong signals one will occasionally see the bottom portion of the S-meter flash red, but it is extremely rare for the receiver to overload.  Even though reducing the gain of the A/D converter does reduce the ultimate sensitivity of the receiver, in practice this is almost never noticed since, on a very busy band where there are very strong signals, one would probably not "miss" an S-unit or two of sensitivity at the bottom end of sensitivity, anyway!  In other words, we are more prudently using our limited, available dynamic range!

This also meant that by changing the code and taking advantage of the hardware gain control built into the codec, the "iffy" JFET attenuator circuit could be completely eliminated as this new method of "attenuation" was much more effective, anyway!



The next time I write about the mcHF:  Implementing audio filters and fractional I/Q phase adjustments with limited processor horsepower - follow this LINK.

[End]

This page stolen from ka7oei.blogspot.com

Wednesday, December 24, 2014

Noisy fan on my Owon DS7102V Digital Oscilloscope

A bit over two years ago I got one of those inexpensive, Chinese-made digital oscilloscopes to supplement my old, trusty (and still working!) Tektronix 465B analog scope.  While the old analog scope is still my "Go To" scope since it is much easier to use in most situations, there are quite a few instances where just being able to throw some cursors and lines on the screen to quickly measure and monitor various parameters - and being able to save the results to a USB memory stick is just "nice"!

I chose the Owon over the Rigol, the more popular scope at the time with similar ratings and for about the same price because:
  • The Owon has a 10 Meg sample memory depth, meaning that even though you might be operating at audio rates, you can still be sampling at many MHz!
  • It had a much larger screen than the then-comparable Rigol with much better resolution.
  • The other folks that reviewed it said that although there were fewer firmware updates available, they weren't really needed since there weren't any known, serious bugs.
  • They guy at Saelig offered it to me for the same price as the Rigol, including some accessories that would have cost extra with the Rigol!
So, I've been happily using this 'scope for a few years now, preferring its lower mass and bulk when taking it portable and occasionally taking advantage of its ability to store the scope image (and even the memory buffer) to a USB memory stick - or even via an ethernet connection.  Another interesting feature that has occasionally come in handy its its VGA output connector allowing the screen to be directed to a much larger monitor at the same time as the built-in monitor is active - something that I've occasionally used at Ham Club meetings to demonstrate something using an overhead video projector.
Figure 1:
Two of the four black screws to be removed.
There are two more on the other size, one deeply recessed
as well as the large, silver ground screw.
Click on the image for a larger version.

About 6 months ago I noticed something odd:  Occasionally, when I would turn it on, I would hear the fan screech.  I soon realized that this happened only when it was cold and (apparently) the lubrication in the fan was likely a bit thick.  If I let it screech for a minute, turned it off and then back on, everything would be fine - but it was getting to be increasingly annoying.

I finally decided to do something about it, knowing that it would require disassembling the unit.

First, some warnings:
  • You may be voiding any warranties that the unit may have by doing this!
  • This unit contains potentially dangerous/fatal high voltages!  You must disconnect it from the mains before servicing.
  • If you do not have a modicum of experience in working on electronic devices, do not work on one of these!  (If you own an oscilloscope in the first place I would guess that you'd know something, though!)
  • Take necessary precautions to minimize static buildup as there are static-sensitive components that could be destroyed if excess voltage is applied!
  • You risk breaking something and/or damaging yourself:  If you undertake this task you agree to accept all risks in doing so!
  • Work in a clean, well-lit area with a soft cloth on which to place the oscilloscope face-down and a container to store screws, noting the different sizes and types (and their locations!) as you remove them.
  • Figure 2:
    Location of the two tabs on the bottom of the unit.
    One must press on the white plastic to release these tabs.
    Click on the image for a larger version.
  • Your mileage may vary!

Having gotten that out of the way, let's get on with it.

Getting it apart:

Getting the back off is slightly tricky, but not bad if you know the secrets:
  • Remove the four black screws, two on each side.  These have small washers with them that you should not lose!  One of these screws is deeply recessed, so a fairly long, thin screwdriver is needed to remove it.
  • Remove the large, silver ground screw from the back of the unit.
Figure 3:
Location of the single tab on the top of the unit.
Press on the white plastic in the location of the tab
to release it.
Click on the image for a larger version.

Once you have removed the five screws from the back, the case will still not come apart so you must now press in just the right places to release the tabs as the pictures indicate.

Figure 4:
The power supply and the attaching wires.
The ground wire unplugs from the socket on the rear
cover while the mains wires unplug from the power supply.
Notice the yellow ground wire attached under the screw.
Click on the image for a larger version.
On the bottom, there are TWO tabs that must be released (figure 2) in order to separate the front from the rear of the unit.  To do this, press firmly on the white plastic front while prying apart the side closest to that tab and the two halves should come apart.  This is done again for the other tab on the bottom and for the single tab (figure 3) in the middle, on the top.

Once you have the tabs released, carefully work the rear cover past the power switch, noting that it is tethered to the power supply board with several wires.  Carefully unplug the yellow/green ground wire from the plug on the rear cover and then gently but firmly pull the AC mains connector from the main board, rocking it back and forth, prying slightly on connector's tab if necessary.

Once you have disconnected these wires, set the rear cover aside in a safe place.

Now it will be necessary to remove the power supply.
Figure 5:
The screw location for the power transistor.
This screw, along with the four in the corner, hold
the power supply board into place.
Click on the image for a larger version.
  • It is possible that this power supply has capacitors on it that are charged to dangerous/lethal voltages, even when powered off.
  • Do not touch anything on the back side of the power supply board or set it on a conductive surface!
  • Note from Figure 4 which screw has the ground wire connected to it! 
First, disconnect the other power cables that connect from the power supply board to the other boards.  Now, locate the four screws in the corners of the power supply and carefully remove them, noting that they are coarse-threaded screws that go directly into the plastic.

Once the four corner screws are removed locate the hole in the power supply board and note that there is a screw that fastens a power transistor to the metal structure for heat-sinking.  Using a (preferably) magnetic screwdriver, remove this screw, keeping track of any washer with it.  At this point you should be able to lift the power supply board free and set it aside on a non-conductive surface such as a piece of paper or cardboard.

Figure 6:
The display interface board being removed.
Note that the other two wires have been removed - plus
the orange/brown cable from the front panel display.
Click on the image for a larger version.
Now, the display/driver board must be removed - this being the blue board that was partially under the power supply board and the reason that we needed to remove the power supply in the first place.   First locate the brown/orange cable at the end of the board that goes to the main display panel and note how much of the gold-plated conductor from the cable is visible while it is plugged in to the connector!  Remember this as it will be helpful to know when you plug the cable back in!

This connector is white with a black or brown release tab.  To release this cable, this tab slides away from the board (along the cable) evenly by only a millimeter or two while still being connected to the socket, preferably using one's fingernails rather than metal tools:  You should gently work each side of the black/brown release catch until it is at the end of its travel, noting that when you push on one side, the other side will move back slightly.  Once this tab is released the cable should be easy to pull out with very slight force:  If you have to pull on it very hard at all, the tab is not properly released!
  • Be very careful with this release tab and cable as both are easily broken if excessive force is applied!  This release tab does not separate from the connector.
Once the cable for the display is disconnected, carefully unplug the two other cables connecting to the board noting that some of them have release tabs.
Figure 7:
Shield cover with BNC connector.  The large plastic
shield must be removed from the connector along with
machine screws that hold this cover into place.
Click on the image for a larger version.

At this point the four small screws holding the board in place may be removed and once this is done the board may be unplugged from the side-mounted connector that connects it to the rest of the circuitry.  This board should be set aside in a safe location, observing anti-static precautions.

Now, locate the shield portion with fan and the "Trigger" BNC connector and remove the black plastic shroud around it.  On this shield, locate the other screws that hold it in place to the stand-offs to the board below and remove those screws, noting that they are machine screws!

At this point you should now be able to remove the large metal shield with the fan attached, noting how the cable from the front panel is routed through the hole.  As you lift it, you will be able to remove the power connector for the fan from the main board by firmly pulling on it and rocking.  Be very careful for other impediments for removing this cover - just in case I forgot something in these instructions!
 
Figure 8:
The original fan.  I chose to re-lubricate this fan with
a PTFE-based oil, but now that I have a picture of it I
should be able to cross-reference it and order a new
fan ahead of time should is start to make noise again!
Click on the image for a new version.

You should now have the fan sitting in front of you.  As it turns out, I didn't a replacement for the particular fan that was used, but having had experience with these sleeve bearing fans before I knew that if the bearings were in reasonable shape (e.g. not "cooked") then it was perfectly reasonable to replenish the original lubricant and get more life from it.

To inspect the sleeve bearings slip a small, clean (de-greased) screwdriver under the label where the wires emerge from the fan and pry up, carefully pulling off the label.  Under this, in the center, you will see the end of the sleeve bearing and if you see "wet" oil rather than what looks like bits of tar, the sleeve bearings are likely to be in good shape:  Note that the oil may be dark and somewhat thick, but it seems that this is par for the course for what is used on these fans for some reason!

At this point I soaked up as much of the original oil as I could with a piece of paper towel and then dripped one drop of PTFE ("Teflon" tm) lubricant as a replacement, the brand being visible in figure 9.

Figure 9:
The fan and the supplementing lubricant, a PTFE-based oil.
Click on the image for a larger version.
Over the past several years I have had very good luck the above technique:  Usually, it is done to "resurrect" a fan for long enough time to get a brand new one ordered and on its way, but I have, on several occasions, forgotten that I have done this to a completely seized-up fan after cleaning out the gooey remnants of the original oil and realized, after a year or two, that it was still running fine:  Not the ideal thing to do, but good to know if you are in a pinch and don't have a new fan on-hand - or are really cheap!

Once the single drop of PTFE oil was added - be sure to completely clean up any that was spilled on the surrounding plastic using alcohol - re-attach the label if it came of "cleanly" - that is, if you were able to remove it without leaving any of its adhesive behind.  If parts of the label and/or its adhesive did come off when you removed it, use some "invisible" tape to cover the hole, but be sure to tape the original label of the fan to the outside of the metal shield where you can see it when you take off the cover so that you could, if need be, cross-reference it and get a new one!

Once the fan has been relubricated it is time to reassemble the oscilloscope, and as they say "Reassembly is the reverse of disassembly:  Please refer to the steps above - and your notes - when putting it back together.

A few points to remember:
Figure 10:
The ground stud:  Note that it must be aligned so that it is
flush with the back panel or else it will not go on!
Click on the image for a larger version.
  • The machine screws that hold the metal cover in place.
  • The plastic piece around the BNC connector.
  • When plugging in the display interface board, make sure that the connector properly aligns with the main board:  If it doesn't seem to fit, it isn't plugged in correctly!
  • The small screws that hold the display board into place.
  • The two cables that plug into the display board - one for the back light and the other from the front-panel buttons.
  • The LCD panel cable:  Be sure that you release the black/brown part of the connector before trying to insert the cable.  Once the cable is pushed in all of the way, re-seat the black/brown lock.
  • Re-install the power supply:  Put in the four corner screws first, then the screw that holds down the power transistor, remembering to install the ground wire.  Refer the the picture, above, if you need to be reminded as to where the ground wire attaches to the power supply.
  • Make sure that all cables are reconnected!
  • Reconnect the power and ground wires to/from the rear cover.
  • Making sure that no wires are pinched, place the rear cover into place, carefully working your way around the power button.
  • Note that you need to carefully align the BNC connector and ground screw stud to the back panel.  Note that the ground stud actually protrudes into the back panel and is flush with it and that the rear panel cannot be properly installed until this is done!
  • Carefully engage all three snaps.
  • Reinstall the four long, black screws with their small washers.
  • Reinstall the large, silver ground screw.
  • You are done with reassembly!

If all has gone well the fan will now be quiet.

One final recommendation:  Turn the oscilloscope on and let it run face up (so the new lubricant will work its way down into the fan) for an hour or so so that it gets warm and then shut it off, leaving it face up while it cools down.  This will allow the new PTFE-based lubricant to permeate the sleeve bearings within the fan, particularly as it cools and the lubricant withdraws back into the sintered bronze sleeve bearings themselves.

If the fan becomes noisy again (or is still noisy) you will now be able to cross-reference the original fan with a new one and know how to install it.  If you do get a new fan, it would be best to get one that is specifically designated as having ball bearings and/or from a well-known brand so that you don't have to replace it again!

For your convenience, the general specifications of the original fan - which appeared to use sleeve bearings - are as follows:
  • Size:  60x60x10mm
  • 12 Volt, 0.15 Amp
  • Noise:  27-29dBA
  • Speed:  3600-4700RPM
  • Air Flow:  11.4-16.5 CFM
Some suitable replacements using ball bearings are:

Digikey:  603-1407-ND  (Delta model number EFB0612MA)
Mouser:  664-AD0612MX-G76T-LF  (ADDA model number AD0612MX-G76(T)-LF)

Other fans may be found with sleeve bearings, etc. and any of them should work in a pinch.  Since this 'scope does not run particularly warm, picking one with somewhat less air flow would probably not be a "show stopper", particularly if it isn't used in very warm environments.

Best of luck!

[End]

This page stolen from ka7oei.blogspot.com

Sunday, November 23, 2014

My first coherer

Recently the topic of the meeting of the Utah Amateur Radio Club was on "old" radio.  Really old radio, which is to say "radio" in the days before vacuum tubes and even crystal detectors.

One of the detectors used in these old days was the Coherer (see this link.)  "Discovered" more or less by French physicist Eduoard Branly in the 1890 and based on phenomenon observed by others, this device does not detect the presence of radio signals in the "conventional" way, but it goes from a high resistance state to a low resistance state in the presence of a radio signal - and then it needs to be "reset" (by mechanically tapping it) before it can detect again - a short of "one-shot" detector.

The most common type of detector (the "Branly" type) consists of metal filings located between two conductors, typically in a glass tube.  As it turns out these filings can be different types of metals, often described as "imperfect" conductors", but one should not confuse this as meaning that these are "semiconductors" like diodes, but rather referring to (possibly) semi-oxidized bits of metal of various sorts.

Back in the heyday of the coherer - before it was made obsolete in 1907 with the advent of the crystal and electrolytic detectors (yes, the "crystal" detector was a vast improvement over the coherer, which tells you how "bad" it actually was!) the most common type of transmitter was the spark gap which emitted a short, high-energy repetitive burst of radio signal.

How, exactly, a coherer works is still not well understood even today, but it is believed that there may be some sort of "micro-welding" of the particles on the molecular level in the presence of an RF signal that causes them to form a path that will carry DC that, after detection, is then broken (literally!) by tapping the coherer, mechanically, with a device called a "de-coherer" that rearranges the particles within.

Making a coherer:

There are a number of articles to be found on making a coherer, but nothing terribly specific that I found on the rather short notice caused by my rush to build a coherer:  The club meeting was later that evening and I was in a bit of a hurry to throw together the coherer at the last minute.  I found a web page by Neil, the " http://sparkbangbuzz.com/  " that included a portion on making a coherer that said, in effect that about any sort of metal filing that he'd happened to use did work, at least after a fashion - although some things worked better than others.

So, I went to work.

A few weeks earlier I'd ordered some inexpensive 25mL glass burettes from American Science and Surplus and from one of these I cut up a few lengths, each about 2-3/4" (approx. 7cm) long using a diamond cutoff saw and flame-polished the sharp edges with a mapp-gas torch - but just enough to make it safe without causing the diameter to narrow.

Standing one of these the pieces of burette on a square of cardboard I placed a number of short pieces of flux-free, silver-bearing, lead-free plumbing solder and then, carefully (!) heated the glass with a propane torch.  Since the burette was made from "Pyrex" type glass, it was not likely to shatter and soon, the molten solder filled the piece of glass - but it took 3-4 times before I managed to get it right:  I either knocked it over or, in its liquid state, it would run out of a small gap in the bottom!  Eventually, I managed to carefully press it against a paper towel to seal the bottom to keep it from leaking out and I soon had a "plug" of solder the same diameter as the inside of the glass burette!

After this had cooled I wrapped it in a paper towel and then proceeded to (carefully!) break free it from the glass burette by hitting it with a wrench, liberating the metal plug within.  From that, I cut away the dross that had formed at what had been the top end and in the middle, cut it diagonally, polishing the two pieces with small needle files once I was done.
Figure 1:
My first coherer, of the Branly type, made from a piece of a glass burette, solder, filings from contacts of
defunct circuit breakers and some epoxy!  It works, but not very well!

At this point I had to reduce the diameter of these two pointed "slug" ends slightly so that they would fit easily into the other piece of burette that I'd cut:  If I'd attempted to force it into either end of the burette piece, it would have surely shattered the glass!  Once I had two pieces that I could slide into at least one end of the burette segment, I then soldered short pieces of wire to the flat sides of these two slugs using a very hot iron and pre-tinned wire with 60/40 solder:  A bit of skill was required since I was soldering solder to solder!

Having done that I then set to "make" the filings that go in between the two electrode "plugs" that I'd just prepared.  In other reading I'd found accounts that indicated that nickle-silver coins made good filings so I proceeded to attack the contacts of some defunct circuit breakers that I'd rounded up with some needle files.  Working over a piece of white paper, after about 20 minutes and three pairs of contacts I had a nice pile of filings ready.

One of the pieces of glass that I'd reserved was the "bottom" end of the burette - the one with the nipple - for the body of the coherer itself and I threaded with wire through that end.  Mixing some 5-minute epoxy I worked it into the hole and moved the plug back and forth so that it made a complete seal around the plug to prevent any filings from finding their way around its sides and then stood it on end to prevent the epoxy from running out.  Very carefully "hitting" the assembly with a bit of heat from the propane torch, the epoxy hardened almost instantly - a fact tested by poking it with a piece of wire - and I poured the filings into the open end.  Carefully lowering the other electrode/plug I oriented it so that the two "slopes" of the electrodes met toward the middle and then put more epoxy into the other end to seal it as well - and waited for the epoxy to set.

After 15-20 minutes, I carefully applied a bit of heat which accelerated the curing of the epoxy to the point of it being safe to handle and I now had a completed coherer, ready for testing.

Or so I thought...

The way that a coherer is supposed to work is that its DC resistance is supposed to be very high (if not close to infinite) until the presence of a fairly strong RF signal, at which point its DC resistance will drop - and stay that way - until it is reset by being mechanically disturbed.
Figure 2:
An old Ford coil being used as the source of the "Spark Gap" transmission.

In this case, whenever the filings were between the two conductors, I was getting just a few ohms of resistance, essentially making it useless as a detector.

Drat!

With very careful fiddling I discovered that I could arrange the filings so that they barely touched one electrode or the other and then, if I set off a spark on the nearby Ford coil, the resistance would go from, say, 40 ohms to 20 ohms - enough to demonstrate that it did work, but not very well.


With the demonstration at the club meeting coming up in a few hours I figured that this would have to do, so I set it aside for a while to do other things, but when I came back in an hour or so I found that I could much more easily arrange the filings and now get a few hundred ohms, trigger the spark, and then get a few ohms or tens of ohms:  The only thing that I can figure is that the freshly-filed, silver-laden particles had somewhat tarnished after that time and the "imperfect" connection was now (slightly) easier to attain.

Figure 3:
Diagram of the coherer-based detector.  Not shown in this diagram are the particles between the sloped
electrodes of the coherer, or the "de-coherer"!

Using the coherer I wired up the circuit shown in Figure 3, above.  This has an LED in series, putting only about 1.1 volts across the coherer itself with a pair of 1k resistors "isolating" the the device at RF, allowing the wires connecting it to act as sort of an antenna if desired.  For determining if the coherer had been triggered, one could look at the LED's brightness and/or monitor the voltage drop across one of the 1k resistors with either a voltmeter or and oscilloscope.  When "setting up" the coherer it was a matter of fiddling about with it until the red LED lit dimly.  When the spark "triggered" the coherer, the LED would then illuminate much more brightly until the glass body of the coherer was lightly tapped with the plastic body of a ball-point pen, reverting back to its "dim" state.

When it came to demonstrating the operation of the coherer at the club meeting I simply connected my digital oscilloscope across one of the 1k resistors.  As it turns out, my 'scope has a VGA output that I connected to the club presentation room's overhead projector so that everyone present could see the trace on the 'scope change DC level with triggering of the coherer when it detected RF from the sparking of the nearby Ford coil, and then be reset when I "de-cohered" it by gently whacking it with a ball-point pen!

* * *

How sensitive was this coherer?

I never did try to check the range.  The "transmitter" was just the Ford coil in Figure 2, just as depicted with the two short #12 AWG wires connected to it being the "antennas", but the coherer seemed to reliably trigger at a distance of about 6 feet (2 meters) which was the maximum distance that we tried being that this was the size of the table on which we'd set up our demonstration!

Considering the size and shape of the wires in Figure 2 I figure that the this spark gap transmitter is actually operating in the VHF/UHF/Microwave range, much like that of the original Hertizan Wave apparatus of the late 19th century!  - see this link.

So there you have it, a coherer!

* * *

It's been a few weeks now since I built this coherer and its resistance is still too "low" in that I have to fiddle with it to to get it to work, but it does seem to be a bit less "finicky" in getting it set up to be triggerable thanit was when I'd first built it, so whatever is going on with those metal particles to make them work better still seems to be happening, albeit much more slowly!

At some point I may try building another one or two coherers using different materials, once I have done a bit more research on the topic (I still have some pieces of burette left!) but that will have to wait for another day!

[End]

This page stolen from ka7oei.blogspot.com