GENERAL NOTES::
This is not a ‘For Dummies’ step by step. You’ll have to follow some links and understand a few things. I hope these details help you get over some of the rough patches and uncertainties I ran into.
If you can get something attached to the battery ring to pull the driver, consider it. Getting the switch out is annoying. Getting it back in properly (and straight!) is also quite annoying
If you have access to a vice, consider rounding a nail and bending it like you see in some of the other links. Using the unbent S hook requires strong pliers and a moderate amount of whispered cursing.
A little lube on the button retaining ring and where it touches the rubber cover will make it easier to tighten down the ring without spinning the switch in its hole.
Sofirn uses glue… because its designs seem to require it. Don’t be foolish and try to clean it all off the ledge where the driver sits. A little glue will make the driver stay in place while you’re reassembling things later.
HARDWARE::
All my parts finally showed up. Odds are high you can find similar items cheaper, but I didn’t want to wait a month for Chinese shipping and wanted to get a quality test clip instead of a ‘mostly works’ copy. I also had an Amazon balance I could dip into.
- CPT-063 Test Clip SOIC8 Pomona 5250
- complete overkill jumper wire set
SOFTWARE/ Config resources I used - Windows Specific:
- ATiny13 flashing tutorial - this has nice pics on jumper wire hookups
- D4v2 flashing instructions - more useful details, and good download links for the two programs you need.
- Toykeeper’s pre-compiled .hex files - Toykeeper has precompiled code for several Anduril lights here. Find the newest one specific to your light
If you want to customize your code, you’ll have to download the source code and an IDE/Compiler. I’m not getting into that right now. If I do, I’ll add something about it.
STUFF:
The SP36 runs an ATiny85
Once you get things hooked up, this is the command to test the connection.
avrdude -p t85 -c usbasp -n
When your connection is tested and working, this is the command to do the flashing. Note, you’ll have to have a hex file in the folder you’re in and use the right hex file name. (the part in bold)
avrdude -c usbasp -p t85 -u -Uflash:w:anduril.2019-08-05.sofirn-sp36.hex
Double check you are using the right file. Accidentally putting FW3A code into an SP36 will provide loads of entertainment as you try to figure out how you’ve just broken your light.
With the driver oriented so the USB-C port is facing left, the controller chip is directly to its right. Pin 1 is on the bottom left.
IMAGES:
Wiring Diagram between USBASP v2.0 and SOIC8 for SP36 / ATiny85. I lucked out - there were just enough different wire colors to do what I needed.
Wires as attached to the USBASP (top view / bottom view)
Wires attached to the test clip (top view / bottom view)
A little lube between the threaded ring and rubber button cover will make things easier on re-assmebly