Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] AC/DC converter explaination

Status
Not open for further replies.

HasHx

Member level 4
Joined
Oct 17, 2016
Messages
78
Helped
14
Reputation
28
Reaction score
14
Trophy points
1,288
Activity points
1,925
Hello, I have reverse engineered the attached circuit from an old power supply, i was wondering how the comparator works? can someone help me figure out how they did the calculations? i really want to get rid of the potentiometer (R2) which is used to tune the output and get 12v instead of 19v.

Screenshot_2.png

Thanks.

Edit: the voltage reference D6 is 2.495v
 

By using precision values in the resistive divider as well as precise regulator, you can achieve good accuracy in the output voltage, so it is feasible to get rid of the potentiometer, assuming that you'll not use the 12v to feed any analog reference but just as power supply for circuits. The calculation, it is done so that the desired value at the output seen by the IN- pin must be equal to the value of the reference voltage in the IN+ pin.

- - - Updated - - -

BTW: Review the D5 LED, it is reversed.
 

Hello Andre,

I am using this as a PC power supply, I assume there is 30.722v (Vfd = 0.9v) at V+ and (R8 + upper R7) and (R9 + lower R7) are the divider, and we have +2.495v on IN+, how do i calculate the new values on R8 and R9 neglecting R7?
 

D5 LED is not just reversed, but Veb of Q1 won't be enough to generate light. U1 is not a comparator, it is an OPAmp. It has to be frequency compensated, otherwise will oscillate.
BTW: OPAmp inputs are swapped. There isn't negative feedback.
 

D5 LED is not just reversed, but Veb of Q1 won't be enough to generate light. U1 is not a comparator, it is an OPAmp. It has to be frequency compensated, otherwise will oscillate.
BTW: OPAmp inputs are swapped. There isn't negative feedback.

I am using OP177 op amp (PN: OP177FPZ), can you explain your claim that the op amp inputs are swapped?
 

I am using OP177 op amp (PN: OP177FPZ), can you explain your claim that the op amp inputs are swapped?

Sorry, are you using an NMOS or a PMOS at the output? Because by the symbol it is an NMOS, and then the Vin+ and Vin- aren't swapped, but then the source of the device should be connected to the output, not to the supply rail. Drawing is confusing me.
 

Hi,

One approach is to divide required output voltage by reference voltage to get the resistor ratios needed. I wouldn't omit the trimpot from the equation, I'd divide it equally across Ra and Rb, but anyway.

e.g. a upper R, b lower R in feedback divider:
Ra
Rb

((12/2.495) - 1) = 3.8096192384769539078156312625251
Then say Ra is 47k, subtract the 0s:
47/3.8096192384769539078156312625251 = 12.337190952130457653866386112572
Multiply 12.337190952130457653866386112572 by the number of 0s removed from previous step = 12k337

12337/59337 = 0.20791411766688575425114178337294
0.20791411766688575425114178337294 * 12V = 2.4949694120026290510137014004753

Calculated directly, 2.495/12 = 0.20791666666666666666666666666667, notice marginal/trivial difference in feedback ref value using a hypothetically and impossibly perfect 12k337 and 47k as divider resistors.

I've used this to find TL431 Ref pin resistor values quickly rather than by repetitive iterative approach.
 
Hi,

All numbers after the third decimal are useless, they just cause confusion and reduce readability.

Klaus
 

Despite all the comments, the schematic still doesn't look right to me:
I assume Q1 is a constant current source to help D6 (whatever it is) maintain a constant reference voltage. The LED is obviously reversed but even then it doesn't make sense, are you sure R4 shouldn't be in Q1 emitter pin. That would let the LED maintain a constant base voltage and hence emitter current of around (Vled - Vbe)/4700 = 0.2mA. That assumes a red indicator type LED.

I think for clarity the schematic should be corrected and some part numbers added before we go further.

Brian.
 

Despite all the comments, the schematic still doesn't look right to me:
I assume Q1 is a constant current source to help D6 (whatever it is) maintain a constant reference voltage. The LED is obviously reversed but even then it doesn't make sense, are you sure R4 shouldn't be in Q1 emitter pin. That would let the LED maintain a constant base voltage and hence emitter current of around (Vled - Vbe)/4700 = 0.2mA. That assumes a red indicator type LED.

I think for clarity the schematic should be corrected and some part numbers added before we go further.

Brian.

D6 is TL431BQLPR

the Red LED does not turn on, i will try to flip it in the morning, it's just an indicator let's forget about it anyway.

I have attached a new screenshot of this circuit, hope it helps.

Screenshot_1.png

P.S. : AC in is RMS value, 23v

- - - Updated - - -

Hi,

One approach is to divide required output voltage by reference voltage to get the resistor ratios needed. I wouldn't omit the trimpot from the equation, I'd divide it equally across Ra and Rb, but anyway.

e.g. a upper R, b lower R in feedback divider:
Ra
Rb

((12/2.495) - 1) = 3.8096192384769539078156312625251
Then say Ra is 47k, subtract the 0s:
47/3.8096192384769539078156312625251 = 12.337190952130457653866386112572
Multiply 12.337190952130457653866386112572 by the number of 0s removed from previous step = 12k337

12337/59337 = 0.20791411766688575425114178337294
0.20791411766688575425114178337294 * 12V = 2.4949694120026290510137014004753

Calculated directly, 2.495/12 = 0.20791666666666666666666666666667, notice marginal/trivial difference in feedback ref value using a hypothetically and impossibly perfect 12k337 and 47k as divider resistors.

I've used this to find TL431 Ref pin resistor values quickly rather than by repetitive iterative approach.

I am not sure just failing to see how having this voltage on Op-Amp's input is going to give us 12v on output
 

the Red LED does not turn on, i will try to flip it in the morning, it's just an indicator let's forget about it anyway.
No it isn't, it is uses as a crude voltage reference but even if flipped it can't possibly have enough voltage across it to light up. That's why I suspect R4 should be in the transistor emitter pin.

Brian.
 

Last edited:
  • Like
Reactions: HasHx

    HasHx

    Points: 2
    Helpful Answer Positive Rating
Hi,

I am not sure just failing to see how having this voltage on Op-Amp's input is going to give us 12v on output

It's just a voltage regulator circuit, isn't it. You do understand a little about how they work? The feedback voltage needs to match the reference voltage for the output to be e.g. 12V or 19V or whatever voltage is set.

The op amp could more than likely be replaced by only the TL431 reference used as a comparator to drive the MOSFET, by the way.

Also, that BJT + ref + LED looks suspiciously like an incorrectly drawn "hybrid" of a Zener-based current source with an LED-based current source.

At a novice's guess, some stuff is incorrectly parsed in the schematic and that circuit could be simplified a little to achieve the same result with less parts.

- - - Updated - - -

Hi Klaus,

All numbers after the third decimal are useless, they just cause confusion and reduce readability.
- True, but they do help if copy/pasted into a calculator to get the same result. Anyway, I'll try not to do that again, it's a bad habit, I know...
 

Hi,

- True, but they do help if copy/pasted into a calculator to get the same result. Anyway, I'll try not to do that again, it's a bad habit, I know...
I see your point.
A good circuit designer should keep in mind that those calculated values are ideal values.
...and only the first couple of digits are informative.
Even the Reference voltage of 2.495V is indeed in the range of 2.483V to 2.507V.

I like to get people a "feel" of numbers. If a person uses a DVM to measure the voltage of this Reference IC he/she should not be worried if the DVM does not show "2.495" but "2.48....", "2.49..." or "2.50..." .
(Although it's good habit to verify the circuit and the measurement tool... if the value is close to the limits)


Klaus
 

I wonder how it's possible to get so many wrong symbols in a simple circuit?

Provided you set up overall negative feedback, means R7 wiper connects to OP non-inverting input, you'll experience that the circuit misses necessary feedback frequency compensation and will most likely oscillate. That's because the OP is internally compensated for unity gain but not for the additional gain provided by the MOSFET in common source configuration.

It's completely wrong to designate the control amplifier a comparator.
 

I am truly embarrassed for having all those bad symbols, I was just copying from this and used the first symbol i had from library... was going to fix this once i start layouting, sorry about it.

Screenshot_1.png

But here is the circuit after reviewing:

Screenshot_3.png

The LED is connected correctly, nothing is wrong with it's connection.
 

No, LED cathode is closer to positive potential than anode. It won't light.
Please, add the arrow to the MOS to mark its type, which has to be P-channel. It is not a pain, and also not a pain to use dots on crossing wires to mark that they are connected together. Not just at certain wires, like on your figure at the output.
 

No, LED cathode is closer to positive potential than anode. It won't light.

it does not light and i guess Brian was right about it being a voltage reference.

Please, add the arrow to the MOS to mark its type, which has to be P-channel. It is not a pain, and also not a pain to use dots on crossing wires to mark that they are connected together. Not just at certain wires, like on your figure at the output.

Sure mate, I actually received this from someone and i don't have the paper now, i just added it to show how i got those wrong symbols on... let's just follow the other pic it's clear enough i hope.

- - - Updated - - -

Provided you set up overall negative feedback, means R7 wiper connects to OP non-inverting input, you'll experience that the circuit misses necessary feedback frequency compensation and will most likely oscillate. That's because the OP is internally compensated for unity gain but not for the additional gain provided by the MOSFET in common source configuration.

I actually had that drawn wrong, the R7 wiper is going to the +IN pin, as I said i pretty much don't understand how this circuit works and that's why I am here, it could be so simple i just can't get it figured out.

---------------------------------

Correction: the wiper was thought to fine tune the output but it actually does not.
 

it does not light and i guess Brian was right about it being a voltage reference.
It neither works as a voltage reference if connected this way. Presently R3, D5, Q1 are useless and can be replaced by a wire powering the reference.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top