[[ GXB20 Driver – Homemade Constant Current Programmable XHP50 Single-Cell Boost Driver! ]]

204 posts / 0 new
Last post
Agro
Agro's picture
Offline
Last seen: 4 weeks 1 day ago
Joined: 05/14/2017 - 11:16
Posts: 6801
Location: Ślōnsk

Distracted by other things I forgot to thank you for the costs explanation.
So: Thanks!

loneoceans wrote:

Agro wrote:
Flashing? I thought they used BT! Cool idea….does the phone flash back?

It’s a nice idea, I might have to think about it for a future product since it just requires a small photosensor. The only requirement is the additional cost of developing an app (e.g. web-app), define a protocol, and implement it so the light can be programmed using flashing screen of a phone or a computer screen.


I would be happy to help with communication development, both for the app and for the MCU. I do protocols for the living.
loneoceans, this is not just an offer for you, but for anyone willing to get a hand.
loneoceans wrote:

Agro wrote:
Is it possible to do programatically?

No unfortunately not. PFM or FPWM mode is programmed by connecting or floating the mode pin of the boost converter driver IC.


So I guess it would need a switch? It may not be worth it then, though it certainly seems to have uses. It seems that the efficiency is the same at about 700 mA. Lower PFM wins. At 100 mA PWM has ~75% efficiency and PFM ~90%. That’s a massive difference. Surely other losses will make it smaller, but it will probably still be big. Though is it worth the noise? It’s hard to tell without hearing. I strongly suspect that it is worth it for me for the low mode, but not sure about the lowest actually. Because I use the lowest to light up a tent while myself and my woman are preparing to sleep. I believe there may be others who would like the extra efficiency of the low modes. Another use case: low voltage protection could switch to PFM. I think many would like to improve efficiency when they don’t have any spare and the light is already not bright enough.
Texas_Ace
Texas_Ace's picture
Offline
Last seen: 5 days 1 hour ago
Joined: 03/24/2016 - 07:44
Posts: 9353
Location: Everything is brighter in Texas

The programming by flashing method has been tried and proven to work on here in the firmware thread. TK even had some early code that proved it works.

You don’t need many changes on the PCB to make it work either, basically just a trace to the LED- output from the FET to get a voltage reading off of, everything else you have already. I see the flash programming as the future. Complete adjustability and easy implementation in an assembled light.

Mike C
Mike C's picture
Offline
Last seen: 3 days 8 hours ago
Joined: 01/22/2014 - 08:03
Posts: 2578
Location: Sweden

Texas_Ace wrote:
I see the flash programming as the future. Complete adjustability and easy implementation in an assembled light.

How many times do you really need to reconfigure your lights? I don’t get how needing an extra device to change settings that can easily be changed with button presses is something to strive for. What exactly would you want to change with the phone?
Texas_Ace
Texas_Ace's picture
Offline
Last seen: 5 days 1 hour ago
Joined: 03/24/2016 - 07:44
Posts: 9353
Location: Everything is brighter in Texas

The menus only allow for very basic setting changes and they are not that easy to use. First off you are limited to a pre-made set of mode groups. They don’t always have what you want. Then you have to figure out which group it is you want, count out the blinks and hope you get it right.

By flashing it you could set up the mode group exactly like you want, press a button and boom, you know it is exactly what you wanted with no guessing and annoying counting.

Plus as drivers improve we will be able to select many many more options then we do now and having all of those in the flash menu would be silly, not to mention a lot of space used on the menu alone.

For example in the future I see you being able to set the current you want the LED to see in constant current, the PWM that you want to add or subtract from that, the regulation settings, the thermal regulation points and settings, exact mode groups, custom strobe modes and more I have not even thought of yet.

Put simply is the flash programming a 100% must? No.

Is there any reason not to do it? No. You loose nothing by having flash programming except the programming time. I always come at things from a “Why not?” perspective.

Mike C
Mike C's picture
Offline
Last seen: 3 days 8 hours ago
Joined: 01/22/2014 - 08:03
Posts: 2578
Location: Sweden

I don’t count out blinks my self, I press the button X times to enter digits. If you can count it’s very easy.

Adjusting for a specific current is probably overkill for most people. I adjust the light to how ever bright I want it in a ramping style setup. Seems a bit annoying to have to grab the phone if one of the modes turns out to be a little brighter or dimmer than you actually wanted.

I do see advantages by wireless upgrade of firmware, but then you still have to flash the basic “operating system” into the MCU anyway, so why not flash it with what you want from the start? Do people really need a whole bunch of mode groups to choose between? If you have a few, pressing the button the amount of times to select it really is easy.

I know, everyone is different and has their own preferences. I ask these questions because as a hobbyist driver/firmware developer I’m always interested in developing new features if I can find personal use for them, but as it is now I’ll guess I’ll just say “why not?” like you and see what others come up with.

Texas_Ace
Texas_Ace's picture
Offline
Last seen: 5 days 1 hour ago
Joined: 03/24/2016 - 07:44
Posts: 9353
Location: Everything is brighter in Texas

What is lost by having the option for flash programming?

It costs 1 extra trace and 1 pin (of which we have lots of extras on new MCU’s) plus some programming time. I just don’t see the downside. Not like people have to use it but knowing general people, they are 10x more likely to actually change a setting on a flashlight if it has a nice GUI interface then counting out blinks or clicks.

Heck even I will hardly even try to mess with the firmware in most lights, just not worth the hassle in most cases.

Plus if you will have to look up the manual to figure out what setting is what and thus be able to program the light anyways (even having used bistro hundreds of time I still don’t have the menu memorized and have to look up the manual before changing anything), I would rather just pick the settings I want while on the computer / phone anyways and then push a button to have them sent to the light. Save the middle step of me having to manually enter it.

Mike C
Mike C's picture
Offline
Last seen: 3 days 8 hours ago
Joined: 01/22/2014 - 08:03
Posts: 2578
Location: Sweden

Thanks for your answers. I can see some people finding it useful.

So yeah, why not. Go for it.

Ahil
Offline
Last seen: 1 year 3 months ago
Joined: 07/20/2017 - 10:30
Posts: 8
Location: Sydney

Has anyone had any luck with obtaining a boost driver to run an XHP50 from a single 18650?

Considering there are 5000K XHP-50 with CRI of 90+ (eg: SC600Fd Mk III Plus) which give better runtimes and output than the low voltage Nichias, one would assume that demand for a driver of this nature would be quite high

Mike C
Mike C's picture
Offline
Last seen: 3 days 8 hours ago
Joined: 01/22/2014 - 08:03
Posts: 2578
Location: Sweden

Has anyone besides loneoceans actually built one of these?

Barkuti
Barkuti's picture
Offline
Last seen: 3 hours 17 min ago
Joined: 02/19/2014 - 14:46
Posts: 5534
Location: Alhama de Murcia, Spain

Ahil, Kaidomain's H1-A driver? Related: Buck and Boost Drivers, Testing, Modding, and Discussion (Pic Heavy)

By the way, where are those high-CRI XHP50s for sale?

 

Cheers 

Deleting a just published post causes the forum thread answer notification to fail. Thus, if you need to change your just published post, edit it. Thanks.

Please avoid fully quoting lenghty posts, namely with nested quotes. Trim quotes down to the essential. Helps with neatness and legibility. Thanks.

I recommend saying no to Covid vaccine. Listen to your soul. Innocent

The_Driver
The_Driver's picture
Offline
Last seen: 1 month 1 day ago
Joined: 10/20/2016 - 05:51
Posts: 1462
Location: Germany

Ahil wrote:
Has anyone had any luck with obtaining a boost driver to run an XHP50 from a single 18650?

Considering there are 5000K XHP-50 with CRI of 90+ (eg: SC600Fd Mk III Plus) which give better runtimes and output than the low voltage Nichias, one would assume that demand for a driver of this nature would be quite high

But the Nichias have a much better tint, they are not so yellowish…

LightRider
LightRider's picture
Offline
Last seen: 3 years 5 months ago
Joined: 08/05/2015 - 09:52
Posts: 2007
Location: U.P. MI, USA
Mike C wrote:
Has anyone besides loneoceans actually built one of these?

I have loaded the parts list to my cart twice but have not pulled the trigger. It’s a little pricey. If I knew I could get to making it right away I would still do it but not sure when I would get to it.

Mike C
Mike C's picture
Offline
Last seen: 3 days 8 hours ago
Joined: 01/22/2014 - 08:03
Posts: 2578
Location: Sweden

LightRider wrote:
I have loaded the parts list to my cart twice but have not pulled the trigger. It’s a little pricey. If I knew I could get to making it right away I would still do it but not sure when I would get to it.

I have a couple of empty GXB20 first version boards, but I just couldn’t be bothered to build a board based on the 84A and convert Arduino code Sick to C. Now I’ve just taken his schematics and, with some help from Schoki, made a 17mm board with the 1634 instead. Boards are ordered at OSH Park, but would be nice to know if someone else built and tested the circuit before ordering all those components.
Texas_Ace
Texas_Ace's picture
Offline
Last seen: 5 days 1 hour ago
Joined: 03/24/2016 - 07:44
Posts: 9353
Location: Everything is brighter in Texas

Whats the 1634? How does it compare to the 1617?

Mike C
Mike C's picture
Offline
Last seen: 3 days 8 hours ago
Joined: 01/22/2014 - 08:03
Posts: 2578
Location: Sweden

Texas_Ace wrote:
Whats the 1634? How does it compare to the 1617?

It’s available to me, supported by AVRDude and has same footprint as the 841. The 1617 has the same 4×4mm package but pins are tighter because there are 4 more. I don’t need 4 more, and the 4×4mm 20 pin package is tight enough.

I wrote a little about it here: http://budgetlightforum.com/comment/1154244#comment-1154244

hanoilighting208
hanoilighting208's picture
Offline
Last seen: 1 week 5 days ago
Joined: 08/02/2017 - 00:11
Posts: 60
Location: Số 208 Quang Trung, Phường Quang Trung, Quận Hà Đông, TP Hà Nội

Interested ! Easy

Mua ngay den chum trang tri noi that nhap khau tai : https://dentrangtrihanoi.vn/den-chum/

Barkuti
Barkuti's picture
Offline
Last seen: 3 hours 17 min ago
Joined: 02/19/2014 - 14:46
Posts: 5534
Location: Alhama de Murcia, Spain

Mike C wrote:
Texas_Ace wrote:
Whats the 1634? How does it compare to the 1617?

It's available to me, supported by AVRDude and has same footprint as the 841. The 1617 has the same 4x4mm package but pins are tighter because there are 4 more. I don't need 4 more, and the 4x4mm 20 pin package is tight enough.

Soo, new 1634 “brains” but the same old 7135 steam engine which stalls at high PWM frequencies. Featuring:

  • PWM. Facepalm
  • Low efficiency.
  • Early loss of regulation.

 

Deleting a just published post causes the forum thread answer notification to fail. Thus, if you need to change your just published post, edit it. Thanks.

Please avoid fully quoting lenghty posts, namely with nested quotes. Trim quotes down to the essential. Helps with neatness and legibility. Thanks.

I recommend saying no to Covid vaccine. Listen to your soul. Innocent

Mike C
Mike C's picture
Offline
Last seen: 3 days 8 hours ago
Joined: 01/22/2014 - 08:03
Posts: 2578
Location: Sweden

Barkuti wrote:

Soo, new 1634 “brains” but the same old 7135 steam engine which stalls at high PWM frequencies.


This is in a driver thread/discussion about GXB20. Where do you see a 7135 on that? Facepalm
Barkuti
Barkuti's picture
Offline
Last seen: 3 hours 17 min ago
Joined: 02/19/2014 - 14:46
Posts: 5534
Location: Alhama de Murcia, Spain

In that link you posted, Mike C: http://budgetlightforum.com/comment/1154244#comment-1154244

Started to read in there and guess I got carried away. 

 

Deleting a just published post causes the forum thread answer notification to fail. Thus, if you need to change your just published post, edit it. Thanks.

Please avoid fully quoting lenghty posts, namely with nested quotes. Trim quotes down to the essential. Helps with neatness and legibility. Thanks.

I recommend saying no to Covid vaccine. Listen to your soul. Innocent

Pentaprisma
Offline
Last seen: 2 years 2 months ago
Joined: 11/18/2017 - 14:06
Posts: 17

That looks brilliant, just what I’m looking for..!

Is this driver available for sale already? How can I purchase a couple one 17mm and one 20mm…?

andr3w
Offline
Last seen: 6 months 2 weeks ago
Joined: 03/18/2019 - 10:08
Posts: 23

Should bump this with the same question.
Is it (GXB20 V2) available for sale anywhere?

Agro
Agro's picture
Offline
Last seen: 4 weeks 1 day ago
Joined: 05/14/2017 - 11:16
Posts: 6801
Location: Ślōnsk

Sadly, no.
There’s a similar driver from MTN but the last time I checked they were out of stock:
http://www.mtnelectronics.com/index.php?route=product/product&product_id...

andr3w
Offline
Last seen: 6 months 2 weeks ago
Joined: 03/18/2019 - 10:08
Posts: 23

Thank you for the point. Agree, it’s sad there is no option to get subj.
I found only H1-A as an alternative (need 20 mm diameter) and it is too tall (7.5 mm).

Pages