Ed Nisley's Blog: Shop notes, electronics, firmware, machinery, 3D printing, laser cuttery, and curiosities. Contents: 100% human thinking, 0% AI slop.
After our Larval Engineer tweaked the code to track the maximum speed for the current run, so that the color always hits pure blue at top speed and red near standstill, we can prove it happened: we have a video! It’s much less awful than the First Light video, but with plenty of cinéma-vérité camera shake, lousy focus, and bloopers:
Longboard In Action
That’s a frame extracted from one of the raw videos files using ffmpegthumbnailer:
for t in `seq 0 10 100` ; do ffmpegthumbnailer -i mov07117.mpg -o Longboard-$t.jpg -t $t% -q 10 -s 640 ; done
This view of the 3D printed case shows the power switch and the Hall effect sensor cable snaking out of the truck just below the near axle:
Longboard RGB LED Electronics – right front view
She filled the case corners that pulled up from the build platform with a thin layer of epoxy, getting a plane surface by curing it atop waxed paper on the shop’s surface plate, to keep the polycarbonate sheet flat. I didn’t have any acorn nuts to top those nylon lock nuts, alas.
The 4-cell Li-ion battery lives in the slice between the white aluminum plates, where it takes about four hours to charge from 3.0 V/cell. The Arduino Pro Mini lives behind the smoked polycarb sheet, where its red LED adds a mysterious touch. Maybe, some day, she’ll show the 1/rev pulse on the standard Arduino LED for debugging.
A view from the other side shows the hole for the charger above the circuit board, with the Hall sensor out of sight below the far axle:
Longboard RGB LED Electronics – left front view
Yes, the cable to the LEDs deserves better care. She learned that you must provide strain relief at cable-to-component junctions, which we achieved by pasting the wires to the board beside the LED strip with double-stick tape. The rest of the LED strip interconnections live atop similar tape strips. There’s nothing much protecting the LEDs or their delicate SMD resistors, butit works!
Actually, one red LED in an RGB package went toes-up and wasn’t revived by resoldering its leads. So we jumpered around the package, subjecting the remaining two red LEDs in that string to a bit more current than they’d prefer, and that’s that.
There’s a whole bunch not to like one could improve in both the mechanics and electronics, butit works! If you’ll grant it alpha prototype status, then I’d say it’s Good Enough; this is her project and she’ll learn a lot from how it works and how it fails, just like we all do.
Having gone to great pains to put the center of the contact studs on the GPS+voice case exactly at the center of the screws on the back of the radio:
HT-GPS Case – Wouxun KG-UV3D rear view
I now discover why Wouxun used 7 mm square pads on the batteries: the springy contacts hit the pack so far off-center from the studs that they very nearly miss the heads on the 4-40 brass screws I’m using as contacts. This family portrait shows the radio, the battery pack, and the GPS+voice case:
Wouxun KG-UV3D – battery contact locations – GPS case
The lines on the masking tape highlight where the spring contacts touch the case and barely kiss the screw heads:
KG-UV3D contact marks on GPS case
Squinting at the marks on the battery case contacts (you can’t see it in the pictures), the contact line is maybe 2.5 mm beyond the centerline of the square pads. How this worked on the first case I built, I have no clue. For this version, I deliberately filed the heads a bit less and recessed them into the case a bit more; obviously, that was the wrong thing to do, as the connection was intermittent at best.
For the purposes of getting things working, I wrapped snippets of copper mesh tape (from NASA, according to the surplus blurb, with conductive adhesive) around thin chunks of conductive foam, then put them over the studs. The scars in the plastic came from an abortive attempt to get the springs far enough into the case surface to kiss the very edge of the studs:
Copper mesh on GPS case contacts
There’s no point in having a contact patch on the near side of the radio springs, because nothing ever touches there. So the right thing to do is simply move the contact studs to the far side by 3 mm, centering them around the actual contact point. That means changing the PCB layout by the same amount. That’s easy enough to do, but … drat!
When I took the case apart to boost the mic gain, I replaced those neatly filed studs with unfiled pan head 4-40 brass screws from the same parts stock. The heads were tall enough to touch the radio spring contacts closer to their centers and make perfect contact. Not elegant, but better than that copper braid tape.
The one thing I do not like about the Wouxun battery packs: the radio contact pads are flush with the pack surface, so there’s absolutely no protection against casual shorts when the pack isn’t on the radio. The packs also sport four bare round contacts on their outer surface that mate with the charger, two of which make direct contact with the battery; those sit inside a shallow molded recess that helps prevent inadvertent shorts.
I assume there’s a protective circuit inside the pack that turns off the current on a dead short, but I am most assuredly not going to test that assumption. When the packs aren’t on the radio (which they never will be, effective immediately), they sport a strip of tape across those radio contact pads.
Five PL605060 lithium cells (prismatic, 3.7 V, 2 A·h) for the longboard project arrived and underwent incoming inspection. The lower curves show the as-received charge state (about halfway) and the upper curves show the first charge:
PL605060 Li-Ion Cell
The crinkly sections come from me nudging the wires (held on by the most tenuous of alligator clip connections) and don’t really affect the results. The five cells charged to within a few percent of each other, which is Good Enough.
As is turns out, that charger is rated for 700 mA current, exactly the same as the 4-cell charger we’ll use for the longboard battery, so the overall charge rate should be about the same. The Canon cells run around 1.1 A·h and the PL605060 is 2.0 A·h; I figured 2.0 was approximately 1.1 for small values of 2.0. The charge cycle required only a little more time than usual, which isn’t surprising because I stopped the discharge at 3 V rather than 2.8 or whatever.
Cell C has the highest discharge voltage of the litter, so I’ll conjure it into becoming an external battery for the camera (which prefers higher voltages over higher capacity). I’m not sure how to mount it; a case that screws into the tripod socket is obvious, but it would interfere with the macro lens adapter. Of course, I could just print another macro lens adapter with an integral battery case …
This is the season for orb-weaving spiders, one of which laid a great web between a pole and the grass in the front yard. It worked wonderfully well to capture a flying katydid, but wasps got to the victim first:
Webbed katydid with wasps
Maybe a bird took out the spider? We’ll never know, but that katydid won’t go to waste.
This is a dot-for-dot crop from a handheld shot with the Canon SX230HS, macro setting, plus a dash of unsharp mask and gentle contrast stretching to knock the background down. It’s surprisingly hard to get perfect focus on a wind-blown object; this is the least awful of the group.
I opened the grill cover before lighting it and this critter ran out of the depths:
Spider in propane grill
It eventually crawled up to the gap at the lid, from whence it could bail out over the edge. I fired the barby and, alas, it scuttled in exactly the wrong direction: down its web and directly into the burners.
After our Larval Engineer allowed as how OpenSCAD’s learning curve was rather too steep, I punched a few holes in the solid model of the case for the Longboard Ground Effect Lighting controller:
Longboard Case Solid Model – with holes
Those rounded corners sucked the Kapton tape right off the build platform as the massive shape shrank. The top layer was the worst offender, with 1.4 mm of clearance (shown with that tapered scale) under one corner:
Longboard case – warped corner
The warping doesn’t matter much, because the case will be compression-loaded by screws and wave washers in the corners. We may need to fill or level the warp to keep the polycarbonate cover flat, though.
I thought about putting a support structure in the rectangular power switch opening, then decided to just try it and see what happens. It turned out fine; this view looks up toward the as-printed top of the opening (the camera’s barrel distortion makes the curve on the bottom surface look worse than it is):
Longboard case – switch hole overhang
Four stacked lithium cells produce upwards of 14.8 V, considerably more than those poor 12 V LED strips prefer to see, so I had her take some current vs. voltage data. She figured out how to convert 10-bit ADC values into battery voltage, after which she could, if she wanted to, beat her Arduino sketch into limiting the maximum PWM duty cycle to hold the LED power dissipation down to a reasonable number. Right now, it’s set to a fixed 25% and is way bright.
Longboard with variable RGB LED Ground Effect lighting
A truly crappy First Light video taken in the driveway is there. She’s been doing the Happy Dance all day… and promises to document the whole project in gruesome detail.
I designed the GPS+Audio case around the TinyTrak3+ board in my radio, which has two square, blue-plastic trimpots. The case worked fine for that board. Then I printed the case for the next bike and that TT3+ didn’t slide neatly into place:
TinyTrak3+ trimpot overhang
Turns out that one of the three TT3+ boards uses plastic trimpots and the other two have metal trimpots bent to fit the existing holes (so they’re not a drop-in replacement), with a very slight overhang beyond the edge of the PCB.
So I attacked the case with some riffler files and carved a notch above the PCB slot. No pictures of that, lest you think I’m a butcher of lovely 3D printed objects. Next time: build the notch into the case’s solid model.
Most likely, this is the only instance of those pots causing anyone a problem…