Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
LinkBack Thread Tools Display Modes
Old 21st December 2006, 12:58 PM   (permalink)
Default

Quote:
Originally Posted by hjames

Also, according to the app note (pg 2-6) there's ~8mA of ripple at 4.2v. In your circuit this would end up being 300mV worth of ripple, which is what you're seeing. BTW, in their circuit, it would end up being .8V worth of bouncing up and down...
so then, it's the non-linear voltage-current relationship of leds that's screwing things up ... the small increase in voltage say from 3.1 to 3.4v (from the ripple) is causing the large increase in current?

I still don't understand why the regulator doesn't skip pulses or reduce its frequency when it sees over 2 volts on the feedback in.
__________________
If you don't have a planet, what good are gold bars?

want to contact me directly? gmail gordonthree
check out my project website: http://projects.dimension-x.net
Favorite numbers:
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
justDIY is offline  
Old 21st December 2006, 02:40 PM   (permalink)
Default

You're waveforms are somewhat convoluted - took me a sec to figure it out. The pic you show of the SW pin is really depicting the OFF time of the internal FET, which is about 400nsec. The voltage on the SW pin is about 15V and the input is 5V, so the voltage across the 10uH inductor is about 10V. This yields a peak inductor current of about 400mA - which is in line with what the datasheet says - the switch turns off when it hits 400mA.

The switch turns on when the voltage on the FB pin has fallen below 1.233V. With the input at 5V, the switch will be on for about 900nsec (800nsec plus 100nsec prop delay) for it to reach the limit of 400mA. Looking at the other waveform you show of the voltage on the FB pin, this seems to fit also - the switch turns on when the voltage jits 1.233V. You don't see anything happen to the voltage on the FB pin until the switch releases 900nsec later - which with the rate of fall of the voltage on the FB pin (approx -180mV/usec), the bottom of the FB voltage should be at about 1.07V - which is fairly close to where it is. It appears that the IC is doing what it is supposed to be doing. I guess now we need to figure out how to make it do exactly what you want it to do.

Oh - if you look at the waveform for the voltage on the FB pin, the rate of fall is about 182mV/usec. With a 0.1uF capacitor and the voltage falling fairly linearly, you can assume that the current coming out of the cap is all due to the LEDs and that calculates out to be about 18mA.

I think what you're going to have to keep in mind is that 1.233V divided by the sense resistor is not going to be the average current through the LEDs. I don't really have the time to figure out the average voltage across that resistor, but it is going to be a function of the input voltage, max inductor current (400mA), the output capacitance and the current through the LEDs. When the switch turns on, there will be a delay which will cause the FB voltage to fall below 1.233V before the switch turns off and the inductor dumps current to the output cap. That delay will be: tdelay=400mA*L/Vin. (tdelay is really just the ON time of the FET)

When the FET turns off, the inductor will dump the current into the output capacitor. We know what the peak inductor current is (400mA) but we really don't know what the voltage on the SW pin will be - we can assume 15V from the scope shot you supplied, though. So while not entirely accurate:
Toff=400ma*L/(15V-Vin)

This time can approximate the peak voltage the output capacitor will charge to. We know the inductor current will decrease linearly from 400mA to zero in the time Toff. That current is put directly into the output cap (ignoring the constant current draw of the LEDs). This can be put into equation form with :
iL=400mA-(15-Vin)*t/L
With iL=Cout*dv/dt, solve for dv in terms of dt, then integrate from 0 to Toff and you should get a rough approximation of the ripple voltage on the output capacitor. If I did it right it should be:
Vp-p=Cout*L*(400mA^2)/(15-Vin)-C*((15-Vin)/(2*L))*(400mA*L/(15-Vin))^2

With all that info, you should be able to reconstruct the ripple voltage across the current sense resistor, transform that into an average current calculation and then use that equation to solve for the value of the current sense resistor that you want for a particular average LED current. Keep in mind that as the input voltage varies, so will the output current.

Hope that wasn't too confusing, I wrote in in a stream of consciousness type manner.
OutToLunch is offline  
Old 21st December 2006, 05:50 PM   (permalink)
Default

This is a very simple regulator chip - more advanced ones have all sorts of compensation mechanisms inside them, in comparison to this one being just a flipflop and a pair of comparators. It doesn't know how to skip pulses, and it's pulse width is pretty much defined by how fast the inductor charges up - which is directly related to the input voltage. Plus, the faster the inductor charges up, the timing delay built into the chip will cause the inductor current to exceed 400mA more, causing even more ripple.

In more advanced regulators, there is another control loop around the inductor current limit - by the time the inductor is fully "charged" you can't do anything else, it's going to cause the output voltage to bump up by some given quanta. However, if you can change the current lmiit of the inductor, then you can control how much it's going to overshoot - and keep the output voltage in tighter regulation.
hjames is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Overshoot and ringing doofus32 General Electronics Chat 3 28th August 2006 04:04 AM



All times are GMT. The time now is 12:44 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

eXTReMe Tracker