Tuesday, 18 November 2014

ac dc - Purpose of capacitor across transformer in AC-DC power supply?



I have been looking to buy a AC-DC 5v power supply module to power a mains relay in a circuit I am making. I came across a couple of different models on eBay and am trying to understand their basic working design.


This one in particular has good resolution pictures. To my untrained eye, a lot of thought seems to have gone into the separation of the AC mains and DC output. The underside of the board (see second photo) shows that the PCB has been milled under the yellow thing (transformer?). However there are two other components next to this transformer(?); on one side is a black chip which I believe is an optocoupler (I looked up a part number from another photo I saw of the same board), but on the other side is a capacitor labelled C5.




  • My main question is what is the purpose of this C5, given that it seems to be going from the AC side to the DC side? Wouldn't that defeat the purpose of the separation? My guess is that the larger capacitors provide filtering, but I can't work out what C5 is doing there.




  • Secondary questions are how I should approach understanding a circuit like this? Is this a common design for a AC-DC power supply? Could you explain in simple terms what this circuit is doing?





Here is my guess of the circuit functioning: The power comes in and goes some kind of filtering and over-current protection (NTC thermistor). Then it passes into a full-wave rectifier (D4) and the black coils (another transformer?), in some order. I assume then that after this the voltage is a bit lower. The 400V cap on that side helps smooth this rectified output. There is an IC just visible on the top of the board under the black coils which I'm guessing does some PWM with feedback from the optocoupler driven by the DC output; this feeds the yellow transformer which then somehow induces a DC voltage on the other side (I thought that transformers only did AC-AC, but maybe this is not right?) Finally the output, which should be 5V at this stage, goes through some final caps for filtering and into the optocoupler for feedback. Is any of this right?


For what it's worth, the other power supply module I was looking at was this one which is a bit cheaper, but doesn't seem to have the same level of input filtering or isolation (also, no black coil thing?)


Top of AC-DC power supply Underside of AC-DC power supply



Answer



Yes the yellow thing is a transformer, since it is used at a much higher frequency than 50 or 60 Hz mains, it can be much smaller.


Isolation is indeed very important. A user must be able to safely touch the secondary (5V) side without feeling a thing.


The optocoupler senses the output voltage and feeds back a signal that tells the input (mains voltage) side if the output voltage is too high or too low. This is called feedback.


C5 is required ! It is needed to provide a path for high frequency signals caused by the switching of the input side DC voltage. This switching is what makes the DC at the input side into AC, which is transformed to a lower voltage and then rectified again and smoothed by a capacitor. Note that C5 needs to have a very high voltage rating. Imagine what would happen if C5 broke, became a short and then you touched the output.



The black transformer at the input is a common-mode suppressor. It attenuates (filters) unwanted signals generated by this supply and tries to not let them escape from the mains side. Without this common-mode suppressor the supply will still work but it might not meet EMI requirements.


Important last remark: Do NOT buy the cheaper one without the common-mode choke and the worse isolation !


Looking at it, I think it has no isolation at all ! It is not suitable for making a safe 5 V supply from mains voltage. It would only be OK-ish in an isolated box where it is impossible to touch any the wires and which has no connections a user can touch.


No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...