now after some troubles I finally finished the PWM-Dimmer
It should work with nearly every circuit because it uses a high pwm frequency at about 15khz and up to 30khz.
It is programmable so if you want you can customize the modes and add features like temperaturemonitor and so on.
This build has following features:
Modes:
very low
low
middle
high
very high
SOS
Strobe
High frequency strobe
Lost flashlight mode ( it blinks every 5 seconds in this mode. So you can always find it in the dark and consumes very little batterypower)
Fade in and fade out
Batterymonitor for up to 4 Li ion cells.
The number of cells can be setted with the button on the board.
Other cells like Nimh and custom voltage cut offs can be programmed as well.
It can also be turned off.
It works from 2V up to 22V
high resolution:
http://daoriginal.da.funpic.de/data/pcon/pcon1.jpg
I will try to make a video this night
And again, if you want one you can pm me.
It should not cost that much because the components are available everywhere.
but I have to calculate