[WIP] 17mm DD+single-7135 driver / single sided / Dual-PWM

505 posts / 0 new
Last post
djozz
djozz's picture
Offline
Last seen: 8 hours 43 min ago
Joined: 09/07/2012 - 17:04
Posts: 16175
Location: Amsterdam

bugsy36 wrote:

Jos,

Just order the mcu's from Richard and tell him what you want on them. Smile

you are right, and he has a good price on them Smile

cajampa
Offline
Last seen: 3 years 5 months ago
Joined: 08/01/2014 - 01:55
Posts: 1963
Location: Sweden

djozz, your ideal firmware for this driver is moonlight->350mA->fullFETblast , start on moonlight, off-time no memory.

That sounds about perfect for a simple & not to complicated set up for a twisty light with a FET+7135 driver for gifting Smile

I hope that TK’s batt check feature could be included in such a setup.

djozz
djozz's picture
Offline
Last seen: 8 hours 43 min ago
Joined: 09/07/2012 - 17:04
Posts: 16175
Location: Amsterdam

RMM wrote:

That's a piece of cake and is doable with STAR or toykeeper's firmware.

but standard STAR does not make use of the FET+7135 driver or does it? I would want to use the 7135 chip for the 350mA setting, so that the driver only uses PWM for the moonlight setting.

cajampa
Offline
Last seen: 3 years 5 months ago
Joined: 08/01/2014 - 01:55
Posts: 1963
Location: Sweden

Hmm i don’t think the FET+7135 driver & firmware works like that, if i am understand things right, it uses various PWM levels for controlling the AMC7135 also.

But i hope i am wrong, or it can be made to work like how you are suggesting because, pwm for a low moon mode/as much light as the 350mAh or 380mAh AMC7135 can provide non PWM/full non PWM FET blast as much amp as the circuit can provide, sound like a good idea.

bugsy36
bugsy36's picture
Offline
Last seen: 6 months 5 days ago
Joined: 07/11/2014 - 18:15
Posts: 2475
Location: Florida USA

From what I understand...

When in any mode below 350ma....it is running on only the 7135. When running all out it is a combination of both 7135 and FET. To get the two modes that is being asked I am assuming (because I do not write code) that one would just delete or comment out the modes in between.

It's the simple things that we take for granted that cost us the most

Ευκαιρία λέει πιάσε με από το μέτωπο γιατί μόλις έχω περάσει δεν θα με πιάσειs

pilotdog68
pilotdog68's picture
Offline
Last seen: 3 weeks 6 days ago
Joined: 05/30/2013 - 23:31
Posts: 6420
Location: Held against my will in IOWA, USA

With the current STAR off-time, it wouldn’t be possible to control the channels separately (without tweaking a few things). You set a PWM level for each mode, then tell the FW at what PWM level to stop using just the 7135 and start using both FET+7135. For instance your modes could be 5, 60, 255. Then you tell it for anything above PWM 6, use FET+7135.

With TK’s firmware, it is possible. You set a separate PWM value for each channel on each mode. So your modes would be would as follows:
7135: 5, 255, 0
FET: 0, 0, 255

I do a similar thing on all of my large thrower lights, but with a higher medium. I use
7135: 50, 255, 0
FET: 0, 0, 255

But I have an extra 7135 stacked on top of the first one, so my low is at about 150ma, and my medium is CC at 760ma, then FET high.

My Favorite Modded Lights: X6R, S8 , X2R , M6, SP03

Major Projects:  Illuminated Tailcap, TripleDown/TripleStack Driver

djozz
djozz's picture
Offline
Last seen: 8 hours 43 min ago
Joined: 09/07/2012 - 17:04
Posts: 16175
Location: Amsterdam

pilotdog68 wrote:
7135: 5, 255, 0 FET: 0, 0, 255

that sounds like a translation of my favourite UI Smile

pilotdog68
pilotdog68's picture
Offline
Last seen: 3 weeks 6 days ago
Joined: 05/30/2013 - 23:31
Posts: 6420
Location: Held against my will in IOWA, USA

djozz wrote:

pilotdog68 wrote:
7135: 5, 255, 0 FET: 0, 0, 255

that sounds like a translation of my favourite UI Smile


Yep!

TK’s blf-a6 firmware also allows 2 mode groups, so you could do one group with L,M,H and the second group with just L,H (or whatever else you want). You change groups by tapping the button approx 15 times in quick succession. (but you don’t have to use the second group if you dont want to)

My Favorite Modded Lights: X6R, S8 , X2R , M6, SP03

Major Projects:  Illuminated Tailcap, TripleDown/TripleStack Driver

djozz
djozz's picture
Offline
Last seen: 8 hours 43 min ago
Joined: 09/07/2012 - 17:04
Posts: 16175
Location: Amsterdam

pilotdog68 wrote:
djozz wrote:

pilotdog68 wrote:
7135: 5, 255, 0 FET: 0, 0, 255

that sounds like a translation of my favourite UI Smile

Yep! TK's firmware also allows 2 mode groups, so you could do one group with L,M,H and the second group with just L,H (or whatever else you want). You change groups by tapping the button approx 15 times in quick succession.

I know that it is hard to not use available options, but disabling moonlight is not a needed option for me, just moon-7135:100%-FET:100% is fine Smile. But if this firmware can be made more attractive to other users by adding a (any) second mode group I'm all for it.

bugsy36
bugsy36's picture
Offline
Last seen: 6 months 5 days ago
Joined: 07/11/2014 - 18:15
Posts: 2475
Location: Florida USA

 

I believe that TK may have set a new standard for versatile UI's.

Nitecore has something similar by twisting the head on the P10. Two mode groups with one being what Djozz is asking for and the other being standard. I think TK's method of changing mode groups is much better.

It's the simple things that we take for granted that cost us the most

Ευκαιρία λέει πιάσε με από το μέτωπο γιατί μόλις έχω περάσει δεν θα με πιάσειs

bugsy36
bugsy36's picture
Offline
Last seen: 6 months 5 days ago
Joined: 07/11/2014 - 18:15
Posts: 2475
Location: Florida USA

djozz wrote:

I know that it is hard to not use available options, but disabling moonlight is not a needed option for me, just moon-7135:100%-FET:100% is fine Smile. But if this firmware can be made more attractive to other users by adding a (any) second mode group I'm all for it.

The two mode groups are already there. The first has 7 modes and the second has 4 modes. Unless someone gets into the code to change the number of modes on one of the groups, depending on their desires, I do not think that there is enough room for the Attiny13 to add any more mode groups like Dr.Jones did.

It's the simple things that we take for granted that cost us the most

Ευκαιρία λέει πιάσε με από το μέτωπο γιατί μόλις έχω περάσει δεν θα με πιάσειs

pilotdog68
pilotdog68's picture
Offline
Last seen: 3 weeks 6 days ago
Joined: 05/30/2013 - 23:31
Posts: 6420
Location: Held against my will in IOWA, USA

bugsy36 wrote:

djozz wrote:

I know that it is hard to not use available options, but disabling moonlight is not a needed option for me, just moon-7135:100%-FET:100% is fine Smile. But if this firmware can be made more attractive to other users by adding a (any) second mode group I’m all for it.

The two mode groups are already there. The first has 7 modes and the second has 4 modes. Unless someone gets into the code to change the number of modes on one of the groups, depending on their desires, I do not think that there is enough room for the Attiny13 to add any more mode groups like Dr.Jones did.


You’re right, but it’s designed to be easy to go to the code and change the modes (and it is). I don’t think any of my lights have the exact same FW as any other. All are tweaked to that particular light.
…………………………………………….
djozz: If you don’t want the second group, no problem. Just wanted to make sure you were aware of everything thats available. I can make your FW and send you the .hex file if you want, I just don’t have the extra Attiny’s to send. I assume you want no turbo timer as well?

My Favorite Modded Lights: X6R, S8 , X2R , M6, SP03

Major Projects:  Illuminated Tailcap, TripleDown/TripleStack Driver

RMM
RMM's picture
Offline
Last seen: 1 month 4 days ago
Joined: 07/23/2013 - 13:47
Posts: 4006
Location: USA

pilotdog68 wrote:
With the current STAR off-time, it wouldn't be possible.

...unless you change about one or two lines of code.  Pretty simple to do.  I wouldn't have said it was possible if I hadn't already done it.

Mountain Electronics : batteries, Noctigon, and much more! What's new? 

pilotdog68
pilotdog68's picture
Offline
Last seen: 3 weeks 6 days ago
Joined: 05/30/2013 - 23:31
Posts: 6420
Location: Held against my will in IOWA, USA

RMM wrote:

pilotdog68 wrote:
With the current STAR off-time, it wouldn’t be possible.

…unless you change about one or two lines of code.  Pretty simple to do.  I wouldn’t have said it was possible if I hadn’t already done it.


Well my apologies then, I didn’t know that. I’ve always just started with TK’s code for better control of the PWM channels. I edited post #126 to clarify.

My Favorite Modded Lights: X6R, S8 , X2R , M6, SP03

Major Projects:  Illuminated Tailcap, TripleDown/TripleStack Driver

djozz
djozz's picture
Offline
Last seen: 8 hours 43 min ago
Joined: 09/07/2012 - 17:04
Posts: 16175
Location: Amsterdam

RMM wrote:

pilotdog68 wrote:
With the current STAR off-time, it wouldn't be possible.

...unless you change about one or two lines of code.  Pretty simple to do.  I wouldn't have said it was possible if I hadn't already done it.

you're my hero, Richard! So I can just order a couple of programmed Attinies at your site with a note (and a few more nice parts while I'm at it Smile ) and I'm good to go? Smile

(don't hurry with it btw, I understand there's a brand new little flashoholic due soon..)

RMM
RMM's picture
Offline
Last seen: 1 month 4 days ago
Joined: 07/23/2013 - 13:47
Posts: 4006
Location: USA

djozz wrote:

RMM wrote:

pilotdog68 wrote:
With the current STAR off-time, it wouldn't be possible.

...unless you change about one or two lines of code.  Pretty simple to do.  I wouldn't have said it was possible if I hadn't already done it.

you're my hero, Richard! So I can just order a couple of programmed Attinies at your site with a note (and a few more nice parts while I'm at it Smile ) and I'm good to go? Smile

(don't hurry with it btw, I understand there's a brand new little flashoholic due soon..)

Better to send an e-mail to mountainelectronics at gmail dot com for this one, listing the requested items, quantities, and options.  Amsterdam isn't available to order directly from the website yet.  

Mountain Electronics : batteries, Noctigon, and much more! What's new? 

djozz
djozz's picture
Offline
Last seen: 8 hours 43 min ago
Joined: 09/07/2012 - 17:04
Posts: 16175
Location: Amsterdam

RMM wrote:

djozz wrote:

RMM wrote:

pilotdog68 wrote:
With the current STAR off-time, it wouldn't be possible.

...unless you change about one or two lines of code.  Pretty simple to do.  I wouldn't have said it was possible if I hadn't already done it.

you're my hero, Richard! So I can just order a couple of programmed Attinies at your site with a note (and a few more nice parts while I'm at it Smile ) and I'm good to go? Smile

(don't hurry with it btw, I understand there's a brand new little flashoholic due soon..)

Better to send an e-mail to mountainelectronics at gmail dot com for this one, listing the requested items, quantities, and options.  Amsterdam isn't available to order directly from the website yet.  

will do that Smile

cajampa
Offline
Last seen: 3 years 5 months ago
Joined: 08/01/2014 - 01:55
Posts: 1963
Location: Sweden

7135: 5, 255, 0
FET: 0, 0, 255

Does that mean that at moonlight 7135: 5 there is a 350mah thats PWM’ed to get it to moonlight, and 7135: 255 means it has no PWM even when it is called 255 PWM value? :~

And for the FET: 255 PWM value even when it is called that don’t actually do any PWM but only a continuous current level dropping only by the sagging battery?

pilotdog68
pilotdog68's picture
Offline
Last seen: 3 weeks 6 days ago
Joined: 05/30/2013 - 23:31
Posts: 6420
Location: Held against my will in IOWA, USA

cajampa wrote:
7135: 5, 255, 0
FET: 0, 0, 255

Does that mean that at moonlight 7135: 5 there is a 350mah thats PWM’ed to get it to moonlight, and 7135: 255 means it has no PWM even when it is called 255 PWM value? :~

And for the FET: 255 PWM value even when it is called that don’t actually do any PWM but only a continuous current level dropping only by the sagging battery?


Yes, a PWM value of 255 is “Full on” or “Wide open”

PWM value 5 divided by 255 is roughly 2% output, so 2% of 350ma is 7ma output on ‘moon.’ Many people even take it down to 3 PWM for an even lower moon.

My Favorite Modded Lights: X6R, S8 , X2R , M6, SP03

Major Projects:  Illuminated Tailcap, TripleDown/TripleStack Driver

RMM
RMM's picture
Offline
Last seen: 1 month 4 days ago
Joined: 07/23/2013 - 13:47
Posts: 4006
Location: USA

Or even PWM 1.  

Unfortunately PWM percentages don't track directly with 7135 output current.  Remember, some of that PWM signal is being used just to power the 7135, and there is a certain amount of latency in switching on and off.

Mountain Electronics : batteries, Noctigon, and much more! What's new? 

nofearek9
nofearek9's picture
Offline
Last seen: 1 day 8 hours ago
Joined: 07/08/2012 - 08:46
Posts: 1348
Location: Cyprus

5 is the lowest value ? or you can go 1?

pilotdog68
pilotdog68's picture
Offline
Last seen: 3 weeks 6 days ago
Joined: 05/30/2013 - 23:31
Posts: 6420
Location: Held against my will in IOWA, USA

RMM wrote:

Or even PWM 1.  

Unfortunately PWM percentages don’t track directly with 7135 output current.  Remember, some of that PWM signal is being used just to power the 7135, and there is a certain amount of latency in switching on and off.


This ^^^^

I really don’t understand the mechanics of it, but personally I’ve never had an LED light up under 3. I usually use 4 or 5 for my moon modes.

My Favorite Modded Lights: X6R, S8 , X2R , M6, SP03

Major Projects:  Illuminated Tailcap, TripleDown/TripleStack Driver

RMM
RMM's picture
Offline
Last seen: 1 month 4 days ago
Joined: 07/23/2013 - 13:47
Posts: 4006
Location: USA

pilotdog68 wrote:
RMM wrote:

Or even PWM 1.  

Unfortunately PWM percentages don't track directly with 7135 output current.  Remember, some of that PWM signal is being used just to power the 7135, and there is a certain amount of latency in switching on and off.

This ^^^^ I really don't understand the mechanics of it, but personally I've never had an LED light up under 3. I usually use 4 or 5 for my moon modes.

You can go down to 1 with a single 350mA binned 7135.  Sometimes the 380mAs require 2.  

Remember, I'm talking about a single 7135.  As the number of 7135s increases, so does the minimum PWM level required to have them turn on and be stable.  Again, this makes sense when you remember that the 7135s are wired in parallel and powered entirely by the PWM signal.  

Mountain Electronics : batteries, Noctigon, and much more! What's new? 

nofearek9
nofearek9's picture
Offline
Last seen: 1 day 8 hours ago
Joined: 07/08/2012 - 08:46
Posts: 1348
Location: Cyprus

ic ,thanks.

cajampa
Offline
Last seen: 3 years 5 months ago
Joined: 08/01/2014 - 01:55
Posts: 1963
Location: Sweden

Ok, i got it now, the thing that got me thinking that 255 on the FET still was PWM’ed, was that someone in TK firmware repository thread, claimed that it was, and i don’t remember anyone corrected them, so i got confused.

So the 255 PWM signal/value isn’t a PWM at all it, is just a value to tell the chip to go fully open & NOT PWM the output Smile

vestureofblood
vestureofblood's picture
Offline
Last seen: 15 hours 19 min ago
Joined: 08/17/2012 - 15:21
Posts: 1840
Location: Missouri

I have read in other places that getting a set of stars on these is not possible because of space requirements, but I am wandering is there any possible way to squeeze in ONE??   

 

I would like to use the boards in large batches, but having to ground out any of the micro pins from the top totally eliminates the possibility of pre assembly.

In Him (Jesus Christ) was life; and the life was the light of men. And the light shineth in darkness; and the darkness comprehended it not.
http://asflashlights.com/ Everyday Carry Flashlights, plus Upgrades for Maglite.

RMM
RMM's picture
Offline
Last seen: 1 month 4 days ago
Joined: 07/23/2013 - 13:47
Posts: 4006
Location: USA

vestureofblood wrote:

I have read in other places that getting a set of stars on these is not possible because of space requirements, but I am wandering is there any possible way to squeeze in ONE??   

Not sure where you read that, but it is definitely possible (and not even that difficult) to add them.  Most of us have just found them to be superfluous in this type of a driver since you are building it from the ground up anyways.  

Mountain Electronics : batteries, Noctigon, and much more! What's new? 

vestureofblood
vestureofblood's picture
Offline
Last seen: 15 hours 19 min ago
Joined: 08/17/2012 - 15:21
Posts: 1840
Location: Missouri

Hmmmm... I think where I got that impression was from the original BLFDD17 thread, but I suppose I could have misread it.  

That said, AWESOME!       I have a few more details to work out, but I think this is going to work very well for my setups.    Thanks RMM..

In Him (Jesus Christ) was life; and the life was the light of men. And the light shineth in darkness; and the darkness comprehended it not.
http://asflashlights.com/ Everyday Carry Flashlights, plus Upgrades for Maglite.

Tom E
Tom E's picture
Offline
Last seen: 35 min 48 sec ago
Joined: 08/19/2012 - 08:23
Posts: 12408
Location: LI NY

Built my first one of these drivers using the "800" FET (forgot exact P/N), using the T_K blf-a6 program with minor tweaks. It's in a Convoy C8 host, the original one.

I noticed a significant blink when switching between hi/turbo (full out FET only) and moon mode (PWM value of 4 for the 7135 only). Anyone else notice this strange behavior? I know I've seen this before in some troubling drivers - pretty sure it happened with my stock BLF Mini-01 driver.

RMM
RMM's picture
Offline
Last seen: 1 month 4 days ago
Joined: 07/23/2013 - 13:47
Posts: 4006
Location: USA

That's the SIR800DP.  

Regarding the blink---I've seen it before on the BLF10DD/12DD drivers when switching from high to moonlight.  That was with the same firmware though, so I'd try and rule that out first, although I haven't heard of anyone else having issues with it. 

I fixed my problem with a small pulldown resistor (30K) from the gate to ground.  You could try a 22K or 19.1K (you've probably got one on hand) and see how that works.  If it doesn't get rid of it, you could double stack resistors to half the resistance then try again.  

Mountain Electronics : batteries, Noctigon, and much more! What's new? 

Pages