Ed Nisley's Blog: Shop notes, electronics, firmware, machinery, 3D printing, laser cuttery, and curiosities. Contents: 100% human thinking, 0% AI slop.
A bit of rummaging produced a desk lamp arm, minus whatever lamp it originally held, ready to hold the second photo lamp, after a bit of epoxy on one locking knob:
Lamp arm clamp screw rework
The flanged nut will seat on the wrecked part of the knob, with the epoxy holding it in place and somewhat reinforcing the perimeter. I’m not sure this will last forever, but it’ll be a start.
Printing a second cold shoe, though, worked perfectly, and everything fit:
Another attempt at replacing the Wyze camera firmware went much more smoothly, producing a pair of small cameras with better network manners:
Wyze Camera hacks – Cam 1 overhead workbench
That’s a VLC screen capture from the RTSP stream; obviously, I must up my clutter control game.
I formatted a 32 GB MicroSD card with a 512 MB partition, which may not be strictly necessary, copied the MicroSD CFW bootloader (as demo.bin, sheesh), and it installed without drama.
I resized the partition to 32 GB, installed the firmware (per the FAQ) into the root directory, tweaked the configuration files to match my situation, popped it in the camera, plugged the power cable, and It Just Worked™.
Herewith, a checklist of config directory files requiring tweakage:
wpa_supplicant – WiFi SSID and password
timezone.conf – America/New_York for us
osd.conf – can be tweaked through the Web interface
The router isn’t bright enough to route different port numbers on its Internet side to different LAN IP addresses with the same port address, so each camera must stream from a different port number. I don’t plan many world-available video streams, but a friend does enjoy watching the birds during feeder season.
With the RTSP stream up & running, I flashed the U-Boot bootloader (again, minus drama) and tweaked its uEnv.txt configuration file:
Change the memory layout to allow 1920×1080 video
ethaddr – set to match hardware MAC address
gateway – router IP
ipaddr – match the staticip.conf value
serverip – router IP (unclear what this does)
The cameras now produce no objectionable network activity, dramatically down from the Wyze firmware’s desperate attempts to contact various servers, every five minutes, around the clock. I have no way of tracking connections made with direct dotted-quad IP addresses, rather than through the pihole, but … this is a distinct improvement.
Having won an eBay action for a known-dead Sony DSC-F717 at $0.99 (plus $15 shipping, the seller being no fool), I now have a possibly salvageable camera, a Genuine Sony AC supply, and two more NP-FM50 batteries for about the price of any one of the components.
One battery arrived stone-cold dead, suggesting the camera had been put away with the battery installed for a very long time and they died companionably. The camera still charges a (good) battery, even though it doesn’t turn on, and perusing the schematics suggests checking the power switch, because it’s always the switch contacts. That’s for another day, though.
For the record, the battery status:
NP-FM50 – 2019-03-30
The red and green traces come from the two batteries I’ve been cycling through the camera since, um, 2003, so they’re getting on in years and correspondingly low in capacity.
The fourth battery (2019 D, the date showing when it arrived, not its manufacturing date) went from “fully charged” to “dead” in about three seconds with a 500 mA load, producing the nearly invisible purple trace dropping straight down along the Y axis.
The lower cell is lifeless, the upper cell may still have some capacity. Three pairs of 18500 lithium cells are on their way, in the expectation of rebuilding the weakest packs.
After desoldering the battery tab on the right from the PCB, it occurred to me I needed pictures:
Sony NP-FM50 battery – PCB exposed
Yeah, that’s a nasty melted spot on the case, due to inept solder-wickage.
Unsoldering the three tabs closest to the case releases the cells + PCB from confinement:
Sony NP-FM50 battery – PCB overview
I’m still bemused by battery packs with a microcontroller, even though all lithium packs require serious charge controllers. At least this is an Atmel 8-bitter, rather than 32-bit ARM hotness with, yo, WiFi.
The cells have shaped tabs which will require some gimmicking to reproduce:
Having an ancient flip phone in need of a battery, I ordered a Kyocera TXBAT10133 battery from eBay. Described as “new” (which, according to the Ebay listing, means “New: A brand-new, unused, unopened, undamaged item in its original packaging”), I was somewhat surprised to see this emerging from the box:
Kyocera TXBAT10133 – not really new
It obviously led a rather hard life before being harvested from somebody else’s obsolete flip phone and is definitely not “new”.
Not yet having a deep emotional attachment to the thing, I set it up for a capacity test:
Kyocera TXBAT10133 – contact clamp
Given a very light 100 mA load, it shows about the same capacity as the original battery in our phone:
Kyocera TXBAT10133 – 2019-03-29
Given the precarious contact arrangement, the glitches near the right end aren’t surprising.
The battery label claims a 900 mA·h rating, so both have nearly their nominal capacity at such a reduced load. In actual use, the phone has a low battery after a few hours of power-on time, far less than when it was new.
The seller promises a replacement. For all I know, there are no genuinely “new” batteries available for these phones.
Somewhat to my surprise, Aneng AN8008/AN8009 multimeter PCBS sport what looks like a reasonably accurate current sense resistor on the 10 A input:
AN8009 10 A current shunt – top view
The legend says 0.01R and the conductor doesn’t look quite like pure copper:
AN8009 10 A current shunt – side view
The indentations look like clamp marks from the bending jig, rather than “calibration” notches made while squeezing the wire with diagonal cutters and watching the resistance on another meter.
One might quibble about the overall soldering quality, but one would also be splitting hairs. I doubt the meter leads could withstand 10 A for more than a few seconds, anyhow.
If you buy enough of something, you can buy pretty nearly anything you want, even cheap precision resistors!
Having recently acquired a pair of photo lights and desirous of eliminating some desktop clutter, I decided this ancient incandescent (!) magnifying desk lamp had outlived its usefulness:
Desk Lamp – original magnifiying head
The styrene plastic shell isn’t quite so yellowed in real life, but it’s close.
Stripping off the frippery reveals the tilt stem on the arm:
Desk Lamp – OEM mount arm
The photo lights have a tilt-pan mount intended for a camera’s cold (or hot) shoe, so I conjured an adapter from the vasty digital deep:
Photo Light Bracket for Desk Lamp Arm – solid model
Printing with a brim improved platform griptivity:
Photo Light Bracket for Desk Lamp Arm – Slic3r preview
Fortunately, the photo lights aren’t very heavy and shouldn’t apply too much stress to the layers across the joint between the stem and the cold shoe. Enlarging the stem perpendicular to the shoe probably didn’t make much difference, but it was easy enough.
Of course, you (well, I) always forget a detail in the first solid model, so I had to mill recesses around the screw hole to clear the centering bosses in the metal arm plates:
Photo Lamp – bracket recess milling
Which let it fit perfectly into the arm:
Desk Lamp – photo lamp mount installed
The grody threads on the upper surface around the end of the slot came from poor bridging across a hexagon, so the new version has a simple and tity flat end. The slot is mostly invisible with the tilt-pan adapter in place, anyway.
There being no need for a quick-disconnect fitting, a 1/4-20 button head screw locks the adapter in place:
Photo Lamp – screw detail
I stripped the line cord from inside the arm struts and zip-tied the photo lamp’s wall wart cable to the outside:
Photo Lamp – installed
And then It Just Works™:
Photo Lamp – test image
The lens and its retaining clips now live in the Big Box o’ Optical parts, where it may come in handy some day.
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
With the wrecked 5U4GB safely in the trash, I popped a smaller, somewhat less stately triode from the Big Box o’ Hollow-State Electronics and wired it up with a pair of SK6812 RGBW LEDs:
Triode – Purple-green phase
The tube’s markings have long since vanished, but, at this late date, all that matters is an intact glass envelope!
After two years, the ordinary white foam tape holding the knockoff Arduino Nano lost most of its sticktivity and easily popped off the 3D printed base:
Triode – Nano PCB – white strips
Two layers of 3M outdoor-rated foam tape clear the bottom-side components and, based on current evidence, its stickiness should stick forever more:
Triode – Nano PCB – 3M strips
The alert reader will notice the mis-soldered 1 kΩ SMT resistor above-and-right of the CH340 USB interface chip. I think those two resistors are the isolators between the 328P microcontroller and the CH340, letting you use the TX and RX lines as ordinary I/O without killing either chip.
Despite the mis-soldering, it evidently passed their QC and works fine. Seeing as how I didn’t notice it until just now, it’ll remain in place until I must open the lamp base for some other reason, which may never happen.
The data output is now on pin A5, to match the rest of the glowing widgetry:
Triode – Nano installed
Blobs of hot melt glue affix the SK6812 and wiring to the socket:
Triode – socket wiring
The original “plate cap” wiring ran directly through a hole in the hard drive platter, which I embiggened for a 3.5 mm panel-mount headphone jack. The knurled metal plug looms next to this smaller tube, but it looks better (in a techie sense) than the raw hole:
Triode – plate cap plug
Octal tubes have an opaque Bakelite base, so I devoted some Quality Shop Time™ to the post:
Triode – base tip exposed
Although I’d made a shell drill for 5U4’s base, this base was so crumbly I simply joysticked the spinning cutter around to knock off the rest of the post:
Triode – finished base
The shell drill would open the bottom to admit a bit more light. I may do that to see if it makes any visible difference.
I didn’t expect the serrations in the top mica plate to cast interesting patterns around the platter:
Triode – cyan-purple phase
Memo to Self: use the shell drill to avoid nicking the evacuation tip!