Anyone re-programmed the D10 (or EX10) to fix the software bugs?
I think I have worked out all the connections to the uC, only trouble is without a datasheet for the smps controller I'm not sure why pin 5 is connected, my guess is it's an open-drain output from the smps IC (power good?), but it never seems to change to a digital level, and is quite noisy.
This also ties up one of the ISP pins so I am going to have to lift the leg to get the uC to flash and need to know if it should go back. Or just swap it for a new one, but access isn't ideal.
I have re-written the firmware (from scratch, in C) to make it easier to use and more predictable but am a bit stuck unless I know what this last input is for.
New firmware
Looking at the board it has provision for a battery voltage input so could have a low battery warning, although I run mine on NiMH so have not written this at the moment.
Currently the output only has about 20 levels, although more could be added, what sort of ramping curves are people using? Linear looks rubbish! Theoretically I could calculate the exact PWM duties the D10 is currently using, but I'm not sure its worth the effort.
I think I have worked out all the connections to the uC, only trouble is without a datasheet for the smps controller I'm not sure why pin 5 is connected, my guess is it's an open-drain output from the smps IC (power good?), but it never seems to change to a digital level, and is quite noisy.
This also ties up one of the ISP pins so I am going to have to lift the leg to get the uC to flash and need to know if it should go back. Or just swap it for a new one, but access isn't ideal.
I have re-written the firmware (from scratch, in C) to make it easier to use and more predictable but am a bit stuck unless I know what this last input is for.
New firmware
- off - on [release] quick low, as before
- off - on [hold] quick high, as before
- About half a second to enter ramping mode
- Ramping at any point changes stored value, ramping is always up from turn-on, unless the torch is on max. If you shortcut to min or max and ramp that changes the stored brightness too.
Looking at the board it has provision for a battery voltage input so could have a low battery warning, although I run mine on NiMH so have not written this at the moment.
Currently the output only has about 20 levels, although more could be added, what sort of ramping curves are people using? Linear looks rubbish! Theoretically I could calculate the exact PWM duties the D10 is currently using, but I'm not sure its worth the effort.