My DC Power-supply shows me 3.1 Voltage and 0.2 Ampere Current
My MultiMeter shows me exactly 3.09V Voltage and 0.19A Current
I have used the 2.5A DC Current Example . I changed the “float Vref = 302.73;” to my initial value and got a 0.0 baseline current ( DC Supply turned off )
As soon I turn on the DC supply I get 190.43mv (or 0.19V ) Voltage and 238.04ma (0.238A) Current as results.
Can anyone point me out, why is that ?
0.238A ( or 238.04ma ) is not even near the exact measured 0.19A?
The voltage output is completely off the charts too ( showing 0.19V instead 3.09V ).
Did I maybe miss something ? Are the values representing not the actually current and voltage ?
The arduino is powered by a USB3 port.
I have the same issue / discrepancy with the 10A sensor as well… Although it uses different sensor type.
Dear @ccorrientes
We know your problem.Because there is no DC current sensor module in our office, we have to apply to ship 10A DC current sensor module from the warehouse to the company, and then do a test according to your process, but this process may take 2 days, please wait patiently. Once we have the test results, we will inform you as soon as possible.
Hello @jiachenglu you are great. Thank you for this. I can if you like also provide you any kind of access to my demo environment if you like… I am willing to do whatever needs be done, to get the sensor data values precise & accurate. …Constanitn
Dear @jiachenglu, please bear in mind in case you test the system… I don’t have an issue to set the vref value… It is set to the initial value and i get a 0.01 value without any load.
My issue is the accuracy of the sensors. Both sensors ( the 2.5A and 10A ) are showing values with an offset of up to 25% in current and -95% in voltage…
Current
Power Supply Value = DC Sensor Value = Accuracy
0.16A = 0.18A (189.21mA) = 18% off
0.20A = 0.23A (231.94mA) = 15% off
0.29A = 0.34A (341.80mA) = 25% off
Voltage
Power Supply Value = DC Sensor Value = Accuracy
2.1V = 0.15V (151.37mV) = -92% off
3.1V = 0.18V (185.55mV) = -91% off
6.1V = 0.27V (273.44mV) = -95% off
I used the example script for 2.5A and 10A as basis.
@Baozhu mentioned that i might need to calibrate the sensors. If this is the case how can i calibrate them - besides setting the vref value? (I am quite new to this) Are there any how-tos available or should we just kick the project and move to another vendor as those sensors are in reality not as accurate as the datasheet promised ( your honest opinion )?
Dear @ccorrientes
Hello ,We found the root of the problem because our company’s DC current sensor is 0-2.5a, and the error will be larger when measuring small current.You can try to measure some larger current. The voltage value displayed by our serial monitor refers to the current measured by the sensor is converted into the voltage value, rather than the supply voltage.
The following is the test I made with 10A DC current sensor. I measured the sensor current pictures of 200mA, 500mA, 1a, 2a and 2.5A respectively. In the figure, we use DC power supply, resistor (instead of electric lamp), 10a DC sensor module,Arduino to complete the experiment.