Ed Nisley's Blog: Shop notes, electronics, firmware, machinery, 3D printing, laser cuttery, and curiosities. Contents: 100% human thinking, 0% AI slop.
Some ex post facto notes from the first SquidWrench Electronics Workshop, in the expectation we’ll run the series from the start in a while. I should have taken pictures of my scribbles on the whiteboard.
Define:
Voltage – symbol E (Electromotive Force or some French phrase), unit V = volt
Current – symbol I (French “intensity” or some such), unit A = ampere
Resistance – symbol R (“resistance”), unit Ω (capital Greek Omega) = ohm
Introduce Ohm’s Law & permutations, postpone calculations.
Measure the actual voltage of assorted cells & batteries. Identify chemistry, internal wiring:
1.2 = nickel-cadmium or nickel-metal-hydride
1.5 = carbon-zinc or alkaline
2 V = lead-acid
3.0 = primary lithium
3.6 – 3.7 = rechargeable lithium, several variations
4.8 = 4 x 1.2 V
7.2 = 6 x 1.2 V
7.4 = 2 x 3.6 V
9.6 = 8 x 1.2 V
10.8 = 3 x 3.6 V
12 = 6 x 2 V
Measure various resistors, favoring hulking finger-friendly sandstone blocks.
Introduce metric prefixes:
Engineering notation uses only multiple-of-three exponents
That’s what all dog owners say when their dog lunges at you:
Dog Lunge – DCRT 2017-05-13
We sounded our usual bike bell dings while approaching and moved as far to the left as we could. The group compressed to the right, which was unusually courteous, we said nothing, and they said nothing while their dog barked and lunged at both of us.
Perhaps we are easily startled, but we do not regard lunging and barking as friendly or sociable gestures. Even as pedestrians, we do not want our crotches explored, our hands licked, or our chests pawed.
AFAICT the only reason Mary didn’t get knocked over and gnawed was a good grip on a thin leash. Maybe the dog would just lick her to death, but it’s still unwanted aggression.
From what I’ve read, dog shoulders operate as front-to-back rotating pivots, rather than all-direction ball joints. Disabling an attacking dog thus requires grabbing its front legs and spreading them as far apart as possible, which is feasible because human arms are much stronger laterally than dog legs. While the process brings one’s head entirely too close to the dog’s jaws, it apparently breaks most of the dog’s ribs, collapses its lungs, and instantly puts it out of action.
I devoutly hope I need never test that maneuver under field conditions, as I can see serious repercussions. If it’s in Mary’s face, however, I will not err on the side of generosity.
Protip: if your dog isn’t well-trained enough to completely ignore strangers, don’t bring it near strangers who may not be dog people.
The genuine Sony NP-BX1 that came with the AS30V camera suffers from voltage depression (green trace) and no longer survives a typical ride:
Sony NP-BX1 – 2018-04-24
The STK C battery (red trace) is also pretty much kaput, so the two of them go into the recycle bag.
The very short blue trace is the Wasabi F battery after a ride, showing about 1 W·h remaining of the initial charge. After a full change, the upper blue trace shows it has a capacity in the same range as the others. Our rides are about an hour long, so the camera draws somewhat less than the 1 A test current, roughly what I’d estimated from other data.
The rear shifter on my Tour Easy stopped working when we were most of the way to the grocery store, due to what turned out to be due to a broken cable. I managed to yank the frayed end out of the shifter, pulled the derailleur into a middling gear, and belayed the cable into a deadly cactus:
SRAM X.9 Rear Shifter – frayed cable
A three-speed recumbent got me home again, albeit with spin-it-out high gear and a low gear barely sufficient for trailer hauling.
Attempting to remove the frayed cable from the SRAM X.9 grip shifter didn’t go well at all:
SRAM X.9 Rear Shifter – cable tangle
I managed to extract the lead pellet, but, while it may be possible to extract the remaining tangle, even pulling on individual wires wasn’t productive.
AFAICT, the shifter came as original equipment on the bike, so it’s been in constant use for the last 17-ish years. The nice soft grip material (and the cover over the cable port) turned into gummy sludge under the cheerful silicone tape I applied some years ago, so I sliced the old grip and pulled it off:
SRAM X.9 Rear Shifter – gummified grip
Popping a new-old-stock X.9 shifter from the Big Box o’ Bike Parts and installing it proceeded without problems. This being the rear shifter, I had to remove the shiny OEM cable and replace it with a PTFE-coated tandem-length rear cable, but that’s normal for a long wheelbase recumbent.
For the record, both black shift indicator tabs still show no signs of failing after half a year, so a bent piece of polypropylene sheet looks like a win.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The overall XY travel is slightly smaller than the initial configuration, because the router sticks out further than the penholder I’d been using. Increasing the $27 Homing Pulloff distance to 3 mm leaves a comfortable space beyond the limit switches after homing to the positive end:
MPCNC – X-axis endstop – home
Adjusting the $13[01] XY travel distances and switch positions on the other end of the rail leaves a similar comfort zone at the negative end:
MPCNC – X-axis endstop – X min
Both switches now live on the rear X-axis rail and appear as seen from behind the bench; they just look backwards. The Y-axis switches are on the left rail and look exactly the same.
The XY travel works out to 630 × 460 mm = 24.8 × 18.1 inch, which is Good Enough.
Some fiddling with the Z axis limit switch tape mask produces a nice round 100 mm = 3.9 inch vertical travel. The Z-axis rails just barely clear the table at the lower limit and just barely stay in the bottom bearings at the upper limit, so it’s a near thing. In practical terms, the rails or the tool will smash into the workpiece sitting atop the table before the limit switch trips.
Setting both $20=1 Soft Limits and $21=1 Hard Limits may be excessive, but I vastly prefer having the firmware detect out-of-range moves and the hardware forcibly shut down if the firmware loses track of its position, rather than letting it grind away until I can slap the BRS. The steppers aren’t powerful enough to damage anything, of course, so it’s a matter of principle.
The $N1=G10L2P1X-633Y-463Z-3 sets the default G54 coordinate origin to the front-left corner, with Z=0 at the home position up top, so as to prevent surprises. I expect to use G55 for most work holder touchoffs, although we’ll see how that plays out.
The G28 and G30 settings depend on the tool change location and the Z-axis probe location, so they’re still not cast in concrete.
Unfortunately, it sat slightly too close to the gantry roller along the X-axis for comfort.
The effort required to pry the mount off its hot-melt glue bed showed it wasn’t ever going to shake loose, so I fired up the glue gun and stuck it to a better spot on the XY assembly:
MPCNC – relocated camera – front view
Seen from the side:
MPCNC – relocated camera – side view
Bonus: it’s now trivially easy to tweak the locking screw!
Realigning the camera and recalibrating its offset proceeded as before.