That’s a good point. It might be a good idea to add a “noinit” attribute to the timer variable, and only set it to zero on boot if the offtime capacitor (or noinit-based offtime sensor) says it was a long press. This would allow the timer to keep counting after a short press or brief interruption.
RMM - yes this the timer on this light had been working. Since I posted yesterday it has failed once again. I’ll test again today to see if it continues to fail.
Toy - as always thanks for the suggestion. I may reach out for a bit of clarification on the specifics of implementing this.
Hi. I am building a driver fet + 7135. I want to flash the firmware of toykeeper blf a6. I want to achieve around 100 lumens on low mode using the 7135 but i don’t have equipment to measure the lumens. Anyone knows what value should should i put ex. 150/255?
Ok, so according to Match, you get 100 lumens at around 200ma. He tested a T6, but lets assume that the extra gain from the U2 is cancelled out by losses in the lens and reflector.
So 200ma/380ma*255pwm = 134pwm. That should get you close.
That emitter, at 350mA, should put out about 140 or 150 OTF lumens. So, for 100 lumens you’ll want the 7135 chip running at about 69%, or about 175/255.
This is a very rough guess though.
You can get the PWM levels from bin/level_calc.py, if you have the ability to run python scripts. For example, this calculates 9 evenly-spaced levels from 0.5 lm to 1400 lm on a FET+1 driver:
Do I understand correctly, the only way to get mode reversing is with a light built around a momentary switch? So a partial press of a tail cap switch will not work to reverse? Please explain this if you can… I am trying to get reversing on a 105c.
I have compiled and flashed standard Star and it does not seem to back up…
With STAR that's correct. ToyKeeper was the first one with a firmware that could do reversing with a clicky switch. Take a look over at her repository.
TK, would it involve a modified BLG-A6 firmware or is there one already written? When I use lights and night, more often than not I want a very low mode and would love to go from ML to low and back without being required to go thru high. All of my FET and FET+1 have gone to a slightly modified version of that firmware, except for 1 that is a ramping driver.
I did not get time to pour over the firmware site last night, it may be right there in my face. So, I apologize up front if it is obvious.
I have nanjg-based lights (with no physical mods) which let me use moon and low without having to loop through turbo. For example, my CNQG brass 18650, for which I wrote brass-edc.c. It uses a short press to go forward or a long press to reset to the first mode. There are no hidden modes or config options, but after turbo there are a bunch of blinkies for various purposes.
There are also options like TheStar, which implements hidden modes by requiring you to go through the main modes twice quickly in order to access any blinkies.
When using the star off time firmware what exactly happens for the low voltage protection?
I see that it says "Low voltage ramp down and shutoff" in the OP, but at what voltage does the light ramp down and to how low, and also what voltage does it cut off?
Also how are you guys able to set low voltage protection for a 2 cell zener moded FET driver? I see this is an option on RMM site.
It has been a while since I tested that code, but IIRC it drops one level at a time until the lowest, then shuts off. The specific voltage it uses depends on the driver it’s running on and how the code was calibrated. It should be somewhere near 2.8V though, give or take like 0.4V depending on the exact hardware used. I think the default is calibrated for a nanjg driver, so your FET driver will probably have slightly different values.
To make it work on a multi-cell light, you’ll almost certainly have to re-calibrate it yourself. Tools for this are in my code repository under battcheck/ .