I wonder how it even compiled like that. Iâve been using a script lately to build every supported version every time instead of doing just one, and the Q8 version built and worked normally under gcc 4.9.2. But it looks like it really shouldnât have workedâŚ
Since itâs a thing people might want, and since I think Lexel may have been requesting it, I took a moment to make a Werner-style momentary UI, side e-switch plus tail clicky-switch.
Nope, that is set entirely in hardware. It depends on the indicator LED Vf, the battery voltage, and the resistor(s) between them. Note that, in low mode, the attinyâs internal resistor is active, which is why low mode exists at all.
The code canât change this, because the MCU is asleep and not executing any code. The PWM facility isnât active.
Hey y'all i'm late to the party and i'm trying to figure this out. I want to run anduril on a TA board that i'm pretty sure is a tripledown layout. Do I just add in a line "#define TRIPLEDOWN_LAYOUT " ?
And what about the FET+1+20 part? Its just a FET+1+6. Any help will be much appreciated
Iâd suggest copying the FW3A config, or even just using it directly, depending on the details of that driver. Itâs a FET+7+1, so it should be pretty close.
I recently (in the fsm branch) reorganized how hardware definitions work⌠thereâs a physical layout file, like hwdef-FW3A.h, showing which pins do what and a couple other things. Thereâs also a UI config file, like cfg-fw3a.h, which configures options specific to Anduril or FSM.
Then thereâs a magic #define to tell it which hardware config files to use.
There is a Tripledown definition, but I think itâs designed for a clicky-switch type with OTC and a voltage divider. So I suspect the FW3A definition might be closer, if youâre using it with e-switch instead of OTC, and if you take the voltage divider off. (itâs not recommended to have or use a voltage divider for e-switch lights, since it increases parasitic drain)
If youâre doing multiple cells in series though, itâll need the voltage divider, and some bits copied/tweaked from the BLF GT configuration. And the 7135 chips are likely to burn out.
Anyway, you can probably just remove a voltage divider resistor and flash the FW3A build directly. If my guesses are right, it should âjust workâ.
Oh, the FW3A doesnât have a pin for an aux LED. The four main pins are used for 1x7135, Nx7135, FET, and e-switch. But you could probably attach the aux LED to pin 7 (PB2), and define something to make it use that. It should work, but will involve compiling your own version.
Iâm also not entirely sure itâll fit into ROM all at once. The third PWM channel uses extra space, and the aux LED uses extra space, and there may not be quite enough room for both unless you turn off something else.
Not really. E-switch and clicky switch arenât capable of doing the same things. For example, itâs impossible to do âhold to change brightnessâ on a clicky switch, because holding (reverse clicky) physically disconnects power.
Anduril does not work on lights which have only a clicky switch. It requires an e-switch.
Comparing it to a computer, an e-switch works like a mouse button. It can be up or down, and the computer keeps processing in both states. But a clicky switch is more like pulling the power cord out of the wall. The computer wonât do anything at all until itâs plugged in again.
It can do modes, like Bistro. There are several interfaces available, though the most popular one is Anduril. And instead of doing smooth ramping, it can do a mode group. Like Bistro, the user sets the number of modes. Unlike Bistro, the user can also set the brightness of the lowest and highest mode, and itâll automatically space the in-between levels evenly. The actions from there are a little different than Bistro too â hold for a brighter mode, release and hold to go to a dimmer mode.
Or if you want e-switch lights to work almost exactly like Bistro, Flintrock added e-switch support to Bistro-HD. It pretends the e-switch is a clicky switch, even making sure to turn the light off momentarily while the button is pressed. It uses short and medium presses to go up and down. However, since an e-switch canât actually cut power, turning the light off requires an extra-long press.
What I would like to do is unify my bike lights somehow. Getting to low mode fast when rounding a bend at speed on a bumpy trail and meeting another trail user needs to be easier. Too often I wind up in programming or strobe mode.
Now that Narsil and Anduril are available for buck drivers it has me thinking about replacing the Picâs with AtTinys on a board glued to the LED shelf. How the light reacts to overheating is a big concern. The lights with a remote battery pack are quite small for the power they produce. The light needs to be able to protect itself when going slow or stopped but canât step down abruptly when going fast in tricky sections.
The way you have Anduril responding to heat looks really good. It canât match the Pic based lights with an actual temperature sensor but having the MCU to the shelf should be good enough. Ideally Iâd like to remove some functions so they canât be accidentally accessed or heavily debounce the e-switch. One button press can turn into many depending what the front tire runs into on the trail. Iâm OK with basic Arduino stuff, a quick look at Anduril code tells me I am in for a steep learning curve.
Hello, maybe this question is already asked, but i dont want to get through 300 posts here
i have BLF A6 driver, now i want to flash new FW which supports e-switch, which FW should i flash, thank you
I can reflow the attiny 13 to attiny 85 if needed
The BLF A6 driver has an issue with large voltage spikes on each FET pulse. The attiny13 handles this like a champ, but other attiny models reboot when the voltage goes out of spec. So they donât work well above 4 or 5 Amps.
So you could stick with attiny13-based firmware, which will only have very simple interfaces, or you could mod the driver even further to fix the voltage spikes, or you could get/make drivers which donât have that problem.