Ed Nisley's Blog: Shop notes, electronics, firmware, machinery, 3D printing, laser cuttery, and curiosities. Contents: 100% human thinking, 0% AI slop.
Un-wearably bad Baofeng headsets now cost just over a buck apiece in lots of five, delivered halfway around the planet, and provide:
A compatible molded mic+speaker plug
A decent length of four-conductor cable with solder-meltable insulation
An unlistenably bad earbud on a stick
A lump with an electret mic and PTT switch
Various junk I’ll never use
The “hook earpiece” seems to have been designed by someone who had read the specs for a human head, but had never actually met a human being.
The wire colors from the dual plug, along with the wire colors for the repurposed USB cable to the headset, and the PTT connection:
Baofeng headset cable vs helmet cable – wire colors
Then wire it up accordingly:
Baofeng headset wire plate – first wiring
The small heatstink tubing surrounding each connection isn’t easily visible, which, in the case of the ground / common lump, is a Good Thing. I chivied a strip of Kapton under the whole mess, folded it over on top, squished it together, then secured it with 1/4 inch tape extending over the plate edges. The cable ties stick out far enough to keep the joints from rubbing on anything; it’s not built to last for a thousand years, but should let us hear how this lashup works.
Now, to the bikes:
Baofeng headset wire plate – in use
I’m convincing myself a little supporting ring under the SMA-to-UHF adapter won’t actually stabilize the precarious-looking joint.
My venerable amateur radio HT APRS-voice interfaces have recently begun failing and, given poor APRS coverage in Poughkeepsie due to having two iGates shut down (due to the aging radio geek population), I decided it’s time to simplify the radio interface. Given that HTs are designed to run with an external electret mic and earbud, the “interface” becomes basically some wires between the radio’s jacks, a repurposed USB plug on the bike helmet, and the PTT switch on the handlebar.
I expected to add a resistive attenuator to the earbud, but it wasn’t clear whether the mic would need an amplifier similar to the one in the APRS interface, so I decided to start as simply as possible.
The general idea is to anchor all the cables to a plate on the back of the radio, interconnect as needed, then “protect” everything with tape. The pocket clip has M2.5 screws on 26 mm (not 25.4, honest) centers, so that’s how it started:
Baofeng headset wire plate – dimensions
The four holes beside the tabs will serve as starting points for rectangular notches holding cable ties lashing the wires to the plate:
Baofeng headset wire plate – drilled
Like this:
Baofeng headset wire plate – sawed
That’s hot and nasty, straight from the bandsaw.
After some edge cleanup, add obligatory Kapton tape to insulate stray wires from the aluminum:
Baofeng headset wire plate – installed
The alert reader will note beveled corners on one plate and square corners on the other; think “continuous product improvement”.
The big rectangular gap in the middle of the plate provides (barely enough) finger clearance to push the battery release latch.
Now, to wire it up …
The dimensions of the recess surrounding the jacks on the Baofeng UV-5, just to have them around:
Baofeng headset jack socket – dimension doodle
Which came from measurements of both the Wouxun and Baofeng radios:
Baofeng Wouxun headset jack sockets – measurements
A long time ago, a pair of white LED + red laser flashlights powered by an AA cell diverged: one flashlight worked fine, the other always had a dead battery. The latter ended up on my “one of these days” pile, from which it recently emerged and accompanied me to a Squidwrench Tuesday session:
Small Sun flashlight – original wiring
The black wire trailing from the innards goes to the battery negative terminal, with the aluminum body providing the positive terminal connection to the wavy-washer spring contact visible atop the rear PCB inside the front shell.
The switch connects each red wire to the battery negative terminal, so there’s a color code issue in full effect. The two red wires burrow through holes in the rear PCB (shown above) and connect to the negative terminal of the laser module (the brass cylinder near the top) and the negative terminal ring on the front PCB holding the seven white LEDs:
Small Sun flashlight – original wiring – LED laser board
Continuing the color code issue, the black wire from the laser is its positive terminal. The out-of-focus wire (an LED pin) sticking up near the top of the picture carries the positive connection to the LED ring. The red wires from the switch are the negative connections for the LEDs and laser.
Voltages applied to the LED ring and the currents flowing therein:
Small Sun flashlight – 7x white LED current vs voltage
Seven LEDs at 20 mA each = 140 mA, so the voltage booster must crank out slightly more than 3.2 V. They’re not the brightest white LEDs I’ve ever seen, but suffice for a small flashlight.
A crude sketch of the PCB layout, with a completely incorrect schematic based on the mistaken assumption the SOT23-3 package was an NPN transistor:
Small Sun flashlight – schematic doodle
Obviously, that’s just not ever going to oscillate, even if the 2603 topmark meant a 2SC2603 transistor, which it doesn’t.
A bit more searching suggests it’s a stripped-down Semtech SC2603A boost converter, normally presented in a SOT23-6 package. If you order a few million of ’em, you can strip off three unused pins, do some internal rebonding, and (presumably) come out with an SOT23-3:
Small Sun flashlight – correct schematic doodle
That topology makes more sense!
Before going further, I had to rationalize the colors:
Small Sun flashlight – rewired LED laser board
Soldering longer leads to the PCB allows current & voltage measurements:
Small Sun flashlight – LED current test
With the LEDs and laser disconnected, the converter seems to be struggling to keep the capacitor charged:
Small Sun flashlight – V boost I 200mA-div – idle
Those purple spikes come from the current probe at 200 mA/div: maybe half an amp in 5 μs pulses at 6 kHz works out to a 15 mA average current, which is pretty close to the 11 mA I measured; it’s not obvious the Siglent SDM3045 meter was intended to handle such a tiny duty cycle.
Obviously, the output capacitor is junk and, after removing it, the AADE L/C meter says NOT A CAPACITOR. Perhaps it never was one?
Measuring the cap in the good (well, the other flashlight) suggests something around 100 nF, so I installed a random 110 nF cap from the stash. The current peaks are about the same size:
Small Sun flashlight – I 200mA-div – 110nF cap
The cap voltage (not shown) is now nearly constant and the 50 Hz PWM rate reduces the average battery current to 100-ish μA:
Small Sun flashlight – I 200mA-div – color-grade – 110nF cap
Not great, but tolerable; a 1000 mA·h battery will go flat in a few months.
The LED current runs a bit hotter than I expected:
Small Sun flashlight – I 200mA-div – LED current – 110nF cap
The bottom is about 200 mA and the average might be 350 to 400 mA.
Compared with the other flashlight:
Small Sun flashlight other – I 200mA-div – LED current
So the cap is maybe a bit too small, but it likely doesn’t matter.
And, because they’re firmly attached to the fairing mount, there’s no way to tilt them to extract the 18650 cell.
This took entirely too long to figure out:
Lithium 18650 Cell Extractor Tab
The LC40 end caps have a recess exactly where it’ll do the most good: capturing the tab inside the cap means it can’t interfere with the rear contact spring:
Being that sort of bear, I (sometimes) note the date on cells when I change them, as with this notation on the AA alkaline cells in the Logitech trackball:
Amazon Basics AA cell – mouse runtime
These Amazon Basics AA cells lasted almost exactly two years, compared with 15 and 20 months from the previous two pairs of Duracell AAs. A few months one way or the other probably don’t mean much, but the Amazon cells aren’t complete duds.
The new Amazon Basics cells have a gray paint job, so they’ve either changed suppliers or branding.
The question occasionally comes up as to why one would want a Tektronix A6302 Hall effect current probe and AM503 amplifier. The answer is simple: non-contact, essentially non-invasive current monitoring.
The scope screen in the background shows the two base voltages at the top, plus the overall battery current along the bottom:
Tek A6302 – Astable multivibrator – LED current 1 mA-div
The current at 1 mA/div shows plenty of noise, but the 200 ms LED pulse is barely 1 mA tall. The two AA alkaline cells have faded to 2.5 V, so the “wearable” white-LED-with-dyed-overcoat runs far under its nominal 3.6-ish V spec.
There’s basically no other way to get that result, because inserting a current-sense resistor into the circuit will alter the results, plus be intractably difficult to measure, particularly if you need the current in a non-ground-referenced branch of the circuit.
The AM503 has terrible thermal drift, by contemporary standards, but after the first half-hour or so it’s manageable for short durations. I’m thinking of epoxying a small knob to the screwdriver-adjustable twiddlepot to simplify the baseline adjustment.
Alas, even non-working probes and amps have become eBay collectables. You could, of course, buy new.