Hi guys, my biggest problem is representing the STC-013 as a current transformer, since there is not current transformer in proteus, only the power ones. Does someone has a tip about it?
Also, i wanna share with you guys my first idea for arduino code. First, i think i can take about 166 samples per cycle (if the arduino clock is 10Khz, ignoring time delay, id be able to read the analog inputs every 0.1ms, since one cycle goes about 16,6ms, dividing one by another gets me to the 166 readings). Now, for the power consumption, id get all the samples of voltage and multiply them by current. My doubt is: is the arduino powerful enough to do that?
For the power factor, what i have in mind is locating the peak between those readings. For the current, i'd simply compare one peak to another, the diference between then would then give me the time delay between both, which i can use easily to calculate the phase shift between two currents. Now, the voltage one. I have decided also to calculte it using the same principle, since it does not matter the position that we put it in cartesian map, what matters is the difference between time delay (given by cosΦ).
Correct me if i am wrong, would this really work? Or its too much for the arduino to process at the same moment.