YQJ010504 Single Phase AC Current Sensor Module Active Output 5A problem

I got the sensor mentioned in the title. The problem is that i cant find any useful information about that sensor on the internet, and i cant get it to work.

I tried connecting the sensor (vcc to 5v, gnd to gnd and out to A1). The output value i read on the A1 is incrementing slowly and is not affected by the current i want to measure.

Any help would be appreciated.

Thanks.

What is the AC load (current) that you're trying to measure? How much current do you expect? Did you feed the AC line to be monitored through the hole? Is the load switched on? Did you try to adjust the potentiometer? What readings do you get? Can you post your code? Can you tell us how you've connected it or show us a schematic or diagram? What Arduino are you using with this?

So first time i tried to measure the AC load was approximately 0.3A. The AC line is going through the hole, the load is switched on. The potentiometer doesn't seem to do anything. I got values around 30, so i used pulldown resistor.

int sensorValue = 0;

void setup() {
  Serial.begin(9600);

}


void loop() {
  sensorValue = analogRead(A0);
  Serial.println(sensorValue);
  delay(100);
}

I've connected sensor vcc pin to 5v on arduino(uno) board, both sensor gnd pins to arduino gnd pins and sensor out pin to arduino analog pin A0. Later i added a 10k resistor between A0 and arduino gnd pin.

After i read your first question i tried to measure higher current. This time i got the same reading but every few seconds the numbers change for half of a second. It looks like these numbers could be correct measurements of ac load.

What do you mean by how much current do i expect?

I found the link to the sensor from the manufacturer (very sparse).

I don't think you need the pulldown resistor because it would have an active voltage output. Not sure if its a DC output or AC. Seems like it has an AC output due to your results.

Some possibilities ...

Try feeding the wire through the hole the other direction and see if it makes a difference in your readings.

If your AC current load is always low, you can amplify the current the sensor sees by wrapping multiple turns through the hole. For example, if your load is always within 0.0 to 0.5A, you could wrap 10 turns through the hole and the sensor will see 0.0 - 5A. If your load is always within 0.0 to 1.0A, wrap 5 turns through the hole and the sensor will see 0.0 - 5A.

If you have a multimeter, try measuring AC and DC voltages to see what type of output the sensor has.

Hi, Don't forget to pass through the transformer hole only one of the wires that feed the load.

I had the same problem here with the same sensor with other name: XD-93B

The problem is that the output is a sine and cannot be read every 100 ms. You must read it more frequently in order to detect max and min values of the sine

I think you could also use emon lib for doing this