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

Welcome to the forum , Bocian .

This project of yours is very interesting . Thanks for sharing .

Your driver has a few nice features. I like the two way navigation and have one question:

Would it be possible to get a seqence like: 32%, 100%, 0,15% or must the lowest mode on position one and the highest mode on the last position?

Is there a possibility to translate your forum directly to another language (with a switch button - I don't notice one) or should I use google translation?

I think he wants to sell that driver (and I won’t blame him for that, just keep the price reasonable).
Remind me a lot of DrJones custom Nangj driver but he also moded the hardware. I replaced the driver of a Convoy S2 with DrJones lucidrv and it’s now my EDC, everytime with me, changing mode is so so nice.
How fast exactly is PWM? (drjones drivers are 18kHz).

Sounds really interesting. If the price is reasonable, I’m in for testing :slight_smile: Now I’ll have to find new hosts…Maybe the new Solarforce L2D

You can program mode loop as You will. For example 100, 32,18, 0,02 or 100, 0,15,100,0,15 (in this case only two usable modes) and always can change/manage it by 6-click. There are plenty of capabilities. I didn’t mention about mode memory. After min. 0,5sec. (or any longer) OFF driver next time will start in previously used mode. We can disable mode memory by making short like on the photo below (after OFF start always from first mode in loop):

For choosing memory mode, maybe it’s better to be able to choose by clicking and not by soldering and be able to lock a mode, for morse transmission.

When will this driver available for purchase? Can you provide pricing?

Please excuse my manners. Welcome to the forum Bocian.

Welcome!

Great work, thanks for sharing.

Welcome to BLF!

What is the difference compared to BLF-VLD programmable?

Do you still use eeprom or how did you avoid using eeprom to save it?

The UI is quite complicated, unnecessarily. I thought you said:

This is not simple and using some tons of clicks to set things is way far from intuitive.
It’s like having a cheat sheet nearby to reprogram it by clicks.

Is actually the incorrect way to measure battery voltage if you measure it at 100% load on the output.

Temperature monitoring of ATtiny, practically useless. For applications where one needs it a more robust way of measuring is safer and relying on a MCU temperature instead of LED temperature could be disastrous in those applications.

The capacitor values are also confusing, my ATtiny’s have resistance there (3 samples, all pins) 66kOhm so something like 1uF would hold high state for 0.09s = 90ms. Not 1000ms.
If it would be 4.7uF and 10uF then it is believable and seems correct.
Or if the resistance would be 660kOhm.

What resistance do your I/O pins show when off power? (Negative of your meter has to go on ground, otherwise it turns to be 27kOhm for me.)
Are the capacitors really 470nF and 1uF or 4.7uF and 10uF?

And a correct link.

Also what is the PWM frequency? Plan to release code or sell drivers?

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.