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.

Author: Ed

  • Uphill Rain Leader

    You can’t make this stuff up:

    Expecting water to run uphill
    Expecting water to run uphill

    As nearly as I could tell, the vertical downspout along the edge of the building ends level with the top of the drain grate. If that convenient rock were high enough to level the last length of pipe, the elbow would be above the end of the downspout.

    The architectural drawings for the apartment complex surely didn’t look like that.

  • Monthly Image: Overblown Vette

    I should do something like this to the Forester:

    Seriously Blown Vette
    Seriously Blown Vette

    We were volunteering at the annual Locust Grove Classic Car Show, which also included a monster 1913 FIAT made in Poughkeepise.

  • Gapped Ferrite Toroid: 5 A Calculations

    Using a Hall effect sensor to report on the Kenmore 158’s universal motor current puts different limits on the ferrite toroid than the LED current sensor: higher current, bigger wires, and mandatory galvanic isolation. One could, of course, just buy an Allegro ACS713/4/5 (or whatever) sensor from, say, Digikey, but, for a one-off project, it’s more interesting to run the numbers and build the thing.

    The motor winding resistance limits the peak current to about 200 V / 40 Ω = 5 A, in the absence of the transistor current limiter, and, if it gets above that, things have gone very, very wrong. Mostly, I expect currents under 1 A and it may be useful to reduce the full scale appropriately.

    The cheap eBay “SS49” Hall effect sensors I’m using produce anywhere between 0.9 and 1.8 mV/G; I’ll use 1.4 mV/G, which is at least close to the original Honeywell spec. That allows a bit over ±1000 G around the sensor’s VCC/2 bias within its output voltage range (the original datasheet says minimum ±650 G), so I’ll use B = 1000 G as the maximum magnetic flux density. The overall calibration will be output voltage / input current and I’m not above doing a one-off calibration run and baking the constant into the firmware.

    The effective mean path length turns out to be a useful value for a slit toroid:

    effective MPL = (toroid MPL - air gap length) + (µ · air gap length)

    The SS49 style sensor spec says they’re 1.6 mm thick,  and the saw-cut gaps run a bit more, but 1.5 mm will be close enough for now.

    The relation between all those values:

    B = 0.4 π µ NI / (effective MPL)

    Solving for NI:

    NI = B · (eff MPL) / (0.4 π µ)

    Solving for N:

    N = B · (eff MPL) / (0.4 π µ I)

    You always round up the result for N, because fractional turns aren’t a thing you can do with a toroid.

    FT50-61 toroid:

    • µ = 125
    • Saturation B = 2350 G
    • MPL = 3.02 cm
    • Effective MPL = (3.02 – 0.15) + (125 · 0.15) = 21.6 cm
    • N = 28 turns

    A somewhat larger FT82-43 toroid:

    • µ = 850
    • Saturation B = 2750 G
    • MPL = 5.26 cm
    • Effective MPL = (5.26 – 0.15) + (850 · 0.15) = 133 cm
    • N = 25 turns

    The saturation flux density seems to be measured at H = 10 Oe, but that applies to the intact toroids. The air gap dramatically reduces the effective µ, so you must apply a higher H to get the same B in the ferrite at saturation. At least, I think that’s the way it should work.

    H = 0.4 π NI / (geometric MPL)

    Then:

    • FT50-61: H = 58 Oe
    • FT82-43: H = 30 Oe

    I’m surely missing some second-order effect that invalidates all those numbers.

    Figuring the wire size for the windings:

    FT50:

    • ID = 0.281 inch
    • Circumference = 0.882 inch
    • 28 turns → wire OD = 0.882/28 = 31 mil
    • 20 AWG without insulation

    FT82:

    • ID = 0.520 inch
    • Circumference = 1.63 inch
    • 25 turns → wire OD = 1.63/25 = 65 mil
    • 14 AWG without insulation

    Of course, the wire needs insulation, but, even so, the FT82 allows a more rational wire size.

    Page 4.12 of the writeup from Magnetics Inc has equations and a helpful chart. They suggest water cooling a diamond-bonded wheel during the slitting operation; my slapdash technique worked only because I took candy-ass cuts.

    A table of magnet wire sizes with varying insulation from Cooner Wire.

    Some general notes about building & measuring inductors from the University of Denver.

    Doodles for the FT82-43:

    FT82-43 Doodles
    FT82-43 Doodles

    Doodles for the FT50-61:

    FT50-61 Doodles
    FT50-61 Doodles

    Running the numbers using the Magnetics Inc equations:

    Ferrite Gap Doodles
    Ferrite Gap Doodles
  • Bike Helmet Boom Mic: Assembly

    After building the mic mount, another dab of epoxy mounted the length of AWG 10 wire I said I wouldn’t use:

    Bike Helmet Mic Boom - rod epoxy
    Bike Helmet Mic Boom – rod epoxy

    The whole point of the complex mount is to expose the two noise cancelling holes on the back of the electret element:

    Bike Helmet Mic - electret element rear
    Bike Helmet Mic – electret element rear

    Add heatstink tubing over the entire length of the boom wire, use more black cable ties, shape another foam ball:

    Bike Helmet Mic Boom - installed
    Bike Helmet Mic Boom – installed

    And it worked on the first try, not that there’s much to it.

    Yeah, that’s the HDR-AS30V camera mount up top: dork mode in full effect.

  • Bathroom Sink Drain Pop-Up: The Rot Continues

    Once again, the black bathroom sink drain stopper stopped popping up. Having had this happen once before, I knew what I would find:

    Corroded bathroom sink drain lever
    Corroded bathroom sink drain lever

    The lever arm to the left of the ball should be about twice that long, minus the jagged end.

    I slid the ball rightward to expose more rod, introduced both ends to Mr. Bench Grinder to round them off, scuffed up the short end with sandpaper to improve its griptivity, then slobbered on enough JB KwikWeld to cover the entire length of rod that will live inside the drain:

    Epoxy-coated bathroom sink drain lever
    Epoxy-coated bathroom sink drain lever

    The first failure took 9 years, this one took 4…

    Memo to Self: Next time, replace the rod with something that doesn’t corrode.

     

  • Kenmore 158: Pulley Form Tool FAIL

    Mulling over how to add a 1/rev sensor to the sewing machine motor, it occurred to me that simply drilling a hole through the pulley would provide a clean optical path and a convenient 2/rev output signal.

    However, the OEM pulley doesn’t extend beyond the end of the shaft:

    Kenmore 158 - AC drive motor - overview
    Kenmore 158 – AC drive motor – overview

    Rather than drill a hole in the shaft or (attempt to) affix something onto a pulley that spins at 10 kRPM, I figured I should make another pulley and mutilate that.

    Because this will surely call for more than one new pulley before I get everything right, a lathe form tool seemed in order. Introducing a suitable blank from the Bin o’ 1/4 Inch Bits to Mr. Bench Grinder produced a likely looking candidate, with an included angle of about 35° (a skosh over 17° on each side) and sized just a wee bit narrower than the pulley groove.

    From the top:

    Pulley form tool - top
    Pulley form tool – top

    From the side:

    Pulley form tool - side
    Pulley form tool – side

    Skim the surface of a 5/8 inch rod to match the pulley OD, plunge a cutoff tool to make most of the cut, insert bit in holder, align perpendicular to workpiece, line up to center of cut, slobber on more cutting lube:

    Pulley form tool - prepared blank
    Pulley form tool – prepared blank

    Plunging the tool slowly into the cut produces … no chips … nothing … smoke?

    Come to find out that the Bin o’ 1/4 Inch Bits contained not just lathe tool bits & blanks made from tool steel, but one length of 1/4 inch square key stock made from ordinary soft steel:

    Pulley form tool - damage
    Pulley form tool – damage

    I should have known that from the type of sparks flying off the grinding wheel, right?

    You knew that just from looking at the first picture, because a real lathe bit blank wouldn’t be all beat to shit…

    Drat!

  • Verifying a 64 GB MicroSD Card

    Having just acquired a pair of 64 GB MicroSD cards for the HDR-AS30V camera, I found that I don’t have enough free disk space for 64 GB of white noise and, thus, can’t use the same technique as for the 32 GB card. I now, however, have a stockpile of helmet camera video files that are close enough to white noise for my purposes and come in convenient chunks.

    Start by copying enough big video files to nearly fill the card:

    sudo mount /dev/sdb1 /mnt/backup
    sudo mount -o uid=ed /dev/sdc1 /mnt/part
    FUSE exfat 1.0.1
    cd /mnt/backup/Video
    find -iname MAH*MP4 -size +3G | head -16 | xargs -I{} rsync -vrt --progress {} /mnt/part
    sending incremental file list
    MAH00122.MP4
      4,275,755,727 100%   11.94MB/s    0:05:41 (xfr#1, to-chk=0/1)
    
    sent 4,276,799,695 bytes  received 35 bytes  12,487,006.51 bytes/sec
    total size is 4,275,755,727  speedup is 1.00
    ... snippage ...
    

    The head -16 ensures that you won’t waste a lot of time copying too many files. The card has about 59 GB free, so 16 x 4 GB is about right.

    The -vrt adds verbosity and omits permission settings that ExFAT doesn’t understand; otherwise, you’d just use -va and be done with it.

    Then tuck some smaller files into the remaining nooks and crannies:

    find -iname MAH*MP4 -size -400M | head -16 | xargs -I{} rsync -vrt --progress {} /mnt/part
    ... snippage ...
    

    Some fiddling with the -size -400M and head -16 values may be in order, depending on how many snippets of video data you may have.

    Compare the copies with the original files:

    cd /mnt/part
    for f in * ; do find /mnt/backup/Video/ -name $f | xargs diff $f ; done
    

    If you don’t see anything, then they’re all good!

    There’s probably an algorithmic solution that would eliminate the guesstimation, but very nearly all of the time goes to copying and comparing, so it can’t make much difference.