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

Ordered. And to get a solder paste mask? Where do I get the layers Zip file?

I probably wouldn’t sweat it at this point.

I just double checked. The tcream layer in the zip from OSH Park is correct.

Ordered stencils as well, time to double check parts inventory… :slight_smile:

comfy - no sweat really, like wight said. Just interesting in pt of history - could be they used 10 uF caps early on. 10 uF caps are so well proven, I’d feel it would be risky to experiment with lower values, unless it’s a major re-design as wight is doing, of course.
Just fyi, I’ve measured 10’s, 1’s, and 0.1’s uF caps with 2 different DMM’s (Fluke and advanced model UNI-T) and they all measure slightly lower, but pretty consistent in the range, clearly identifiable.

I had no intention to point a finger at someone and I always saw it as minor details - which it probably still is.

The reason I brought it up now and here is that you all thankfully invest a lot of time and effort and I wanted to avoid that you - unknowingly - might use different components and have strange results, be it at the FET, at the OTC or while adapting firmware. I can’t help otherwise with these drivers but I follow with interest.

Alex - didn't look carefully at your v030 til now. Wow, impressive all that fits! Ohhh - is that a MCU pin #3 pad connected, but covered up? I'm really not lik'n soldering a thin wire to pin #3 directly on the v009's for a locator /LVP LED. Looks like I could just scrape off the covering of the pad?

Edit: Debating whether I should order these 030's now or wait til some testing is done. Not sure I followed everything, but have you been able to breadboard/proto/test this out somehow?

See post #352 above.

FWIW, Dale has parts for a few v030s on the way and we’re going to try to experiment to figure out what value resistors and such work best. I assume the OTC resistor, at least, will need some tweaking. Maybe other parts too.

However, feel free to do your own experimenting. It’ll probably be faster if you do it since the hardware and software parts of your brain don’t have to use email to talk to each other. :slight_smile:

Hhmmmm. I can probably get most parts from here @work, but not sure yet. I looked more carefully at Alex's tests in port #352 (thanks David, my bad!).

K, I'm a little confused, got some Q's:

  • this should handle high PWM rates, like 15K?
  • looks like there's ringing on the (2) line. Is that because of long LED wires or something else? Is that a bad thing or good/ok?

I'll just go ahead and order boards - $2.20 is no problem at all - feel like I'm ripping them off anyways... I'll be testing on an 85 and not interesting in OTC.

Oops, sorry I didn’t reply Tom E - I saw your post earlier and meant to. :-x

  • As far as PWM, this is no different from earlier revisions. Were there any particular changes or comments that brought on the question?
  • The ringing is on BAT+. I suppose that it’s due to inductance in the battery/LED wires?
  • I agree, every time I order a 17mm or less board I feel like I’m getting a steal from OSH Park. Hopefully we serve some useful function for them! :wink:

OK, apparently what I have on hand isn’t that powerful! I hooked up the only triple PCB I have, which is a triple XP-G2. I used it with the highest drain cell I have, a heavily used Samsung INR18650-15M. This setup was only good for 10.3 amps as measured with a clamp meter.

That said, I produced a couple of scope images and played around a bit. These shots are in a low mode, I failed to take pictures of medium modes.

This is the same driver build from post #352 but with some wiring changes (in addition to the LED change):

  1. I changed the battery wiring to ~200mm total of 18awg.
  2. I changed the LED wiring to the 22awg included with the triple.
  3. I soldered on new test points for the scope probes.

Channel order is

  1. BAT+ from spring side of driver.
  2. MCU VCC measured at C1.
  3. FET Gate measured at gate pin.

We can see that MCU VCC reached a safe-for-the-MCU 5v which is nonetheless very high considering that it’s attached to a 4.3v zener with no load resistor! I speculate that the Zener may die an early death like this. We’ll have to try and figure out the peak and average current it’s seeing. Gate looks pretty clean to me, with a bit of badness on the turn-off that we can probably clear up with the pulldown resistor. BAT+ reaches crazy high voltages. The second shot is on a 2v/div scale and shows a crazy high B+ spike of 8v from a single cell! This spike did get a volt or two worse in medium modes.

I’ll see about adding a gate pulldown resistor and testing with that.

When I’ve done realtime voltage monitoring on a FET-only board (Ferrero Rocher), I’ve gotten pretty big variability on voltage depending on the exact timing of the ADC reading. For a realtime display it’s actually not such a bad thing, since it makes the indicator flicker at a varying rate according to voltage. So, it actually provides more of a fine-grained indicator due to the spikes being out of phase with the measurements.

This also affects LVP, but it’s not usually an issue because LVP uses a heavy lowpass filter and because the spikes aren’t very big at low voltage.

For non-realtime displays it works well to shut off the emitter, wait a short while, then take and average some measurements.

I think the only worrisome impact of the spikes is whether it might damage or reset driver components. The MCU actually does pretty well dealing with the spikes as long as they’re not high enough to cause a reset.

If we go with Halo’s idea to eliminate the voltage measurement pin (and voltage divider parts) in favor of the VCC/Vref method, the VCC spikes may become more meaningful to the MCU. I give it only a 50/50 chance of mattering though, for the same reasons the non-fatal spikes don’t matter much on current designs.

The BAT+ spike looks a little scary. I wonder if that could damage the emitters over time. Dale has mentioned that some of his lights don’t measure up to their original performance any more, and this might explain why.

While the B+ spikes may certainly be doing something bad to the LED, I’d say that other factors probably weigh in more heavily. Dale’s shown that things such as batteries, bypasses, clean lenses, etc can have big effects. With all that ruled out my vote is on the heavy currents put into the LED: the LED has thermal resistance between the die and the thermal pad and there’s no getting away from it. More heat will result in an elevated die temp which I suspect will degrade the LED much more quickly than at Cree’s maximum currents. That said, I certainly don’t know. I’d love to eliminate as much bad behavior as possible, including the voltage spike on B+.

This PCB (v030) is not compatible with Halo’s idea. Click through and take a close look at the first graph since it’s easier to read. Each division is 1 volt and zero is 1 division above the bottom (where the little yellow/orange tags are). In post #365 the MCU trace is aqua colored. Note that Halo’s idea is to determine MCU VCC, but as we can see MCU VCC is never similar to B+ voltage. Instead, VCC starts at ~4v and then bounces up to 5v and tapers back off.

I’m impressed with DEL’s results from post #648 here and plan to try out an RC snubber.

I implemented an RC snubber using 10nF and 4.7ohms and got similar results to those DEL showed: ringing was removed but the peak voltage on B+ remained pretty similar.

Maybe try a freewheeling diode next?

Try the two-10uF setup, one before & one after D1. That helps with the bounce at B, and also allows a tiny bit of boosting at Vcc (but with B flatter, the boosting is kept below critical levels).

Well, I built a v009 today to install into a light I need to get rid of… and sure enough I ran into the “bright flash” issue you’ve been talking about Tom E. I didn’t do any measurements - I just installed a 0803 12k resistor as a gate pulldown (as you suggested). Problem solved. Thanks!

Yes, it’s just an idea for potential future use. It might be nice to get rid of the need for the voltage divider, assuming the idea would work as intended. It would only work on 1-cell lights, and only on tiny25/45/85, but if those limitations are okay it might free up a little board space for other things.

Gotcha, just wanted to make sure we were on the same page.

(quoted a bit out of order :wink: ) Bad news! I think that v030 should be usable for myself / DB Custom / Tom E… but I did make a mistake and forget about it when those two asked whether the boards were usable. I forgot to hook the 7135 up to LED-.

I reflashed my own built-up v030 board several times before the problem occurred to me. I just couldn’t get moon to light up at all…. of course not, it was on the 7135! I bridged the connection with a small piece of solid wire from a component lead and it works fine. The good news is that the stencils won’t change for v031, no pads have moved. :slight_smile:

Here is v031: OSH Park ~

Other topic: I do plan to revamp the spring side again. The current spring pads don’t seem to be a good match for the springs I’ve got. I’m open to input on spring sizes! Scraping’s always an option, but I’d like to accommodate 2-3 common sizes. My initial thought is [Nanjg-105 size], [common medium springs like the gold plated ones from MTN/Intl-Outdoor & the cheap Phosphor Bronze ones from Simon/etc], [big size? Like the ones djozz had made?].

And R1/R2 are still labeled in reverse?

Crap, yes.