NarsilM - configurable e-switch firmware for Multi channels, v1.3

Ohhh, dang! Forgot bout that, think I heard or saw it posted. Wow! Not sure then if NarsilM does anything at all better...

I got some flexibility in it now to support combos of output channels, but Andúril probably has that covered better.

From what I recall, Narsil was originally built around its mode group UI, giving the user a configurable and carefully-chosen set of discrete levels which hit the sweet spots of each host light, and a fast way to click through them. That is the core; everything else was added later.

Anduril doesn’t have anything like that. There’s a stepped ramp, but it’s totally different than how Narsil works.

After several driver rebuilds, changes, fuse changes, etc, I just about gave up when I found the problem. The LED I was using to test the driver was the problem. It was an old, abused MGT2 that wouldn't turn on until current hit about 720mA. Once on, I could ramp down all the way. Once I swapped in 2S XPG3's, the driver worked great. So much time spent trying to fix a perfectly fine driver. Oh well, lesson learned.

Bugger. Glad you found the problem. :beer:

I understand that frustration completely. I’ve become pretty good at killing Lexel’s new high performance fets, those things don’t like voltage spikes. Accidentally deleting a comma in the Narsil ramping table has the same effect. So much time wasted when you guess wrong and focus on the wrong thing.

Things like this are why I’m going to wire four 5mm leds to a programming clip. One for power and one for every output channel, plan to bring the switch pin out as well as a test point. Easy to put a meter on an output to check for shorts.

Once you see each led turn on dim and go up to maximum intensity you know the Attiny is working correctly and you’re down to a few output devices to troubleshoot.

Clever. That is a great idea!

I have a question about the stepped ramp for Anduril.

Is it linearly spaced (numbers percentage) or more like the visual brightness spacing (like in the BLF A6 which has evenly-spaced modes, which I believe were adjusted manually) ?

This thread is for NarsilM, but there is an answer in another thread:

Does the GT version hex file drive 2 PWM channels in tandem or is there a difference between the two channels? Twp pins individually produce moonlight and appear to ramp fully from low to high, tubo, etc. Are both channels producing the same PWM signal? If not, what is the difference between the 2 channels?

Separately, really love NarilM. So much genius in it.

The GT driver has one pin to control the constant current circuit’s current level, and one pin to turn it on and off. For the top 90% of its power range, it’s set to “on” (255/255) while varying the power level. For the bottom 10, it’s PWM’d at 10 power.

^

Thank you TK. Very good info. Was looking at the circuit for the GT driver just a bit ago and saw both pins feeding the buck converter. One via a voltage divider with a cap and the other directly connected. Might be able to use the hex file for a FET only driver for the time being. Having trouble building a solution on my own and want to move on with the build.

I have recently translated Sofirn's manual for the new SP36 into German language. This flashlight comes with NarsilM 1.2. Since more and more native speakers ask for a German version I thought it might be good idea to share the translation of NarsilM here and on TLF (German flashlight forum). Sofirn agreed upon this plan, too. Before actually releasing it to the community - are there any constraints like copyright, licensing agreements etc. I need to consider. What would be the best format to share it? I could provide it directly into this or a new thread or I could also provide a link to a pdf-file.

Let me know what you think. :-)

Cheers,

Thomas

With NarsilM on the Lumintop GT Micro, is there a way to leave the e-switch locator led on while the main LED is on? It can be hard to find in the dark.

Sorry, no unfortunately. I really wanted to get it implemented as a feature though. My GT Micro's switch LED is pretty dull though - not sure how well it would show up with the main LED on.

What is the latest version of Narsil?

Where can it be downloaded?

Still V1.3 - I've still be using it often.

I just posted my latest v1.3 source code here: https://drive.google.com/open?id=1i42GnkD6LBvxEK3_fiZVdrZsFkNuLZsU

Let me know if you can access it ok. If you are used to building NarsilM, I got a ton of Setups.h files that Iv'e used. You have to carefully go thru things and make sure you pick a proper setup config to use, then tweak as you like. Please check the Rev History.txt file carefully for the most recent changes.

Thanks Tom, got a message about a network error but it downloaded fine.

Thanks, Tom!

It’s pretty stellar UI.

Thanks. I updated the copy in my repository to this version.