[retired] [WIP] 20mm single sided & 17mm double-sided ?-amp linear driver - surprisingly good!

207 posts / 0 new
Last post
wight
Offline
Last seen: 1 year 4 months ago
Joined: 11/27/2013 - 16:40
Posts: 4969
Location: Virginia, USA

pilotdog68 wrote:
I’m sure it hasn’t been tested, but do you have any expectation for what parasitic drain might be if used as momentary?
Mostly acceptable with 1s, not acceptable with the Zener installed (2s / MT-G2 etc).

Still fine, still on a break. One day I’ll catch up with you folks! previous wight catchup Wink
list of my drivers & variants (A17DD, FET+1 stuff, WIP stuff, etc)

pilotdog68
pilotdog68's picture
Offline
Last seen: 3 months 1 week ago
Joined: 05/30/2013 - 23:31
Posts: 6422
Location: Held against my will in IOWA, USA

I would just be using 1 cell. You think it would be about the same as a 105c?

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

Major Projects:  Illuminated Tailcap, TripleDown/TripleStack Driver

wight
Offline
Last seen: 1 year 4 months ago
Joined: 11/27/2013 - 16:40
Posts: 4969
Location: Virginia, USA

Yes, that is my expectation.

Still fine, still on a break. One day I’ll catch up with you folks! previous wight catchup Wink
list of my drivers & variants (A17DD, FET+1 stuff, WIP stuff, etc)

LinusHofmann
LinusHofmann's picture
Offline
Last seen: 2 years 2 weeks ago
Joined: 09/28/2013 - 08:27
Posts: 974
Location: Switzerland

I’m still waiting on my OSHpark boards so I’ll be keeping a keen eye on how your testing goes!
Cheers

pilotdog68
pilotdog68's picture
Offline
Last seen: 3 months 1 week ago
Joined: 05/30/2013 - 23:31
Posts: 6422
Location: Held against my will in IOWA, USA

Quote:
I’m still waiting on my OSHpark boards so I’ll be keeping a keen eye on how your testing goes!
Cheers


I plan to build it tonight after work. I’m still a novice at all of this, so if I have any issues you can be sure it will get posted here!

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

Major Projects:  Illuminated Tailcap, TripleDown/TripleStack Driver

RMM
RMM's picture
Offline
Last seen: 1 year 5 months ago
Joined: 07/23/2013 - 13:47
Posts: 4006
Location: USA

With the PWM frequency at 1 Khz, what do you see on the output?  Is it still pretty smooth?  I still find it intersting that the 9.4 kHz runs so well in the M6, but it's got to have something to do with the component network that feeds the 7136 its PWM signal.  

I also have not found the parasitic drain to be objectionable.  

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

pilotdog68
pilotdog68's picture
Offline
Last seen: 3 months 1 week ago
Joined: 05/30/2013 - 23:31
Posts: 6422
Location: Held against my will in IOWA, USA

In STAR Momentary, do the ALT_modes need to match the regular modes? Or do I just comment them out?

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

Major Projects:  Illuminated Tailcap, TripleDown/TripleStack Driver

RMM
RMM's picture
Offline
Last seen: 1 year 5 months ago
Joined: 07/23/2013 - 13:47
Posts: 4006
Location: USA

pilotdog68 wrote:
In STAR Momentary, do the ALT_modes need to match the regular modes? Or do I just comment them out?

The ALT_modes are for the ALTernate, or secondary PWM out.  If you're only using a single PWM output, then leave them commented out.  

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

pilotdog68
pilotdog68's picture
Offline
Last seen: 3 months 1 week ago
Joined: 05/30/2013 - 23:31
Posts: 6422
Location: Held against my will in IOWA, USA

RMM wrote:

pilotdog68 wrote:
In STAR Momentary, do the ALT_modes need to match the regular modes? Or do I just comment them out?

The ALT_modes are for the ALTernate, or secondary PWM out.  If you’re only using a single PWM output, then leave them commented out.  


Right, so does this driver use the ALT, or just the primary? Sorry, my question wasn’t clear.

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

Major Projects:  Illuminated Tailcap, TripleDown/TripleStack Driver

RMM
RMM's picture
Offline
Last seen: 1 year 5 months ago
Joined: 07/23/2013 - 13:47
Posts: 4006
Location: USA

You can see that the PWM output is on Pin 6, so the normal output is what is being used.  

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

wight
Offline
Last seen: 1 year 4 months ago
Joined: 11/27/2013 - 16:40
Posts: 4969
Location: Virginia, USA
RMM wrote:

With the PWM frequency at 1 Khz, what do you see on the output?  Is it still pretty smooth?  I still find it intersting that the 9.4 kHz runs so well in the M6, but it’s got to have something to do with the component network that feeds the 7136 its PWM signal.  

I also have not found the parasitic drain to be objectionable.  

  • Here is what I recall from my last testing with the scope (I’ve never placed one of these in an actual flashlight). The waveform is stretched out a lot of course. Output is still pretty smooth, especially at low levels where (as I’ve mentioned) PWM appears to bring arbitrary output levels rather than ones which are really based on the set current + PWM duty cycles. At the higher PWM levels it’s easier to see what’s going on (eg the waveform isn’t actually stretched out, but rather less chopped off than at lower freq. I did not see anything which seemed like it would definitely be a problem.
  • I am confident that it is not “something to do with the component network that feeds the 7136”.
    A. Your normal M6 mod bypasses that entire network: the “P” pad is attached directly to the 7136’s.
    B. The driver in this thread works fine at 9.6Khz with the DTU30N02 pulled from the M6 driver.
    Therefore the issue is entirely with FET selection…

Still fine, still on a break. One day I’ll catch up with you folks! previous wight catchup Wink
list of my drivers & variants (A17DD, FET+1 stuff, WIP stuff, etc)

LinusHofmann
LinusHofmann's picture
Offline
Last seen: 2 years 2 weeks ago
Joined: 09/28/2013 - 08:27
Posts: 974
Location: Switzerland
wight wrote:
B. The driver in this thread works fine at 9.6Khz with the DTU30N02 pulled from the M6 driver. Therefore the issue is entirely with FET selection…

Ah that’s cool to hear I was a bit worried about the 1khz only part of this driver. This fet looks like a good option for my particular usage since when it comes to fet size, the bigger the better. Silly
Is there a known source for this mosfet that isn’t from an m6 driver? I can’t seem to find it available at the usual places, ie farnell, mouser or digikey.

wight
Offline
Last seen: 1 year 4 months ago
Joined: 11/27/2013 - 16:40
Posts: 4969
Location: Virginia, USA

No known source. I see the Silly smiley, but just to be clear: bigger is not better. Bigger is because it’s an older, less advanced, higher thermal resistance package.

Still fine, still on a break. One day I’ll catch up with you folks! previous wight catchup Wink
list of my drivers & variants (A17DD, FET+1 stuff, WIP stuff, etc)

LinusHofmann
LinusHofmann's picture
Offline
Last seen: 2 years 2 weeks ago
Joined: 09/28/2013 - 08:27
Posts: 974
Location: Switzerland
wight wrote:
No known source. I see the Silly smiley, but just to be clear: bigger is not better. Bigger is because it’s an older, less advanced, higher thermal resistance package.

Argh too bad…and yes of course bigger is only sorta better for my particular scenerio where it’s easier for me to mount onto a heatsink and airwire to the rest of the driver.
Those tiny little LFPAK fets are quite remarkable and will work also, as long as I don’t drop them and lose them while installing that is… Wink

wight
Offline
Last seen: 1 year 4 months ago
Joined: 11/27/2013 - 16:40
Posts: 4969
Location: Virginia, USA

Don’t forget that there’s no reason not to use led4power’s expander PCB w/ this driver: https://oshpark.com/profiles/led4power

Of course that big copper pour must be electrically isolated from your heatsink!

Still fine, still on a break. One day I’ll catch up with you folks! previous wight catchup Wink
list of my drivers & variants (A17DD, FET+1 stuff, WIP stuff, etc)

pilotdog68
pilotdog68's picture
Offline
Last seen: 3 months 1 week ago
Joined: 05/30/2013 - 23:31
Posts: 6422
Location: Held against my will in IOWA, USA

So am I the first non-Wight person to fully assemble it? It was a piece of cake to assemble, but I must not have the FW right, because it only lights up on turbo. Here is my source file.

sorry for the blurry cell-phone pic

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

Major Projects:  Illuminated Tailcap, TripleDown/TripleStack Driver

nitro
nitro's picture
Offline
Last seen: 3 weeks 6 hours ago
Joined: 05/22/2011 - 13:32
Posts: 2706
Location: ohio

mine is all in the mail should be here any time soon

wight
Offline
Last seen: 1 year 4 months ago
Joined: 11/27/2013 - 16:40
Posts: 4969
Location: Virginia, USA

You didn’t share that file properly, I get the “You need permission” message.

Just keep dropping the freq until it works.

EDIT: Build looks good BTW.

Still fine, still on a break. One day I’ll catch up with you folks! previous wight catchup Wink
list of my drivers & variants (A17DD, FET+1 stuff, WIP stuff, etc)

wight
Offline
Last seen: 1 year 4 months ago
Joined: 11/27/2013 - 16:40
Posts: 4969
Location: Virginia, USA

Thanks for posting your code. I think there is what I would consider a minor regression redundancy of stuff in this version. I’ll take a closer look when I’m more on point.

Please comment out “#define FAST_PWM_START” and then change this line:

“TCCR0A = 0×23; // phase corrected PWM is 0×21 for PB1, fast-PWM is 0×23”

to read like this:

“TCCR0A = 0×21; // phase corrected PWM is 0×21 for PB1, fast-PWM is 0×23”

Still fine, still on a break. One day I’ll catch up with you folks! previous wight catchup Wink
list of my drivers & variants (A17DD, FET+1 stuff, WIP stuff, etc)

pilotdog68
pilotdog68's picture
Offline
Last seen: 3 months 1 week ago
Joined: 05/30/2013 - 23:31
Posts: 6422
Location: Held against my will in IOWA, USA

wight wrote:
You didn’t share that file properly, I get the “You need permission” message.

Just keep dropping the freq until it works.

EDIT: Build looks good BTW.

I fixed my link.. I think.. and fixed an obvious error in the FW, but now it appears as if moon is missing. The FW has Moon>L>M>T, but it I am only seeing three modes. It is lighting up on Medium and Turbo, but nothing on low.
So you’re saying to take it from :8 to :64?
………….
Oops, missed your last post

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

Major Projects:  Illuminated Tailcap, TripleDown/TripleStack Driver

pilotdog68
pilotdog68's picture
Offline
Last seen: 3 months 1 week ago
Joined: 05/30/2013 - 23:31
Posts: 6422
Location: Held against my will in IOWA, USA

wight wrote:
Thanks for posting your code. I think there is what I would consider a minor regression redundancy of stuff in this version. I’ll take a closer look when I’m more on point.

Please comment out “#define FAST_PWM_START” and then change this line:

“TCCR0A = 0×23; // phase corrected PWM is 0×21 for PB1, fast-PWM is 0×23”

to read like this:

“TCCR0A = 0×21; // phase corrected PWM is 0×21 for PB1, fast-PWM is 0×23”

I tried the “TCCR0A = 0×21” and I upped moon from 3 to 5 pwm, and there appear to be no changes since my last post. 3 modes, one of them doesn’t light.
Rev 3 code

Update: I also just tried setting “TCCR0B = 0×03” and moon PWM to 8. Again, no changes.

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

Major Projects:  Illuminated Tailcap, TripleDown/TripleStack Driver

RMM
RMM's picture
Offline
Last seen: 1 year 5 months ago
Joined: 07/23/2013 - 13:47
Posts: 4006
Location: USA

Up the PWM levels a bit.  The response curve isn't the same as 7135s or normal FETs.

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

wight
Offline
Last seen: 1 year 4 months ago
Joined: 11/27/2013 - 16:40
Posts: 4969
Location: Virginia, USA

Ah, sorry. I didn’t think about / notice the low moon mode you were using. That won’t work! Wink

… Crap, that took forever. I couldn’t find where I posted on the subject! (Post #45.)

I’d start with around 10 to 15 and work from there.

Still fine, still on a break. One day I’ll catch up with you folks! previous wight catchup Wink
list of my drivers & variants (A17DD, FET+1 stuff, WIP stuff, etc)

pilotdog68
pilotdog68's picture
Offline
Last seen: 3 months 1 week ago
Joined: 05/30/2013 - 23:31
Posts: 6422
Location: Held against my will in IOWA, USA

Ok I tried it with this code.
Modes L>M>H>T with PWM levels at 20, 50, 100, 255
Still acts like there are three modes, but only two of them light up. very strange.

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

Major Projects:  Illuminated Tailcap, TripleDown/TripleStack Driver

wight
Offline
Last seen: 1 year 4 months ago
Joined: 11/27/2013 - 16:40
Posts: 4969
Location: Virginia, USA

pilotdog68 wrote:
Ok I tried it with this code.
Modes L>M>H>T with PWM levels at 20, 50, 100, 255
Still acts like there are three modes, but only two of them light up. very strange.
Well, just keep going upwards until you get something.

EDIT: I see now that you are saying that you’ve added a mode. Hmm.

Still fine, still on a break. One day I’ll catch up with you folks! previous wight catchup Wink
list of my drivers & variants (A17DD, FET+1 stuff, WIP stuff, etc)

pilotdog68
pilotdog68's picture
Offline
Last seen: 3 months 1 week ago
Joined: 05/30/2013 - 23:31
Posts: 6422
Location: Held against my will in IOWA, USA

My eyes need a break. I’ll take another stab at it tomorrow afternoon.

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

Major Projects:  Illuminated Tailcap, TripleDown/TripleStack Driver

wight
Offline
Last seen: 1 year 4 months ago
Joined: 11/27/2013 - 16:40
Posts: 4969
Location: Virginia, USA

pilotdog68 wrote:
My eyes need a break. I’ll take another stab at it tomorrow afternoon.
Good luck. Programming 4 modes and only getting 3 does not sound like a hardware problem. In fact, it kind of sounds like it didn’t flash at all…

Still fine, still on a break. One day I’ll catch up with you folks! previous wight catchup Wink
list of my drivers & variants (A17DD, FET+1 stuff, WIP stuff, etc)

pilotdog68
pilotdog68's picture
Offline
Last seen: 3 months 1 week ago
Joined: 05/30/2013 - 23:31
Posts: 6422
Location: Held against my will in IOWA, USA

Well, it has always had 4 modes, I just replaced moon with high. There has been no change in results from the last 3 fw revisions, so I thought maybe it wasn’t actually flashing it. This last time I erased it completely, then took the clip off and made sure the chip was actually clear before flashing rev5. Didn’t make any noticeable difference.

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

Major Projects:  Illuminated Tailcap, TripleDown/TripleStack Driver

wight
Offline
Last seen: 1 year 4 months ago
Joined: 11/27/2013 - 16:40
Posts: 4969
Location: Virginia, USA

pilotdog68 wrote:
Well, it has always had 4 modes, I just replaced moon with high. There has been no change in results from the last 3 fw revisions, so I thought maybe it wasn’t actually flashing it. This last time I erased it completely, then took the clip off and made sure the chip was actually clear before flashing rev5. Didn’t make any noticeable difference.
Maybe you are flashing the same hex file over and over?

Still fine, still on a break. One day I’ll catch up with you folks! previous wight catchup Wink
list of my drivers & variants (A17DD, FET+1 stuff, WIP stuff, etc)

pilotdog68
pilotdog68's picture
Offline
Last seen: 3 months 1 week ago
Joined: 05/30/2013 - 23:31
Posts: 6422
Location: Held against my will in IOWA, USA

I’m rebuilding it with each iteration, but if you don’t see something wrong with my code, that is still my best guess. Maybe there’s something weird going on with the avr tools cache. We’ll find out tomorrow.

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

Major Projects:  Illuminated Tailcap, TripleDown/TripleStack Driver

Pages