*BLF LT1 Lantern Project) (updated Nov,17,2020)

Is there any chance of using PB0 and PB1 for 3000K and 5000K, and PB4 for USB/opamps? The chip likes having the two PWM channels on PB0 and PB1. I’m hoping for something like this:

                 ----
         Reset -|1  8|- VCC
 (PB3) eswitch -|2  7|- voltage divider (PB2)
   (PB4) opamp -|3  6|- 5000K (PB1)
           GND -|4  5|- 3000K (PB0)
                 ----

Otherwise, the second PWM counter gets involved, and it runs at a different speed, and things get a little weird.

Also, how slow can the PWM signal can be without causing problems? I usually underclock the MCU at low levels to make the bottom of the ramp more efficient, but I’m not sure that’ll work with a linear FET.

If I understand correctly, the 7135 version might be something like this?

                 ----
         Reset -|1  8|- VCC
 (PB3) eswitch -|2  7|- USB enable (PB2)
 (PB4) aux LED -|3  6|- 5000K (PB1)
           GND -|4  5|- 3000K (PB0)
                 ----

I´m in for one!

Thanks for the clarification ToyKeeper :+1:
I actually thougt that we need one of the 7135s to drive the button led :person_facepalming: , I really shouldn’t read this while doing something else…

I didn’t say over. I said average. The midpoint of the voltage of the first ~1200mAh at a low discharge current (which it will be because there are 4 in parallel) is ~4.0V. My numbers were right for the scenario I outlined.

A constant current boost driver can be PWM’d. Some of them can also change the LED drive current without using PWM. As I stated, the use of a boost driver doesn’t cause any tint shift issues that weren’t there before.

I stand corrected

I thought you meant to say that with GA and Vf of 2.82, average efficiency of linear driver would barely scrap 70% over entire discharge.
Now I think you meant over the first 1/3 of discharge.
Is that correct? If no, could you clarify how did you come up with the number? It’s quite different from mine.

Fair enough. The BLF GT uses both methods — current control for 10% to 100% power, and PWM below 10%. But it needs two pins to control one power channel… one for current and one for on/off. That’s what the lantern was going to do while using DEL’s design, before the tint ramping was added.

I’m guessing that a boost design for the lantern would keep the cells in a 4P configuration, but the emitters would be two channels each configured as 2S2P? That should keep the voltages far enough apart for a boost to work. And then instead of burning off excess voltage, the driver’s heat would instead come from voltage conversion.

great discussion over the past few pages, I learned a bunch.

You should try compensating in software instead. You could recover a pin and the drain of the voltage divider. And you no longer need the magic circuitry for VCC either.

wrong a boost driver needs also Vcc 2.8V and voltage divider for the MCU

reason is it needs an analog control voltage to set the output current

to use all solutions with CC+PWM on both channels would simply need an MCU with 7 or more free pins

I trust ToyKeeper’s opinion on stuff like this and based on her list alone, it looks like the AMC driver has more pros than the FET driver.
However, it seems like the majority of votes so far have been for the FET driver. I’m not knowledgeable enough to understand why.

Can anyone explain their reasoning for wanting the FET over the AMC?

I voted before seeing all the details. I still wonder how/if we can be assured of getting the “raptor claw” AMC chips. I am only think I know what I have read on here, and my impression is that one can not guarantee getting these parts in general. But that may be if one is buying in small quantity from Chinese stores. Lexel thought the FET was a better choice, and he has lots of experience designing drivers, so there is something to be said for that as well.

Two established, experienced people, two different points of view. :question:

Good work Toykeeper. Lexel mentioned he can make a prototype or two at a cost, or it may be possible Barry can get one or two built to send to you for testing.

The boost driver is just out of question because of higher costs? What costs are we talking here? 5$? 50$?

Agree on that to go with the the standard FET (or AMC) over a Boost driver for this application, as with four high capacity cells and the lower amp loads the efficiency wont be that big of a concern.

You don’t actually need an extra pin for measuring VCC, have a look at AN2447
This way we could still have the button lighted from the MCU.

Regarding the app note, you don’t even need to use division (which is a lot of code) if all you care about are a couple of thresholds and not the actual VCC value.

TK knows about that trick. It can’t be used if Vcc is regulated.

Ah yes I hadn’t considered that. However, you don’t need to regulate VCC, you only need to regulate the high voltage of the PWM outputs used for the DAC… I’ll have to think about that.

That’s how the code currently works by default. The pin7 voltage divider trick is supported too, but it requires a different config when compiling.

No. I’ve tried. It doesn’t work well at all.

CV-based circuits need a good solid voltage source, and an attiny is not a good voltage regulator.