current transducer 4-20 mA

Hello,

I'm sorry, my English is poor.

I have a problem. I am trying to mesaure a current with this sensor but I don't do the mesaure well.

Well, I try to experiments.

  • I measured power supply AC. It's 24W power. I measured with polimeter 2V on input I07 arduino PLC, I thought that sensor current has an offset voltaje and I should do a new experiment.

-I did a second experiment. The diference was the power. I wanted to measure a COOL/HOT pump in my office, that power is 2000/3000W more or less. When I did the measure, I measured 2.06V on inpur I07 arduino PLC.

I don´t understand where the problem are.

I think I might sensor current are broken or I have a reference problem.

I use this code for the measure.

const int I07=A0; //Analog IN
const int I07=A0; //Analog IN


//this part of code is into another function
for(int i=0; i<=9; i++){
    value11= analogRead(I07);
    value22= maped(value11,0,1023,0.0,10.0);
    float intensidad2 = 6.25*value22-12.5;
    intensidad = intensidad_ant+intensidad2;
    intensidad_ant= intensidad;
  }
  intensidad_ant=0;
  
  intensidad = intensidad/10;
  powerR=230*intensidad;
  powerR= powerR/1000;
  intensidad =0;


//maped function

float maped(float x, float in_min, float in_max, float out_min, float out_max){
  
  return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
}

I have sorted out this problem for two days but I don't find out the solution.

Best regards

PD: datasheet of arduino PLC is too size. I put here the URL
https://www.industrialshields.com/wp-content/uploads/2016/02/23.03.16_M-duino21-42-58-1.pdf

0900766b8142e820(1).pdf (617 KB)

SCHEMATIC.pdf (87.3 KB)

Did you put the entire 3 (Live, Neutral, Earth) wire cable into the current transducer?
If so then you will measure close to zero amps as the forward and reverse magnetic fields will cancel.

Which AT ?? B420L do you have?

mikb55:
Did you put the entire 3 (Live, Neutral, Earth) wire cable into the current transducer?
If so then you will measure close to zero amps as the forward and reverse magnetic fields will cancel.

I only put Live wire cable into de current transducer.

edgemoron:
Which AT ?? B420L do you have?

I have AT 50 B420L

Try this hookup and test sketch:
out2.png

float amps, volts;
const float aRef = 5.0; // measured with DMM
const int res = 220;    // measured with DMM
const byte aIn = 0; // analog input pin

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

void loop()
{
  volts = analogRead(aIn) * aRef / 1024;
  // 4 mA = 0.88V
  // 50 amps / 16 mA = 0.32 mA per amp = 14.2 amps  per volt
  amps = (volts - 0.88) * 14.2;
  Serial.println(amps,1);
  delay(500);
}

out2.png