Re: Issue with TCB rebooting with certain actions
Posted: Mon Jan 05, 2026 4:46 pm
Hi Jib, I was thinking about this more and it seems to me the other bottleneck you may have, in addition or perhaps instead of your battery, is the 5 volt regulator on the TCB. If I understand you correctly, you have attached the output of the headlight port to your step-up voltage regulator, which then powers your LEDs. So the 5 volt source that is then stepped up (the output of the light outputs on the TCB is 5 volts), is coming from the 5 volt regulator on the TCB.
As I mentioned before, a step-up regulator must draw additional current in order to transform a lower voltage into a higher voltage. This extra current needs to be supplied by your battery, but in this case since it is coming through the 5 volt regulator on the TCB, that regulator must also be able to pass that current even if your battery can provide it.
The 5 volt regulator on the TCB is doing the opposite of what your step-up regulator is doing - it is converting a higher voltage (your 3S battery), into a lower voltage (5 volts). In this transformation, the difference is manifested as heat, which reduces the efficiency of the 5 volt regulator. First you are providing ~12 volts (3S battery) which is converted to 5 (with heat and loss of efficiency), and then you are converting it back to 12 volts which means drawing more current. It sounds like it often works, but clearly there are certain moments, for example right when the lights turn on and there is an inrush of current, where something is dropping even if only very briefly below some threshold level, and it only takes a brief moment to cause the processor on the TCB to brown-out (reset or shut down).
Since your LEDs need a higher voltage, the process of stepping down the voltage first and then stepping it back up afterwards is not ideal, and I don't know if your battery is being overloaded or the regulator on the TCB, or maybe both. You can increase the size of your battery and see if that helps, but there is no way to change anything about the regulator on the TCB. This regulator can in theory supply up to 3 amps, which I'm sure is enough for your LEDs, but that's in ideal conditions, and as it heats up it is able to supply less and less current. One other thing you could try is to swap out your 3S battery for a 2S battery, that means the TCB regulator has less work to do since it doesn't need to drop ~12 volts to 5, but only ~8 volts to 5.
Or you can just give your LEDs ~12 volts directly without stepping down and then back up, this is the idea of using a 5 volt relay. The TCB will control the 5 volt relay, which is easy, and then the relay will give the higher voltage directly to the LEDs.
I mentioned before that you could try a relay module on one of the general purpose I/O ports, if you have one of those free. If not, you could still control a relay directly from the Headlight output, though if you use one of those off the shelf modules you will have to do some extra wiring, and if you use a standalone relay you will have to add a flyback diode. I can give you more information on how those would be connected if you decide to go that route.
As I mentioned before, a step-up regulator must draw additional current in order to transform a lower voltage into a higher voltage. This extra current needs to be supplied by your battery, but in this case since it is coming through the 5 volt regulator on the TCB, that regulator must also be able to pass that current even if your battery can provide it.
The 5 volt regulator on the TCB is doing the opposite of what your step-up regulator is doing - it is converting a higher voltage (your 3S battery), into a lower voltage (5 volts). In this transformation, the difference is manifested as heat, which reduces the efficiency of the 5 volt regulator. First you are providing ~12 volts (3S battery) which is converted to 5 (with heat and loss of efficiency), and then you are converting it back to 12 volts which means drawing more current. It sounds like it often works, but clearly there are certain moments, for example right when the lights turn on and there is an inrush of current, where something is dropping even if only very briefly below some threshold level, and it only takes a brief moment to cause the processor on the TCB to brown-out (reset or shut down).
Since your LEDs need a higher voltage, the process of stepping down the voltage first and then stepping it back up afterwards is not ideal, and I don't know if your battery is being overloaded or the regulator on the TCB, or maybe both. You can increase the size of your battery and see if that helps, but there is no way to change anything about the regulator on the TCB. This regulator can in theory supply up to 3 amps, which I'm sure is enough for your LEDs, but that's in ideal conditions, and as it heats up it is able to supply less and less current. One other thing you could try is to swap out your 3S battery for a 2S battery, that means the TCB regulator has less work to do since it doesn't need to drop ~12 volts to 5, but only ~8 volts to 5.
Or you can just give your LEDs ~12 volts directly without stepping down and then back up, this is the idea of using a 5 volt relay. The TCB will control the 5 volt relay, which is easy, and then the relay will give the higher voltage directly to the LEDs.
I mentioned before that you could try a relay module on one of the general purpose I/O ports, if you have one of those free. If not, you could still control a relay directly from the Headlight output, though if you use one of those off the shelf modules you will have to do some extra wiring, and if you use a standalone relay you will have to add a flyback diode. I can give you more information on how those would be connected if you decide to go that route.