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)
