everthing is built. the 9 volts is plugged in. i have the ct sensor connected to one wire on my 120 volt space heater, the black one not the green or white one. i commented out alot of the code so that it would read just one ct instead of all four. when the heater is off it gives a reading of zero for real power (thats good). when i turn the heater on it gives a reading of around 0.25 (not so good). i feel like theirs something i need to change in the code but i don’t see it. heres the code i’m using:
#include “EmonLib.h”
EnergyMonitor ct1;
const int LEDpin = 9;
void setup()
{
Serial.begin(9600);
Serial.println(“emonTX Shield CT123 Voltage Serial Only example”);
Serial.println(“OpenEnergyMonitor.org”);
found this line in another sketch.
ct1.voltage(0, 130, 1.7);
should be 130 instead of 300.6.
still no joy, i’m now getting reading of around 0.13, its bouncing all over from 0.10 to 0.24.
Can you please format your code to make it readily readable, as we mods are now discouraged from editing posts. Please put three backticks only on a line above and below the code.
You’re in the USA? So the black wire is the line conductor, the white is the neutral? As the heater is only connected to one leg, either should read the correct current.
What voltage are you measuring? You don’t mention an a.c. adapter. Without a voltage, current × zero = zero - hence no power. If you don’t have the a.c. adapter, then you should use ct1.Irms * 120 to give a nominal apparent power.
You’re not reading, or it’s not seeing, the a.c supply. Vrms should be the 120 V of one leg of your supply. If you are using the a.c adapter from our shop, the 130 calibration constant is the correct nominal value. (300 is for our adapter and 240 V mains.)
The current is clearly right for about 1 kW.
Do you have a multimeter to check the voltage that’s actually arriving from the a.c adapter? It should be around 12 V.
Hopefully a stupid question - you have put the sockets on the correct side of the p.c.b? As you’re reading the current correctly, it seems as if you have, but it’s worth asking, as it’s an uncomfortably common error.
i agree, not reading the ac adapter. checked the voltage on it, i got 11 volts (ac). got the adapter a long time ago, not from you guys. double check where i plugged in the ct, its in the right spot. maybe my soldering ??
checked my welds under the female plug on the sheild for the ac adapter. i got 11 volts there. my jumper pin that selects ether pin 5 or pin 10 is set to pin 10, is that correct ?? i just noticed i haven’t thanked for the help, thanks so far.