NarsilM - configurable e-switch firmware for Multi channels, new v1.2 BETA

504 posts / 0 new
Last post
ToyKeeper
ToyKeeper's picture
Offline
Last seen: 4 hours 15 min ago
Joined: 01/12/2013 - 14:40
Posts: 10728
Location: (469219) 2016 HO3
joechina wrote:
Lamp list round up, to what I know:

This is like a todo list of people/projects to follow up with to make sure the code remains open.

Tom E
Tom E's picture
Offline
Last seen: 5 hours 46 min ago
Joined: 08/19/2012 - 08:23
Posts: 14627
Location: LI NY

ToyKeeper wrote:
joechina wrote:
Lamp list round up, to what I know:
This is like a todo list of people/projects to follow up with to make sure the code remains open.

Yeah, I emailed Neal to please post source code links for the GT and GT Mini. Sounds like he's gonna do it right away. There's definitely more. Even Hank at IOS should have links on each flashlight page - think he has it only on 2 of the 5 pages.

This is crazy it's taken off, took a while though. Haven't been keeping up with it, but Andúril should probably be used in place of it. Not sure though, don't think you got the switch LED support in there? But after all, Andúril was the one that saved Middle Earth from the Dark Lord smile.

ToyKeeper
ToyKeeper's picture
Offline
Last seen: 4 hours 15 min ago
Joined: 01/12/2013 - 14:40
Posts: 10728
Location: (469219) 2016 HO3
Tom E wrote:
Not sure though, don’t think you got the switch LED support in there?

Switch LEDs and front-facing aux LEDs are both supported, though not at the same time. Just one or the other. The only difference is whether it should be on at the same time as the main emitters.

During standby, the aux/switch LED can be high, low, off, or blinking. And for a Q8 or GT, with a lighted button, it also goes high/low/off during use, in sync with the main emitters. Usually I set the low-high threshold at the same point as the 7135-to-FET transition, so it indicates which power channel(s) are active.

Tom E
Tom E's picture
Offline
Last seen: 5 hours 46 min ago
Joined: 08/19/2012 - 08:23
Posts: 14627
Location: LI NY

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

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

ToyKeeper
ToyKeeper's picture
Offline
Last seen: 4 hours 15 min ago
Joined: 01/12/2013 - 14:40
Posts: 10728
Location: (469219) 2016 HO3

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.

ImA4Wheelr
Offline
Last seen: 1 week 1 day ago
Joined: 02/03/2013 - 14:51
Posts: 7935
Location: SC

ImA4Wheelr wrote:

Thanks WTF.  Saw that too, but the 7135 channel isn't working.  I'm think I have eliminated potential hardware issues (faulty 7135, connections, etc).  So I wondering if the hex file may be using different channels than what the documentation indicates. I'll reexamine hardware again tonight.  I may have to build my own hex file if I still can't find a hardware problem.

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.

MRsDNF
MRsDNF's picture
Offline
Last seen: 1 month 1 week ago
Joined: 12/22/2011 - 21:18
Posts: 13473
Location: A light beam away from the missus in the land of Aus.

Bugger. Glad you found the problem. Beer

 

djozz quotes, "it came with chinese lettering that is chinese to me".

                      "My man mousehole needs one too"

old4570 said "I'm not an expert , so don't suffer from any such technical restrictions".

Old-Lumens. Highly admired and cherished member of Budget Light Forum. 11.5.2011 - 20.12.16. RIP.

 

WTF
Offline
Last seen: 8 months 2 days ago
Joined: 03/05/2017 - 20:13
Posts: 318
ImA4Wheelr wrote:

ImA4Wheelr wrote:

Thanks WTF.  Saw that too, but the 7135 channel isn’t working.  I’m think I have eliminated potential hardware issues (faulty 7135, connections, etc).  So I wondering if the hex file may be using different channels than what the documentation indicates. I’ll reexamine hardware again tonight.  I may have to build my own hex file if I still can’t find a hardware problem.



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.

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.

ImA4Wheelr
Offline
Last seen: 1 week 1 day ago
Joined: 02/03/2013 - 14:51
Posts: 7935
Location: SC

WTF wrote:

. . .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!

d_t_a
Offline
Last seen: 34 min 50 sec ago
Joined: 08/04/2017 - 23:58
Posts: 2524
Location: Manila, Philippines

ToyKeeper wrote:
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.

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) ?

ToyKeeper
ToyKeeper's picture
Offline
Last seen: 4 hours 15 min ago
Joined: 01/12/2013 - 14:40
Posts: 10728
Location: (469219) 2016 HO3

d_t_a wrote:
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:

http://budgetlightforum.com/comment/1369731#comment-1369731

ImA4Wheelr
Offline
Last seen: 1 week 1 day ago
Joined: 02/03/2013 - 14:51
Posts: 7935
Location: SC

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.

ToyKeeper
ToyKeeper's picture
Offline
Last seen: 4 hours 15 min ago
Joined: 01/12/2013 - 14:40
Posts: 10728
Location: (469219) 2016 HO3

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.

ImA4Wheelr
Offline
Last seen: 1 week 1 day ago
Joined: 02/03/2013 - 14:51
Posts: 7935
Location: SC

^

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.

Lux-Perpetua
Lux-Perpetua's picture
Offline
Last seen: 11 hours 19 min ago
Joined: 03/01/2018 - 04:39
Posts: 3184

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. Smile

Cheers,

Thomas

P220C
Offline
Last seen: 6 months 3 weeks ago
Joined: 01/29/2019 - 14:37
Posts: 27
Location: Texas

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.

Tom E
Tom E's picture
Offline
Last seen: 5 hours 46 min ago
Joined: 08/19/2012 - 08:23
Posts: 14627
Location: LI NY

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.

WTF
Offline
Last seen: 8 months 2 days ago
Joined: 03/05/2017 - 20:13
Posts: 318

What is the latest version of Narsil?

Where can it be downloaded?

Tom E
Tom E's picture
Offline
Last seen: 5 hours 46 min ago
Joined: 08/19/2012 - 08:23
Posts: 14627
Location: LI NY

WTF wrote:
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.

 

WTF
Offline
Last seen: 8 months 2 days ago
Joined: 03/05/2017 - 20:13
Posts: 318

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

P220C
Offline
Last seen: 6 months 3 weeks ago
Joined: 01/29/2019 - 14:37
Posts: 27
Location: Texas

Thanks, Tom!

It’s pretty stellar UI.

Tom E
Tom E's picture
Offline
Last seen: 5 hours 46 min ago
Joined: 08/19/2012 - 08:23
Posts: 14627
Location: LI NY

 laughing cool

ToyKeeper
ToyKeeper's picture
Offline
Last seen: 4 hours 15 min ago
Joined: 01/12/2013 - 14:40
Posts: 10728
Location: (469219) 2016 HO3
Tom E wrote:

WTF wrote:
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

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

d_t_a
Offline
Last seen: 34 min 50 sec ago
Joined: 08/04/2017 - 23:58
Posts: 2524
Location: Manila, Philippines

ToyKeeper wrote:

10/15/2017

That OTR M3 is an awesome light to put Narsil on. I’m hoping that someday we can make a BLF clone of the Olight S-Mini with one of our custom drivers. It’s like the OTR M3 but even smaller, and getting it to run a BLF driver with fancy e-switch firmware would make it one of the best EDC lights ever made.

Was just reading random parts of the message thread and came across this. Is there some already some Olight S-Mini clone with e-switch firmware?

JasonWW
JasonWW's picture
Offline
Last seen: 2 hours 52 min ago
Joined: 10/22/2016 - 11:41
Posts: 12858
Location: Houston Texas

There is Olight S1 clone with e-switch firmware, but not S-Mini.

Texas Ace Lumen Tube and JoshK Sphere calibrated with Maukka lights

Click this to go to signature links. I'm still around, just not reading many new threads.

L4M4
L4M4's picture
Offline
Last seen: 11 hours 49 min ago
Joined: 12/08/2013 - 13:43
Posts: 1340
Location: Germany

Hey hey people

Just got my Astrolux FT03 today – the end of the ramping is not the maximum brightness – but I don’t want to have a turbo-mode, I want that light to ramp up to it’s full power like I can with Anduril.
Since this is my first NarsilM driver – is it possible, too?
didn’t find it in the manual though

Thanks!

ZozzV6
ZozzV6's picture
Offline
Last seen: 1 month 2 weeks ago
Joined: 03/24/2016 - 12:19
Posts: 2427
Location: Near to my soldering iron.

L4M4 wrote:
Hey hey people

Just got my Astrolux FT03 today – the end of the ramping is not the maximum brightness – but I don’t want to have a turbo-mode, I want that light to ramp up to it’s full power like I can with Anduril.
Since this is my first NarsilM driver – is it possible, too?
didn’t find it in the manual though

Thanks!


No you can’t change ramping floor and ceiling in Narsil
L4M4
L4M4's picture
Offline
Last seen: 11 hours 49 min ago
Joined: 12/08/2013 - 13:43
Posts: 1340
Location: Germany

OK thanks.

WalkIntoTheLight
Offline
Last seen: 7 months 1 week ago
Joined: 12/05/2015 - 10:26
Posts: 2231
Location: Canada

I think older versions of Narsil had the ramp ceiling equal to max output. My BLF Q8 seems to work like that. But the FT03 uses a more recent version of Narsil. I guess they changed it for some reason.

ToyKeeper
ToyKeeper's picture
Offline
Last seen: 4 hours 15 min ago
Joined: 01/12/2013 - 14:40
Posts: 10728
Location: (469219) 2016 HO3

NarsilM had the ramp ceiling separated from the turbo level during development of the BLF GT. The GT works really well at 2.0A, but not at the full power of 2.5A. It can’t keep the output flat for very long at full power. So the ceiling was set to 2.0A, with an extra 2.5A turbo level.

This is configured at compile time though… it’s not a user-configurable option.

Pages