Polish project: Extended version of Nanjg 105C driver based on Attiny25V

Hi JackCY. I donā€™t know any BLF-VLD driverā€¦ Can You give some links? PWM frequency is around 16kHz. JackCY with all due respect but You must educate more in electronics. How do You want to measure resistance of semicunductor (Attiny MCU). It is completely ridiculous (You measure also resistance of LED diode?) EEPROM is used to write values and counting clicks. EEPROM writes are make not when we switch off the lamp but only when parameters change or sensing click. MCU pins have not usually definited resistance but there are sum of semiconductors parameters and this ā€œresistanceā€ changes depending on measurement conditions (voltage). In measuring voltage on capacitor uses ADC not state of the pin. In my opinion (and opinion of people using this driver) voltage measurement under full load works very well and exact (giving us information about current Li-Ion cell condition). Also temperature protection is very useful (especially for small and powerful 18650 flashlights ā€œ(like here)ā€:EDC/Rower Convoy S6 mod XM-L2 T6 3D - sterownik rozszerzony - www.swiatelka.pl. or here

I like to read technical stuff which I donā€™t understand. Makes me realise how stupid I am!

Blf vld is for budget light forum versatile led driver.
A custom firmware for attiny13. Itā€™s free thatā€™s why jackcy use it.

Jackcy, look for the first thread, he explain how and why he replace the eeprom.
The multiple click is not a problem, DrJones drivers use even more click (better have a reverse clicky).

Bocian modified the 105c hardware so itā€™s clear that he plan to sell that driver. I am already happy with Dr Jones lucidrv (a 105c with programmable mode that he sell without giving the source)

You can find something about it even in your local forum:

http://www.swiatelka.pl/viewtopic.php?p=109336

Is it? On an assembled driver measuring at the place where the capacitor is? How is the resistance for that added capacitor be somehow different once it is there?

Plus all parts have resistance, capacitance, inductance, ā€¦
Some are parasitic and some parts even use these parasitic to a useful degree.

Yeah so with every click as usual.

Canā€™t write when it is off anyway :wink:

Yes. Thatā€™s why I asked.

Ah, ok.

Under load, yes. But normally you measure resting voltage to decide if a battery is charged or discharged.

Have D4/S6, never needed temperature protection for it.

Where here or on the PL site? What is the name of the thread?

OMG :weary: JackCY if you are not able to understand/imagine how this driver works it doesnā€™t mean it has to be failure. It works just fine and everything is described in detalis - first post. And I tell you the truth : this mechanism saves EEPROM writes comparing to typical NANJG driver :slight_smile: . I see You donā€™t know to much about Li-Ion cell parameters. Have You heard about internal resistance of Li-Ion cell? It is an aging, destructive process of Li-Ion cell life cycle. Now, genius answer me: which way of voltage measurement (under load or in resting condiction?) is better to verify internal resistance (wear level) of a battery cell?

Internal resistance is measured under load, surprise I can measure it too.

OMG you, who said it is a failure?
Too many questions for you I guess, not enough praise.

Saves EEPROM, I guess the same way other drivers do. Just maybe not the stock ones but since those are locked and we canā€™t copy them and investigate them we canā€™t tell anyway.

Both readings of a battery can be useful.

There will be added one more function: RESET to factory settings (modes to: 0,15; 10; 32; 100 and temperature for a safety threshold to 60*C). Inovoked by 8-click.Just in case if userā€™s Deregulated settings (and have a trouble to correct set by itself). In few days I will provide pricing.

Bocian, will this driver be available to purchase?

Yes, it will be. Soon.

I think it is a wonderful driver, If they are not too expensive, I'm in for a few when available :-)

There will be also available another, cheaper version of programmable driver based on Attiny13A (everyting like in this project except temperature monitoring and battery cell voltage measurement).

I'm mostly interested in swapping out an Attiny13a for the Attiny25v. Same package size but with 2k memory vs 1k and a temp sensor?

Yes. :)

Yes.

PS. Hi DrJones, nice to see You. You are doing a great job here with Attiny13 :slight_smile:

Uhhh...so why are they not making the 105C's w/ the 25v from the start? Just cost?

EDIT: Or just jump to the 85v?

They donā€™t need it for the simpler programs and cost is different.
Place an order to the factory and they might make it. Itā€™s all about what shops want to sell and buy or order from the factories/distributors.

For DIY most people go with Attiny85 in this package.

Here is the SALES THREAD

Hi Bocian,

thanks :) I spent a lot of hours optimizing code to get all the functionality into the 1kB of ATtiny13. I occasionally used ATtiny25 and 85, also experimented with off-time memory (using a cap and a 100k discharge resistor; yours is the simplest off-time memory setup I've seen; nice idea to use the internal resistance. I'll have to investigate further), but my premises were not to mod the hardware.

I really wish they had used ATtiny25 or better.

However recently I begun to design my own boards, clearly not using the ATtiny13 :) After so many hours of writing compact code, I feel sort of guilty when writing 'expensive' (in terms of program space) lines of code, even though the 85 has plenty of space. :)

How do you make the 0.2% and 0.015%? Just by PWM levels or something more tricky? I found that the real brightness at the lowest PWM levels strongly depends on hardware variations. With some luck I get a nice very low low, the same value in another driver/LED combo (same models) may be much brighter - or won't even light up.