I would like to create a safe electrical circuit that measures the voltage from the wall (220vac). And the safest way that i know of so that when something fails there would be a high chance that my electronics could still survive is by using a step down transformer.
The circuit i have came up with looks like this
I have several problems though:
Im having trouble looking for a transformer, since its for voltage sensing only i dont really need highoutput current, but most important of all it must be as small as possible so that i can place it on my pcb. I even opted for smd only to ensure that there will be no arc going onto another pcb on the bottom. But even with that there seems to be a lot type of transformers and dont know which one will work. Here are the three types that i think will likely to work. SMPS, Pulse, Current.
The SMPS seems to be the most likely i will be using having high isolation and its actually stated that it can handle 220VAC. I am having second thoughts on the other tweo because some of them does not say on the datasheet the max voltage the input can handle.
For the value of the voltage divider, to get the desired output voltage that my differential ADC can handle. getting the ratio of the resistor is simple. But i am not sure what the values should be should i go higher or lower? In the circuit above i used 1k and 0.5k but i can also be 10k and 5k. which would be better?
A gut feeling is telling me that my circuit seems to be only good on paper, and in real world there would be more components,? what should i add to this circuit to make more like a proper circuit that can survive in the real world. Heck how do industrial grade equipment do their single phase voltage sensing.