Sofirn SC21 mini

This entire time I’ve been trying anduril.2021-12-13.sofirn-sp36-t1616.hex and getting the slow ramping, but I just tried anduril.2021-08-31.sofirn-sp36-t1616.hex and it works!!

APPLAUSE)!!

Looking forward to learning how to do that for mine.

question
does that build have the double flash midramp… cause if it does, Im out

Now I’ve checked the complete callgraph and it appears to be Anduril 1, indeed. Weird.

The real question is who made an Anduril 1 build for the SP36-1616 and why did Sofirn use that on this light

The real question is

Can I replace Anduril 1 w Anduril 2 on my SC21 Pro, Without getting a double flash midramp?

The SP36 build from 8/31 doesn’t have the flash mid-ramp.

Im IN!

Congrats and thanks of placing the anchor bolts on the route

Im ready to learn to climb Reflash Mountain

I have the pogo adapter from gchart, and all the software he helped me load… what do I do now? :student:

Also, I recall the mid-ramp flash was intentionally programmed in. It is intended to alert the user when switching channels.

If you are comfortable with coding and compiling, you can probably edit the flash or flashes in the ramp out of any version of Anduril 1 or 2.

Personally, I agree that a smooth ramp without any flashes is best. The only point of knowing when you’re switching channels would be to get an idea of when efficiency drops as you go to FET. With that knowledge you could fine-tune your output to stop just before you hit that point. However, in practice this does not work as the default ramp speed of 2 seconds is far too fast to provide any meaningful fine-tuning around channel switches.

Do you have a USB ttl UPDI programmer?
Like these from Amazon

Another update: I’ve been specifying “-m flash” when erasing the MCU before writing and I thing this caused some settings from Anduril 1 to be saved in eeprom or something like that.

I flashed anduril.2021-12-13.sofirn-sp36-t1616.hex again and then immediately did a factory reset and now everything works as expected.

I feel you understand deeply.

I have zero clue how to code, compile, and reflash… Im sure I could learn… given sufficient coaching

thanks for the link…

I have this programmer from gchart, for the SP10… but I sold the light before I got the programmer, so I have not used it. (I may get another SP10, but meanwhile I got the SC21… )

I do think I have all the software… gchart spent a lot of time coaching me and linking me to all the stuff with unfamiliar names like Python, Pip and PymCuProg… And I learned to use the Terminal in my iMac… Im expanding my vocabulary, but have not tried to connect the programmer to any flashlight yet…

I think my first question is where do I put the pins
but Im sure there are other considerations Im too ignorant to ask about… lol

Im willing to follow directions, if I may impose on your time :wink:

If you already have everything installed, then it’s not overly difficult. However, the pogo dongle for the SP10 Pro will not work on this light since it uses a different layout. You will either need to make your own dongle or solder wires directly to the board. But that programmer will work just fine

Here’s the gist of it:

1. wire up the programmer to the light:
pin2 => GND
pin6 => VCC
pin1 => TX/RX (depending on the programmer, you might need a 1kOhm resistor between TX and pin1)

2. figure out what your programmer is called on your system

  • mine was /dev/tty.usbserial-1420 but yours might be different

3. try to ping the light

  • pymcuprog ping -t uart -u /dev/tty.usbserial-1420 -d attiny1616

4. make a backup of the existing hex

  • pymcuprog read -m flash -f ~/Desktop/sc21.hex -t uart -u /dev/tty.usbserial-1420 -d attiny1616

5. erase the mcu

  • pymcuprog erase -m flash -t uart -u /dev/tty.usbserial-1420 -d attiny1616

6. write the new firmware

  • pymcuprog write -f ~/Downloads/anduril.2021-12-13.sofirn-sp36-t1616.hex -t uart -u /dev/tty.usbserial-1420 -d attiny1616

7. Do a factory reset on the light just because lol

1 Thank

Thank you for my homework reading list… much appreciated.

How much is the driver size?
I would try upgrade on sc31pro host

The driver is 19mm, but I don’t see the point in swapping the driver when it can be flashed to Anduril 2.

Edit: oops, I replied without checking for thread updates first. Glad it’s working!

Fuses are still a thing, but most of the settings can be done in firmware and don’t need manually setting if fuses. BOD (brown out detection) is an exception, but that wouldn’t affect ramp speed.

My thread here has some info on doing fuses with pymcuprog.

Could you try my hex file here I would check your tk-attiny.h file too. At some point I changed between 5 MHz clock and 10 MHz, so it’s possible that it might be using an old setting.

first speedbump

How do I connect programmer pins to flat driver pads?

anyone have a photo of the operation?

thanks

You would have to solder wires to the pads or create your own pogo adapter

thanks for the roadmap and info

the points are that Sc31pro driver haven’t regulated output, work with pwm and provide too much current for 3535 Leds at high modes. If I’m not wrong Sc21mini is regulated, no pwm and 1000lm max. Enought for lh351d or 519a powered by 18350 cell