Mr RB
Well-Known Member
...
Well, if you do 240vac to 12vdc off line and something goes wrong it could possibly send the peak of a 240vac rms sine out where 12v is supposed to be. Can you spell "Fry Daddy"
I was going to use a SMPS transformer based design (ie forward converter), I would not try 240->12 at a couple of amps in something like a buck converter!
...
BTW have you ever tried to run a regulated switching wall wart off of a 12v to 120vac power inverter without it being a pure sine (like the 'modified' sine type which is really just a plus and minus 145v pulse) ?
I have a lot of experience with SMPS supplies, after a period of 25 years or so being a repairer of TV/VCR/consumer goods a lot of the repairs involve failed SMPS supplies in the appliances, and I've repaired and seen inside literally thousands of designs and schematics etc.
Those SMPS wall warts will use a rectifier to make the AC mains into DC, and into a large filter cap which will charge to about 170vDC assuming you're on 115v AC mains. So the SMPS part of the wall wart is actually a 170v DC to 5v DC converter, which will use some type of PWM to regulate the output 5v.
It really does not matter what quality of AC you are providing, it is not that sensitive to the freq of the AC (ie generator use) or even if you feed it DC and not AC.
Depending on the amount of overhead built into the PWM system it may even run ok from a much reduced DC input like 100vDC. Many of the offline SMPS supplies will work just as well from 115v mains as they do from 240v mains, and still have the overhead to work ok down to 70 or 80v depending on load.