Hi,
I'm trying to build a low cost power monitor for AC mains (220V - 250V), and have previously been using a transformer to sense the voltage (and an Allegro hall effect sensor IC for current).
This works fine, but transformers are relatively large and expensive and also draw power all the time.
So I've been looking at isolation amplifiers, but they are all quite expensive, i.e $15+
Trying to design something that uses simple optocoupler(s).
It seems to be possible to do it with 2 x 4N25 (or similar), when I model it in LTSpice, but I'm not really sure if this is a true reflection of what would happen in practice.
Could anyone comment on the design and let me know if there is something that I'm ignored, which would prevent the circuit functioning as it appears to in LTSpice
Note. The HT side is on the left, the LT side on the right. The GND on the right is only in the simulation to allow spice to run, and has a large value series resistance.
The 5V supply on the right is from the computer (Arduino) supply.
I can see there is an issue near the zero crossing point, but for my application I don't think this is an issue as the error it will cause is less than other errors I have in the overall system.
Thanks.
Edit. I forgot to mention the zip file contains the LTSpice file.
I'm trying to build a low cost power monitor for AC mains (220V - 250V), and have previously been using a transformer to sense the voltage (and an Allegro hall effect sensor IC for current).
This works fine, but transformers are relatively large and expensive and also draw power all the time.
So I've been looking at isolation amplifiers, but they are all quite expensive, i.e $15+
Trying to design something that uses simple optocoupler(s).
It seems to be possible to do it with 2 x 4N25 (or similar), when I model it in LTSpice, but I'm not really sure if this is a true reflection of what would happen in practice.
Could anyone comment on the design and let me know if there is something that I'm ignored, which would prevent the circuit functioning as it appears to in LTSpice
Note. The HT side is on the left, the LT side on the right. The GND on the right is only in the simulation to allow spice to run, and has a large value series resistance.
The 5V supply on the right is from the computer (Arduino) supply.
I can see there is an issue near the zero crossing point, but for my application I don't think this is an issue as the error it will cause is less than other errors I have in the overall system.
Thanks.
Edit. I forgot to mention the zip file contains the LTSpice file.
Attachments
Last edited: