Author Topic: fix current sensor  (Read 3971 times)

0 Members and 1 Guest are viewing this topic.

Offline littlebillTopic starter

  • Regular Contributor
  • *
  • Posts: 70
fix current sensor
« on: June 09, 2015, 12:05:07 am »
hi

i bought this.
http://www.ebay.com/itm/400770304649?_trksid=p2060353.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT

when measuring a load of 2.25 amps, it reads out 1.51 amps.

is there a way to fix or adjust this?
 

Offline littlebillTopic starter

  • Regular Contributor
  • *
  • Posts: 70
Re: fix current sensor
« Reply #1 on: June 09, 2015, 01:40:29 am »
i fixed this, by putting a offset in the math portion of the software, and now it tracks perfectly. that said is there a way to fix this hardware wise? or is this generally how you calibrate these type of sensors? its tracking perfect now to .05ma resolution
« Last Edit: June 09, 2015, 01:58:02 am by littlebill »
 

Offline mikerj

  • Super Contributor
  • ***
  • Posts: 3322
  • Country: gb
Re: fix current sensor
« Reply #2 on: June 09, 2015, 12:43:11 pm »
Since you have only shown us one part of your current measurement device (i.e. the sensor) it's difficult to comment.  Have you measured the voltage output of the sensor with a calibrated multimeter whilst passing your 2.25Amp load current to rule out any issues with the rest of your circuit or software?
 

Offline littlebillTopic starter

  • Regular Contributor
  • *
  • Posts: 70
Re: fix current sensor
« Reply #3 on: June 09, 2015, 02:36:12 pm »
yes i used 2 amp meters in line between the shunt, it showed .01 difference between the meters.

not sure what else needs to be seen, simply reading the analog reading off the current monitor. wired directly to constant current power supply using a spring as a resistive source.

after adding a .66 correction factor to the amp conversion, it tracks at .01 the same as the other 2 load meters.
 

Offline mikerj

  • Super Contributor
  • ***
  • Posts: 3322
  • Country: gb
Re: fix current sensor
« Reply #4 on: June 09, 2015, 02:44:22 pm »
yes i used 2 amp meters in line between the shunt, it showed .01 difference between the meters.

not sure what else needs to be seen, simply reading the analog reading off the current monitor.

You haven't even told us what voltages you are getting from the sensor.  If you measure the output voltage for at least two known currents (e.g. 0 and 2.25Amps) and plot the transfer function, are you saying this falls outside of the datasheet specification?  Ignore the rest of your system entirely, since we know nothing at all about it.
 

Offline German_EE

  • Super Contributor
  • ***
  • Posts: 2399
  • Country: de
Re: fix current sensor
« Reply #5 on: June 09, 2015, 03:06:07 pm »
I wonder why they refuse to ship to Germany and the Repuplic of Ireland (amongst other countries)?
Should you find yourself in a chronically leaking boat, energy devoted to changing vessels is likely to be more productive than energy devoted to patching leaks.

Warren Buffett
 

Offline bobcat

  • Regular Contributor
  • *
  • Posts: 94
  • Country: us
Re: fix current sensor
« Reply #6 on: June 09, 2015, 07:42:22 pm »
The output voltage is centered around 1/2 Vcc.
So, for zero amps you should see 1/2 Vcc.
 

Offline littlebillTopic starter

  • Regular Contributor
  • *
  • Posts: 70
Re: fix current sensor
« Reply #7 on: June 09, 2015, 09:27:10 pm »
yes i used 2 amp meters in line between the shunt, it showed .01 difference between the meters.

not sure what else needs to be seen, simply reading the analog reading off the current monitor.

You haven't even told us what voltages you are getting from the sensor.  If you measure the output voltage for at least two known currents (e.g. 0 and 2.25Amps) and plot the transfer function, are you saying this falls outside of the datasheet specification?  Ignore the rest of your system entirely, since we know nothing at all about it.

Sorry,

not trying to be difficult, not really sure what needed to be provided.

this thing is hooked directly to an arduino via the 5v/Grd/A1 input ports.

at 0 current it reads 2.5v which is perfect.

the load which is a simple spring is feed power via a current controlled PSU.

readings from both meters, were showing 2.25 amps. the shunt showed about 1.51, and it scaled roughly the same through the entire range i could try 500ma-5 amps

from some reading this appears to be normal that a correction factor is needed.
 

Offline mikerj

  • Super Contributor
  • ***
  • Posts: 3322
  • Country: gb
Re: fix current sensor
« Reply #8 on: June 11, 2015, 10:41:34 am »
yes i used 2 amp meters in line between the shunt, it showed .01 difference between the meters.

not sure what else needs to be seen, simply reading the analog reading off the current monitor.

You haven't even told us what voltages you are getting from the sensor.  If you measure the output voltage for at least two known currents (e.g. 0 and 2.25Amps) and plot the transfer function, are you saying this falls outside of the datasheet specification?  Ignore the rest of your system entirely, since we know nothing at all about it.

Sorry,

not trying to be difficult, not really sure what needed to be provided.

this thing is hooked directly to an arduino via the 5v/Grd/A1 input ports.

at 0 current it reads 2.5v which is perfect.

the load which is a simple spring is feed power via a current controlled PSU.

readings from both meters, were showing 2.25 amps. the shunt showed about 1.51, and it scaled roughly the same through the entire range i could try 500ma-5 amps

from some reading this appears to be normal that a correction factor is needed.

Are you saying that with a current of 2.25Amps passing through the sensor, you measure 1.51 volts at the sensor VIOUT pin using a DMM?  If so this is miles out of specification for the 5Amp version of the ACS712, let alone with 30 Amp version.

If you are saying that your Arduino is reporting 1.51 amps then this means little to us, as we don't have a schematic for your system or the code etc.  so no-one could say if you are doing something wrong.  This is why a voltage reading on the output of the sensor would tell us if the problem is caused by the sensor or the rest of your system.

Note that the transfer function of these devices has quite a wide spread (63 to 69 mV/A for the 30 amp version) so you will need to calibrate every sensor to get accurate readings rather than just using the nominal value in the datasheet.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf