The Smell of Molten Projects in the Morning

Ed Nisley's Blog: Shop notes, electronics, firmware, machinery, 3D printing, laser cuttery, and curiosities. Contents: 100% human thinking, 0% AI slop.

Category: Electronics Workbench

Electrical & Electronic gadgets

  • Tek A6302 Current Probe: Offset Resistor Tweakage

    A package deal of two Tektronix A6302 current probes arrived from eBay, with one probe having a small crack across its case (shown in the description and bought accordingly).

    The other probe worked fine and was quite clean inside:

    A6302 B055461 - major sections
    A6302 B055461 – major sections

    The cracked one couldn’t be balanced, with the twiddlepot on the AM503 amp unable to bring the signal down to 0 V from a positive offset on any of the ranges.

    The current transformer might have suffered some stress on the upper-left corner of the main part (in the probe body), but it doesn’t have any obvious damage:

    A6302 B032444 - ball - current transformer in place
    A6302 B032444 – ball – current transformer in place

    The small ball to the left of the transfomer lid provides the slide detent; it’s an ordinary 3/32 = 0.094 inch bearing. Which, as it happens, is a Good Thing, because there’s another one exactly like it somewhere in the litter under the Electronics Workbench.

    Protip: follow the disassembly procedure in the instruction manual and do it over a towel or, at least, a shallow dish. You have been warned.

    Extracting the transformer from the body revealed a numeric value I didn’t recognize at the time:

    A6302 B032444 - current transformer
    A6302 B032444 – current transformer

    The top slide contacts looked awful, but they’re actually covered in semi-dried contact grease and cleaned up easily:

    A6302 B032444 - slide contacts
    A6302 B032444 – slide contacts

    Swapping the “bad” transformer into the P6302 probe I got a while ago showed it wouldn’t balance, either, but the offset was far off into negative voltages. Putting the “good” transformer into the “bad” probe produced a similar too-positive offset. Conclusion: the transformer was probably good and Something Else was wrong.

    Spending more time with the manuals produced this hint in the AM503 Amplifier circuit description:

    AM503 manual - Hall offset - probe resistor selection
    AM503 manual – Hall offset – probe resistor selection

    Fortunately, the AM503 probe connector has pin labels:

    Tek AM503 Amplifier - Probe Connector - pin ID
    Tek AM503 Amplifier – Probe Connector – pin ID

    Note the absence of pins G and I, probably to eliminate any confusion with “ground” and “one”, respectively.

    Continuity checking reveals the left end of the 34.8 kΩ resistor connects to pin H:

    A6302 B032444 - PCB 34.8k offset R
    A6302 B032444 – PCB 34.8k offset R

    Huh. Even a blind pig occasionally finds a truffle: where have we seen that value before? Apparently Tek measured each transformer / Hall sensor and wrote the appropriate offset resistor value exactly where it’d do the most good.

    Although I don’t pretend to know why the transformer offset has changed, if Tek can select a resistor to correct the offset, so can I:

    A6302 B032444 - PCB - tweaked 82k offset R
    A6302 B032444 – PCB – tweaked 82k offset R

    The 82 kΩ value roughly centers the offset twiddlepot span around 0 V; it’s the result of a binary search through the resistor drawers, rather than a complex calculation.

    With the resistor in place and the probe reassembled in reverse order, everything works the way it should:

    Tek A6302 - 82k ohm offset - 50 mA
    Tek A6302 – 82k ohm offset – 50 mA

    The lower trace is a square wave from the scope’s arb waveform generator into a (likely counterfeit) Fotek DC-DC solid-state relay, with the bench supply dialed to 5.7 V to put 5 V across a hulking 100 Ω power resistor, thus 50 mA through the probe. The purple trace comes from the repaired probe, with the other one turned off for pedagogic purposes:

    Tek A6302 Calibration Setup
    Tek A6302 Calibration Setup

    That wasn’t easy, but seems to solve the problem.

    Dang, I loves me some good Tek current probe action …

     

  • Side Mirror Turn Signal

    I hoped this bit of roadside debris would yield a shiny new amber LED and driver:

    Car mirror - shattered housing
    Car mirror – shattered housing

    But, alas, it uses an ordinary WY5W incandescent bulb:

    Car mirror - turn signal
    Car mirror – turn signal

    That whole assembly seems to be the replaceable unit, as the lens is firmly snapped-and-glued to the housing. The white shell used to hold the wires, but those vanished when the collision ripped the mirror off the car.

    After I pried off the shattered lens and extracted the bulb, I found a broken filament.

    Ah, well, now we won’t be riding through plastic shards along the shoulder.

  • Siglent SDS2304X Oscilloscope: Homebrew Front Cover

    Both my Tek 2215A and HP 54602 oscilloscopes came with snap-on front covers to protect all those delicate knobs and connectors. Not so the Siglent SDS2304X, which is basically a flat shoebox with a handle: the case has no features for a cover to snap onto, Siglent doesn’t offer a padded carrying case, and it’s too thick big for any of the laptop bags around here.

    I’ve been lugging it to Squidwrench meetings and can easily visualize a gash across the LCD panel or a knob rammed against a door frame.

    So I trimmed a pair of foam angles, punched holes to fit around the knobs along the right edge, cut up a cardboard tray from the heap, and duct-taped the whole mess together:

    Siglent SDS2304X Oscilloscope - crude front cover - interior
    Siglent SDS2304X Oscilloscope – crude front cover – interior

    The cover is equally ugly from the outside:

    Siglent SDS2304X Oscilloscope - crude front cover - installed
    Siglent SDS2304X Oscilloscope – crude front cover – installed

    A Velcro bellyband around the whole affair / through the handle holds it together.

    I considered 3D printing a set of corners and screwing them to a flat plastic plate, but came to my senses just in time.

  • Li-Ion Battery Buck-Boost Regulator Dropout

    The ESP8266 controller in Sophi’s blimp project suffered from random resets, which I was absolutely certain happened when the current for the three DC prop motors glitched the battery supply. So I hauled the Tek current probes + amps + scope to a Squidwrench meeting and, after considerable fiddling, we found a smoking … trace:

    Regulator dropout
    Regulator dropout

    The purple trace shows the Li-Ion battery voltage at an inactive motor driver located on the far end of a known-to-be-too-small trace. In principle, there’s little-to-no current drawn through that trace, so it should represent the voltage at the regulator input.

    The green trace shows the 3.3 V regulator output at its bulk storage cap.

    The ground reference is at the PCB’s battery negative connection pad.

    The bold dotted green cursor shows the regulator output hitting 2.57 V, entirely low enough to glitch the ESP. The scope triggers on negative-going edges below 2.6 V and this was the first trigger after starting and running the motors for a few seconds.

    Conspicuous by its absence: any hint of a current glitch in the yellow trace from a Tek A6302 probe clamped around the battery positive wire. The current remains constant at the 400 mA (100 mA/div) level drawn by two DC motors, with no sign of any glitches whatsoever; she’s not using PWM speed control. The whole board draws about 80 mA DC and the ESP’s WiFi radio pulls 200 mA pulses, so all’s quiet on those fronts.

    Which is why I like to measure actual circuit operation: I vastly prefer to solve actual problems, knowing what does (or doesn’t!) cause them helps, and I’m not at all bothered by being wrong.

    The regulator output doesn’t go much above 3.3 V, which is comforting.

    However, when the regulator’s input voltage falls below 3.3-ish V, its output voltage tracks right along down with it. Input variations above 3.3-ish V don’t make much difference in the output.

    Although it’s a buck-boost converter, its response time isn’t fast enough to cope with something else on the PCB pulling enough current to spike its input voltage (shared with the motor driver) below 3.3 V. The dropout is barely 4 ns long, far shorter than the regulator’s switching period.

    I have my doubts as to the accuracy of those voltage waveforms and, in particular, their pulse widths. IIRC, the scope can trigger on a pulse exceeding a specific width, but I’d devote more time arranging the test points and getting RF-quality connections / grounding before going further out on a numeric limb.

    This single trigger event may not be the glitch causing the reset. What it does show is the regulator output dropping below the ESP’s absolute-minimum input voltage spec, at least briefly, which is cause for concern.

    More testing is definitely in order …

  • Squidwrench Electronics Workshop: Session 3

    Ex post facto notes from the third Squidwrench Electronics Workshop.

    Exhibit various 50 Ω resistors, including my all-time favorite, a 600 W 3 GHz dummy load:

    600 W Dummy Load Resistor
    600 W Dummy Load Resistor

    … down to a 1/8 Ω metal film resistor.

    The dummy load’s N connector triggered a regrettable digression into RF, belatedly squelched because I wasn’t prepared to extemporize on AC concepts like reactance which we haven’t covered yet.

    Discussion of resistor applications, power handling, power derating with temperature, etc:

    Whiteboard - Session 3 - Resistor power derating
    Whiteboard – Session 3 – Resistor power derating

    Why you generally won’t find 50 Ω load resistors in Raspberry Pi circuits. Cartridge heaters for 3D printers, not aluminum power resistors, although everyone agrees they look great:

    Power resistors on heat spreader
    Power resistors on heat spreader

    Discussion of voltage vs. current sources, why voltage sources want low internal resistances and current sources want high resistances. Bungled discussion of current sources by putting diodes in parallel; they should go in series to show how added voltage doesn’t change current (much!) in sources driven from higher voltages through higher resistances:

    Whiteboard - Session 3 - Voltage vs Current Sources
    Whiteboard – Session 3 – Voltage vs Current Sources

    Use Siglent SDM3045X DMM in diode test mode to measure forward drop of power / signal / colored LEDs, discuss voltage variation with color / photon energy. Measure 1.000 mA test current for all forward voltages.

    Compute series resistor (500 Ω) to convert adjustable power supply (the digital tattoo box, a lesson in itself) into reasonable current source; roughly 10 V → 20 mA. Find suitable resistor (560 Ω) in SqWr junk box parts assortment, digression into color band reading.

    Wire circuit with meters to measure diode current (series!) and voltage (parallel!), measure same hulking power diode (after discovering insulating washers now in full effect) as before in 1 mA steps to 10 mA, then 15 and 20 mA, tabulate & plot results:

    Whiteboard - Session 3 - Diode current vs forward drop
    Whiteboard – Session 3 – Diode current vs forward drop

    Discover warm resistor, compute power at 20 mA, introduce cautionary tales.

    Lesson learned about never returning parts to inventory, with 560 Ω resistor appearing in diode drawer. Cautionary tales about having benchtop can of used parts as front-end cache for inventory backing store.

    Another intense day of bench work!

  • Digital Tattoo Power Supply: Polarity Doesn’t Matter

    When I rewired the guts of the digital tattoo power supply to eliminate the series foot switch, I kept the original wiring polarity, with the black wire to the sleeve and the red wire to the tip:

    Tattoo Digital Power Supply - internal view
    Tattoo Digital Power Supply – internal view

    It’s the same color code I (strongly) recommend in the Squidwrench Electronics Workshops: use any color for the ground / common wire as long as it’s black, then, if you have a red wire, use it for the positive supply. You can use yellow for the higher supply voltage, but stop being clever.

    I put suitably colored Powerpoles on the far end of the cable to replace the standard tattoo machine spring clip connector, so I can attach clip leads, battery test fixtures, and so forth and so on.

    We wired the supply into a clip-leaded diode measurement setup with a current limiting resistor and a pair of multimeters to measure the diode current and forward voltage, whereupon we noticed all the meters displayed negative voltages and currents.

    After a frenzy of wire-checking verified their setup was all good, I forced the simplest possible test, herein recreated on my bench:

    Tattoo Digital Power Supply - polarity test
    Tattoo Digital Power Supply – polarity test

    Which produced this display:

    Tattoo Digital Supply - reverse polarity
    Tattoo Digital Supply – reverse polarity

    Huh.

    After a brief exploration of “Trust, but verify” territory, we swapped the clip leads from the power supply and continued the mission.

    Back on my bench, I pulled the supply apart and measured the voltage at the jack terminals:

    Tattoo Digital Power Supply - jack wiring
    Tattoo Digital Power Supply – jack wiring

    Still negative. Huh.

    The bottom of the power supply PCB shows exactly what you should expect by now:

    Tattoo Digital Power Supply - reversed color code
    Tattoo Digital Power Supply – reversed color code

    The red wire near the top of the board is, indeed, soldered to the trace labeled GND and goes to the jack’s tip terminal; the adjacent black wire goes to the front-panel LED. Similarly, the black wire just below it, soldered to the same trace as the yellow wire, goes to the jack’s sleeve terminal; that trace also connects to a resistor leading to the trace labeled LED+ and the LED’s red wire.

    Although tattoo machines run from DC supplies, their motors or vibrators don’t depend on any particular polarity and will run fine with a backwards supply.

    Resoldering the red and black wires where they should go produces the expected sign at the jack:

    Tattoo Digital Supply - meter leads
    Tattoo Digital Supply – meter leads

    Although measuring and plotting diode voltages and currents may seem tedious, actually wiring stuff together and taking data reveals how difficult the real world can be.

    I trusted the supply’s internal color code and, although I’m certain I tested the Powerpoles, I obviously didn’t notice the meter’s sign.

    Memo to self: Sheesh.

  • Never Antagonize Your IT Staff

    A useful CallerID name that’s not actually spoofed:

    Illegal Scam CallerID
    Illegal Scam CallerID

    I get the distinct impression there’s a disgruntled employee somewhere in their IT department and, apparently, there are more than you’d think.

    Ya can’t make this stuff up …