Hi Jorgen, thank you.
I have included all of The following components
ACS7xx Component.png (114.6 KiB) Viewed 6944 times
As promised, the component should now be available via the update system.
I would recommend you set the Acquisition cycles to at least Fosc/64 for all the current sensing components on the Ardunio.
For anyone else interested, I have added the component to the Sensors pack, so you will need to have that enabled before you can use the component.
I have just update and prepared a testprogram. Unfortunately I have no time for test in real world today. I test tomorrow And you hear
I know that also the ACSxxx need a very stable supply.
Hi. Jorgen.
Your welcome.
I have noticed you have the Vref option set to the default AREF which is the wrong setting.
For the component to work you will need to change the Vref voltage to AVCC.
You should be able to get better resolution (0.2 % ) - is your psu able to supply the current required and is it stable under load ? - see the performance section in the data sheet for the calculation of the supply current required
we use these devices at work with good results - and use a dedicated supply rail for them
The shunt in your fluke could also be adding impedance to the circuit affecting the readings, do you have a shunt that you can use then measure the voltage across it ? i,e 50A = 50 mV
Yes I know Steve. My hardware setup was a quick setup with long wires and crocodile beaks, etc. At the same time, it would probably be good with some capacitive connection 0,1uF across the supply and output. I'm sure it can be done more accurately. I will try again with a better setup later. I'm sure Martin's component works properly.
One thing to mention is the resolution of of ADC will be 5/1024 = 4.88mv
As the LTSR 15 sensitivity is 41.6 mv/A then the resolution will be 4.88/41.6 = 117mA!
Note we are talking about sensitivity (resolution) not accuracy.
The only way to improve on this is to use an internal voltage reverence.