Texas Avenger "TA" Driver series - Triple channel + Bistro or Narsil + Clicky or E-switch - The Ultimate open source driver!

Yup, well done. Now I can take this off my to-do list :slight_smile:

Life just keeps getting better …
sixty ? did you say sixty ?
you need to pick up the pace pal

LOL, I actually have no idea how many I have at the moment, I know it is at least 60. If you add in all the small 9 led style lights it is a fair amount more but I don’t really count those generally.

I like the curmudgeon in you that says …“why don’t they all just work like I want them to ? ”

….If it ain’t broke ….Fix -it …

+ it takes 12 of the nine 5mm led lights to equal one real light

Well, it depends on what you consider a real light. For me, it would have to be probably at least twice that many. If you want ~1000lm OTF, you’d need at least three times (36 lights).

There are 1 or 2 little things that I have learned that you may or may not find helpful, but it require a bit more work on your part and I don’t want to start nit-picking against your desire. They aren’t necessary for proper function.

LOL, well I am not going to rip apart all my old lights to put these drivers in them, just the ones I use the most. These are mostly for the new lights I build, this way I can have a standard driver to build lights with.

Do feel free to point out anything you have noticed. Got to learn someplace. Never worked with boards this small before so there are a lot of learning curves to experience.

Have you uploaded to Osh/your fab to see how they render it yet? Especially with text on the silks, Osh tends to shift them around for some reason and they get all messed up.

Also, I learned personally and through Mattaus’ Eagle tutorials, a lot of footprints you find for the AMC7135 (whatever package it is) aren’t completely correct and cause a bad fit when building. You may want to double check the pad sizes/locations.

I did indeed try uploading it to OSHpark, far as I can tell there is no change from the design spit out by Diptrace. I just checked it again and I could not see any differences in either the traces or silk screen, except the logo looks a bit lower resolution on oshpark but that is to be expected.

I will double check the pad spacing for the 7135, I just redid the pad sizes yesterday with measurements from the ones I have on hand here after it was brought up by DEL. Luckily diptrace makes that easy and automatically adjusts them all if a change is needed. (yeah, I know I am hyping on diptrace but I would never have appreciated it if I had not tried eagle first lol)

I just checked the pad sizes and spacing again with a 7135 I have here. Everything lines up perfectly with a bit of overhang on all sides according to my calipers.

Maybe it is just an issue with eagle?

I don’t think it is an Eagle thing necessarily, just the source of where the footprint came from. You just must of had a good footprint to start with.

diptrace sounds pretty cool though!

edit: the issue with the silks probably is Eagle, if that’s what you were referring to

Really nice work TA. Love the organic layout. I haven’t been keeping up on driver ciruits. So I may have missed recent developments. I’m curious about the voltage divider being fed by R5. Doesn’t that make the cumulative resistance of 9.4 26.7 22,004.7 ohms after passing R2 R1?

Power to the MCU also goes through R5 (and then the polarity protection diode). What is the purpose for R5? I’m certain you have it there for good reason. I’m probably not aware of issues that it must remedy.

EDIT: Fixed error.
EDIT2: Fixed another error. Brain fart. Not really a difference from 22K.

Nice work!

Can you explain that a little bit more? Why would you use 220k and 47k for e-switch lights?

Very possible, I just picked a random component with the footprint, guess I got lucky.

Thanks, it was a learning experience but a fun one that I think turned out pretty good.

Far as the questions about the circut, like I said in the OP, it is not mine, it is blatantly stolen from DEL and all the people before him. He would be the one to ask about all of that.

You can see the discussion on it in this thread: Attiny25/45/85 FW Development Thread

Basically these changes came about when DEL was scoping out the new Q8 driver, he determined that these changed provided a much more stable and reliable driver overall as it was getting some nasty voltage spikes with the classic circuit.

This is actually something that TomE has been doing, it drastically reduces the parasitic drain when the light is off by a factor of 10x.

Thanks. That helped. You summed it up nicely.

I’m a total ditz. I just realized the cummulative resistance would be 22,004.7 ohms. Not really a difference from 22K ohms.

Looking good TA!

This animation from the tiny25/45/85 thread shows the impact of R5. Its main purpose is to prevent wiring inductance from ringing together with C1 when the FET is PWMed (or in fact every time it is switched off). Yellow is the voltage at pin 8 of the MCU:

The Q8 driver ‘stock’ BOM already had some refinements added to the basic DDm driver circuit (R4 and C2). But R5 made all the difference.

^
Thanks DEL. You’ve obviously been doing some meticulous testing and problem solving. Much appreciated :slight_smile:

Honestly I intended to do this long time ago. Just never took the time. It is also not obvious setting up something that electrically looks like a high-power flashlight, but is simple to probe, power (with cells, not a power supply) and monitor.