I am try to ready ac voltage but my sensor is giving me very off voltage.
i have searched the net for the sensor. in the video the guy just uses an oscilloscope to calibrate it but since i dont have an oscilloscope so i could'nt get it calibrated fine.
I don't know anything about the EmonLib, but the [u]map()[/u] function should help if the voltage out of the "sensor" is linear. You might want to take the raw ADC readings (finding the peak or RMS or whatever) and map the ADC reading to voltage, rather than mapping the wrong voltage to the right voltage.
DVDdoug:
I don't know anything about the EmonLib, but the [u]map()[/u] function should help if the voltage out of the "sensor" is linear. You might want to take the raw ADC readings (finding the peak or RMS or whatever) and map the ADC reading to voltage, rather than mapping the wrong voltage to the right voltage.
He should meter his mains ACV to be sure he gets the full 240/250VAC. I have used Tripplite power conditioners to clean up and level 120VAC and here I use a UPS to do the same + powerout shutdown time.
Wawa:
Could it be that OP is using a mains to DC sensor, while the EmonLib is expecting a common AC transformer.
Leo..
I am using AC voltage.
GoForSmoke:
He should meter his mains ACV to be sure he gets the full 240/250VAC. I have used Tripplite power conditioners to clean up and level 120VAC and here I use a UPS to do the same + powerout shutdown time.
I am using a variable AC transformer to change the voltage to see the readings