Thank you for your help. Sorry if it took a long time for me to answer your comment, but life got in the way, and in the last month, I didn't have much time to dedicate to this project. I looked into the output ripple of these modules (in particular, I chose the IRM-45-5 module) and how to reduce it. The stated output ripple in the datasheet is around 80mV ptp. I tried to design a lowpass filter (a PI filter) to reduce the ripple, focusing on frequencies higher than 65 kHz (the switching frequency stated on the datasheet). I simulated it in LQSpice using both the frequency response plot (Bode plot) and time simulations. However, I was not able to design a passive filter with the required attenuation that performs well with different loads. In particular, I designed the filter considering a maximum load condition; I was able to obtain good performance, but when I tried to decrease the load, I obtained resonance peaks on the Bode plot. I then tried to dampen the circuit by adding resistors in series with the capacitors, but, when simulating a varying load (with a step change in the resistance of the load), I observed significant oscillations on the output voltage.
In general, I was not able to find much information on how to design a low-pass filter with a variable load.
Now my question is:
- Is a ptp ripple of 80 mV something to be worried about? Keep in mind that before reaching the more sensitive electronics (esp32, sensors, etc) I have an LDO which drops the voltage from 5V to 3.3V.
- Is there an easier way to design this lowpass filter with a variable load? As of right now I am thinking of just using the two capacitors (47 uF and 0.1 uF) required by the datasheet
On another note, I read in the datasheet that the typical input current for 230 VAC is 0.9 A. Now this would mean a power consumption of around 200 W when the output is only 45 W, which would translate to a lower efficiency than the one stated in the datasheet. Am I missing something?
Thank you in advance to anyone who will help me!
as for the ripple, check the test document not the datasheet. it can be less or more in a practical circuit.
however, you can add the pi filter and check what happens. maybe even omit the inductor and just use big caps. if you are worried about damping, put a high esr electrolytic capacitor.
i advise that you do not use the ac-dc module output by itself directly but rather use a switching regulator after it and before your circuit.
you mentioned an LDO before the ESP32, but for those why choosing 45W module? 5W one is enough. if there is an excessive current draw to be expected then do not use ldo but rather a good buck regulator.
if using a buck regulator, the final output will be less ripple and noise. i typically use 12v or 15v module with 5v and 3.3v buck regulators.
if you achieved 80mv p-p then with lots of input caps on buck regulators or even the ldo, the ripple will be reduced.
LDO normally reduce the low frequency ripple but high freq ripple will pretty much pass... you need to have parallel caps after the module as i said before.
try for example 3x 220u low esr polymer caps after the module with some 10-22u ceramics in parallel. an additional elec. cap as mentioned above could also help.
thanks