In the past, Convoy lights used an ATtiny microcontroller that was relatively easy to flash with custom firmware. However, I recently saw here on BLF that Convoy now uses a different microcontroller that cannot be reflashed, but is cheap and readily available.
Assuming someone already has the necessary soldering skills and equipment, how difficult would it be to buy blank microcontrollers in bulk from China and develop our own firmware for Convoy lights, replacing the factory microcontroller?
Does anyone know which microcontroller Convoy currently uses in their buck and boost drivers? And what would be required to program and flash new firmware onto it?
Without a doubt, that would be the best option. The thing is, Convoy’s drivers are cheap and competent enough, I’d say. The only thing I’d really like to change is the UI.
Being able to have pre-flashed microcontrollers and simply swap them into the drivers would basically be the best of both worlds.
To swap in a different MCU, you’d need to do a few things…
Examine the driver to understand how it works, what each chip is, and what pins things are connected to.
Find a MCU in the same form factor with compatible features and pinouts.
Find a way to flash the new MCU. Without flashing pads on the driver, this can be tricky.
Remove the old MCU… which might be tricky if the circuit has components on both sides (when using a hot plate), or has little parts which could blow away (when using a hot-air station).
Write new firmware from scratch.
Find a way to test the firmware, ideally without having to unsolder and re-solder the MCU every time.
Put everything back together again.
People often find it easier to design and build a whole new driver circuit from scratch.
That would definitely be the biggest pain. If we used the same MCU that Convoy uses, I’d have to throw away an MCU after every test. And even if I used one that could be reflashed, the thought of having to desolder everything for every single test is already discouraging.
Ideally, we’d have some kind of test PCB where we could develop and test the firmware without having to constantly solder and desolder components.
I like the idea of a test driver.
Something could probably be made with an SOIC 8 socket, such as this.
Ideally you would use the largest diameter driver to gain some real-estate.
It would be a lot simpler to just swap drivers. Swapping a controller is a lot more complex task, but kudos to you for willing to go thru all those troubles. I hope you get it working exactly as you want it. Keep us posted, It is an interesting project