Author Topic: Miniature LED driver based on a BPS BP9021 chip  (Read 15806 times)

0 Members and 1 Guest are viewing this topic.

Offline ym58Topic starter

  • Regular Contributor
  • *
  • Posts: 116
  • Country: fr
Miniature LED driver based on a BPS BP9021 chip
« on: July 22, 2015, 12:21:02 pm »
I have recently purchased in CN (ebay object #231497809833) a pair of 1 .10USD led drivers made with a BP9021 chip (BPS).


Literature on the chip or the 2 sq.cm (0.3 sq.in) PCB does not abound on the internet but at least I got hold of a circuit diagram :


Anyone here could comment on how this chip works ?
« Last Edit: July 22, 2015, 12:34:29 pm by ym58 »
 

Offline sleemanj

  • Super Contributor
  • ***
  • Posts: 3024
  • Country: nz
  • Professional tightwad.
    • The electronics hobby components I sell.
Re: Miniature LED driver based on a BPS BP9021 chip
« Reply #1 on: July 22, 2015, 12:35:04 pm »
~~~
EEVBlog Members - get yourself 10% discount off all my electronic components for sale just use the Buy Direct links and use Coupon Code "eevblog" during checkout.  Shipping from New Zealand, international orders welcome :-)
 

Offline ym58Topic starter

  • Regular Contributor
  • *
  • Posts: 116
  • Country: fr
Re: Miniature LED driver based on a BPS BP9021 chip
« Reply #2 on: July 22, 2015, 12:49:39 pm »
yes, of course I had seen this video ... I made a few researches before posting here  :P

this guy "bigclivedotcom" is certainly knowledgeable generally speaking but lacks confidence on this very specific PCB (and chip) !
looks like he's discovering the thing while shooting his video  :blah:...
---
I am sure one or two guys here on EEV have already tackled this circuit, technically speaking.
 

Offline miguelvp

  • Super Contributor
  • ***
  • Posts: 5550
  • Country: us
Re: Miniature LED driver based on a BPS BP9021 chip
« Reply #3 on: July 22, 2015, 06:52:16 pm »
 

Offline Yansi

  • Super Contributor
  • ***
  • Posts: 3893
  • Country: 00
  • STM32, STM8, AVR, 8051
Re: Miniature LED driver based on a BPS BP9021 chip
« Reply #4 on: July 22, 2015, 07:02:11 pm »
That is not a filter circuit, thats voltage spike protection circuit. The leakage inductance of the xformer makes voltage to overshoot on the primary side.

The circuit is nothing more than a simple voltage clamp. The RC time constant is something about 5 times the switching period (to dissipate the overshoot energy quickly enough not to charge the cap up too much), designed by selecting the resistor first according to the primary reflected voltage and power to be dissipated on the resistor. Then tha capacitance is calculated for desired time constant as mentioned above.

The DRC circuit can be replace better by unipolar transil with a diode in series. For price reasons, the chinese manufacturer probably didn't bother with these components (they cost money) and the power msofet switch is usually avalanche rated (reacts as zener diode when overvoltage). It is relatively fine omitting the DRC circuit, unless there is too much power dissipation in the power switch device. And it also really does not help the service life of the thing.

And just note about efficiency: The RC circuit is the least effective - it wastes power even if there ar almost/no spikes. The solution with TVS diode is more costly (few cents) than the DRC, doesn't waste much power (dissipates only the spike energy) if properly selected TVS voltage and the solution with no overvolt protector is the most efficient of them, because it clamps only the spikes that are over the absolute max of the power switch. (But I generaly don't suggest you to design flybacks like that).
« Last Edit: July 22, 2015, 07:06:52 pm by Yansi »
 

Offline mmagin

  • Frequent Contributor
  • **
  • Posts: 610
  • Country: us
Re: Miniature LED driver based on a BPS BP9021 chip
« Reply #5 on: July 22, 2015, 07:26:15 pm »
I wonder what the primary/secondary isolation on that is good to!

I've thought it would be a fun project to build my own hi-pot tester that ramps from 0 to 5kv with a preset leakage current to shutoff at (and record the voltage it reached).  Sure I could buy one, but it's not something I really 'need', and it's a fun high voltage project.  And then I could test all this cheap stuff around and see how good it is.
 

Offline ym58Topic starter

  • Regular Contributor
  • *
  • Posts: 116
  • Country: fr
Re: Miniature LED driver based on a BPS BP9021 chip
« Reply #6 on: July 22, 2015, 07:41:51 pm »
Datasheet of similar chip:
http://www.bpsemi.com/pdf/BP3122/BP3122_EN_DS_Rev%201.1.pdf
Finally, a datasheet in English, I am a lucky man ... thanks for the link  :)
 

Offline Yansi

  • Super Contributor
  • ***
  • Posts: 3893
  • Country: 00
  • STM32, STM8, AVR, 8051
Re: Miniature LED driver based on a BPS BP9021 chip
« Reply #7 on: July 22, 2015, 07:44:52 pm »
Have you read my post?
 

Offline ym58Topic starter

  • Regular Contributor
  • *
  • Posts: 116
  • Country: fr
Re: Miniature LED driver based on a BPS BP9021 chip
« Reply #8 on: July 22, 2015, 08:11:04 pm »
That is not a filter circuit, thats voltage spike protection circuit. The leakage inductance of the xformer makes voltage to overshoot on the primary side.

The circuit is nothing more than a simple voltage clamp. The RC time constant is something about 5 times the switching period (to dissipate the overshoot energy quickly enough not to charge the cap up too much), designed by selecting the resistor first according to the primary reflected voltage and power to be dissipated on the resistor. Then tha capacitance is calculated for desired time constant as mentioned above.

The DRC circuit can be replace better by unipolar transil with a diode in series. For price reasons, the chinese manufacturer probably didn't bother with these components (they cost money) and the power msofet switch is usually avalanche rated (reacts as zener diode when overvoltage). It is relatively fine omitting the DRC circuit, unless there is too much power dissipation in the power switch device. And it also really does not help the service life of the thing.

And just note about efficiency: The RC circuit is the least effective - it wastes power even if there ar almost/no spikes. The solution with TVS diode is more costly (few cents) than the DRC, doesn't waste much power (dissipates only the spike energy) if properly selected TVS voltage and the solution with no overvolt protector is the most efficient of them, because it clamps only the spikes that are over the absolute max of the power switch. (But I generaly don't suggest you to design flybacks like that).
I am not quite sure the DRC circuit has been totally omitted on my PCB.
You may be right when you say that a TVS can also do the trick ... I'll go & get my best magnifier but I know for sure that one or two SMDs are hidden under the transformer and one of those could well be a TVS !

But besides this spike protection circuitry (be it present or not on the PCB), how does the chip REALLY works  ?

I can see a RC cell (not the spike protection but the one connected to VCC - pin#3). Do you think this cell is designed to provide a RC time constant to the chip or has it nothing to do with this and simply provides VCC to the chip thru a resistor and a filtering cap ?

Then how do the two DRAIN pins (5 and 6) behave in respect of the primary coil ?
How such a circuitry can possibly provide a constant current on the secondary ?

( needless to say I have very poor expertise in SMPS ... reason why I am asking  ;) )
 

« Last Edit: July 22, 2015, 08:15:39 pm by ym58 »
 

Offline ym58Topic starter

  • Regular Contributor
  • *
  • Posts: 116
  • Country: fr
Re: Miniature LED driver based on a BPS BP9021 chip
« Reply #9 on: July 22, 2015, 08:13:58 pm »
Have you read my post?
NO ...  (just kidding)
It took me a little time to answer to it, that's why (see above)
 

Offline Kjelt

  • Super Contributor
  • ***
  • Posts: 6460
  • Country: nl
Re: Miniature LED driver based on a BPS BP9021 chip
« Reply #10 on: July 22, 2015, 08:22:20 pm »
How such a circuitry can possibly provide a constant current on the secondary ?
My guess:
The ic measures the current in the primary winding of the transformer, it knows the voltage on the primary of the transformer,
then with an accurate transformer the losses are known and the ratio between primary and secondary is known so you know the secondary voltage (at least a good guess within 5% as claimed in the datasheet) hence you know (or again a good guess) the current in the secondary.
Still a lousy shitty circuit if you ask me, most circuits have at least some form of feedback with an optocoupler from the secondary, this is just fire and forget, if something is wrong (different transformer, or leds short circuit) it keeps on going, quality! But then $1 can't beat that.
I myself like to work with DC voltage and Maxim led drivers that measure the current through the leds, I don't trust HV led drivers, i like my house too much to let it burn down by a $1 hunglo circuit.
 

Offline ym58Topic starter

  • Regular Contributor
  • *
  • Posts: 116
  • Country: fr
Re: Miniature LED driver based on a BPS BP9021 chip
« Reply #11 on: July 22, 2015, 08:25:25 pm »
I wonder what the primary/secondary isolation on that is good to!
I would not even take a chance to measure it ... looking at the transformer, the PCB layout and the cabling of this USD1.10 driver speaks for itself !
 

Offline ym58Topic starter

  • Regular Contributor
  • *
  • Posts: 116
  • Country: fr
Re: Miniature LED driver based on a BPS BP9021 chip
« Reply #12 on: July 22, 2015, 08:35:38 pm »
My guess:
The ic measures the current in the primary winding of the transformer, it knows the voltage on the primary of the transformer,
then with an accurate transformer the losses are known and the ratio between primary and secondary is known so you know the secondary voltage (at least a good guess within 5% as claimed in the datasheet) hence you know (or again a good guess) the current in the secondary.
Still a lousy shitty circuit if you ask me, most circuits have at least some form of feedback with an optocoupler from the secondary, this is just fire and forget, if something is wrong (different transformer, or leds short circuit) it keeps on going, quality! But then $1 can't beat that.
I myself like to work with DC voltage and Maxim led drivers that measure the current through the leds, I don't trust HV led drivers, i like my house too much to let it burn down by a $1 hunglo circuit.
So, if I understood you well, the VCC value is the key since it implies definite primary current/voltage and, hence, a secondary voltage and thus a constant current thru the LEDs ...
Then, how the PCB manufacturer can possibly claim that this "house-burner" ;) can be supplied within a 85V-250VAC range ?

« Last Edit: July 22, 2015, 08:39:51 pm by ym58 »
 

Offline Kjelt

  • Super Contributor
  • ***
  • Posts: 6460
  • Country: nl
Re: Miniature LED driver based on a BPS BP9021 chip
« Reply #13 on: July 22, 2015, 08:43:58 pm »
So, if I understood you well, the VCC value is the key since it implies definite primary current/voltage and, hence, a secondary voltage and thus a constant current thru the LEDs ...
Then, how the PCB manufacturer can possibly claim that this "house-burner" ;) can be supplied within a 85V-250VAC range ?
No the primary current is the key, the primary voltage is also used (to switch off when it exceeds the threshold)  it is all explained on the above datasheet page 6 Constant Current Control  ;)
 

Offline Kjelt

  • Super Contributor
  • ***
  • Posts: 6460
  • Country: nl
Re: Miniature LED driver based on a BPS BP9021 chip
« Reply #14 on: July 22, 2015, 08:47:13 pm »
The chip of the datasheet does have some protections which is nice. Unsure if your chip has the same.
 

Offline ym58Topic starter

  • Regular Contributor
  • *
  • Posts: 116
  • Country: fr
Re: Miniature LED driver based on a BPS BP9021 chip
« Reply #15 on: July 22, 2015, 08:58:07 pm »
So, if I understood you well, the VCC value is the key since it implies definite primary current/voltage and, hence, a secondary voltage and thus a constant current thru the LEDs ...
Then, how the PCB manufacturer can possibly claim that this "house-burner" ;) can be supplied within a 85V-250VAC range ?
No the primary current is the key, the primary voltage is also used (to switch off when it exceeds the threshold)  it is all explained on the above datasheet page 6 Constant Current Control  ;)

Brilliant ... I had not (yet) gone that far in reading what miguelvp had kindly posted  earlier (the english datasheet).

The more I look around at those new electronic circuits, the more astounded I am : those guys can make very sophisticated & dedicated chips whose cost is probably less than a dime (Maxim chips is another good example, a bit more expensive though) !

The reverse of the medal being that these circuits can probably burn a Netherlands house to ashes in less than a minute ...  :-DD
 

Offline mmagin

  • Frequent Contributor
  • **
  • Posts: 610
  • Country: us
Re: Miniature LED driver based on a BPS BP9021 chip
« Reply #16 on: July 22, 2015, 09:13:10 pm »
I wonder what the primary/secondary isolation on that is good to!
I would not even take a chance to measure it ... looking at the transformer, the PCB layout and the cabling of this USD1.10 driver speaks for itself !

Yes, but, for science!
 

Offline Yansi

  • Super Contributor
  • ***
  • Posts: 3893
  • Country: 00
  • STM32, STM8, AVR, 8051
Re: Miniature LED driver based on a BPS BP9021 chip
« Reply #17 on: July 22, 2015, 09:21:51 pm »
Think a bit before asking.

The RC on VCC pin is not "RC" as you probably think. The C is the supply decoupling. The R from the top provides probably startup curent for the IC.

The VCC exact value doesn't matter. The constant current output is met bcs the primary current is known, so is the secondary one.

By controlling primary peak current*, secondary peak current is set. The secondary filter cap makes it filtered, DC average out of the secondary waveform.

*the primary current looks liek a ramp.  The IC switches on, current rises (determined by i(t) = 1/L* integral of u(t)dt) and after reaching a specific level, the switch is off, energy starts to transfer to the secondary. The secondary current then looks like similar ramp, but inverted. Starts at high current, decreases to zero (as the magnetick energy in the core discharges). Then the whole cycle starts again.

Sorry, this is only very unaccurate description of the basic working of a flyback converter. Use your favourite search tool to get more info on flyback converters. But beware, some complex math can follow.  :-+
 

Offline ym58Topic starter

  • Regular Contributor
  • *
  • Posts: 116
  • Country: fr
Re: Miniature LED driver based on a BPS BP9021 chip
« Reply #18 on: July 22, 2015, 09:27:14 pm »
Yes, but, for science!

No, not even for science coz by the time I will have pointed and documented where the isolation problem is and how much it could be a safety concern, the manufacturer will have long time retired, and gone fishing with the billion dimes earned from selling each of these unsafe drivers !
 

Offline ym58Topic starter

  • Regular Contributor
  • *
  • Posts: 116
  • Country: fr
Re: Miniature LED driver based on a BPS BP9021 chip
« Reply #19 on: July 22, 2015, 09:36:12 pm »
Think a bit before asking.
The RC on VCC pin is not "RC" as you probably think. The C is the supply decoupling. The R from the top provides probably startup curent for the IC.
(...)
Sorry, this is only very unaccurate description of the basic working of a flyback converter. Use your favourite search tool to get more info on flyback converters. But beware, some complex math can follow.  :-+

Thanks for enlightening the ignorant that I am (or the ignorants that we are) ;)
I will now take a little time for digestion and will come back to you when I am sure I understood it all, so don't take offence if I don't answer you within a minute ... :popcorn:

« Last Edit: July 23, 2015, 03:25:33 am by ym58 »
 

Offline miguelvp

  • Super Contributor
  • ***
  • Posts: 5550
  • Country: us
Re: Miniature LED driver based on a BPS BP9021 chip
« Reply #20 on: July 22, 2015, 09:54:09 pm »
Let me clarify that the datasheet I linked is a similar device, not the same one, but it should work based on the same principles
 

Offline ym58Topic starter

  • Regular Contributor
  • *
  • Posts: 116
  • Country: fr
Re: Miniature LED driver based on a BPS BP9021 chip
« Reply #21 on: July 23, 2015, 03:36:26 am »
Let me clarify that the datasheet I linked is a similar device, not the same one, but it should work based on the same principles

Yes, but that's fine ... as we are all lacking English literature on BP9021, we'll have to assume that the BP3122 functional diagram is "somehow" similar.
This is the only BP9021 datasheet that I've been able to find so far :


I believe that the very relevant explanations & comments from Kjelt will also apply to this chip.
Thanks again for the finding :-+
« Last Edit: July 23, 2015, 03:47:32 am by ym58 »
 

Offline spyking

  • Newbie
  • Posts: 1
  • Country: nl
Re: Miniature LED driver based on a BPS BP9021 chip
« Reply #22 on: October 30, 2015, 02:45:09 pm »
Quick question, would it be possible to modify/adapt this driver to accept PWM dimming?


 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf