News:

PROTON pic BASIC Compilers for PIC, PIC24, dsPIC33

Main Menu

ACS 712 CURRENT SENSOR

Started by Abdullah, Oct 28, 2025, 07:38 PM

Previous topic - Next topic

Abdullah

DEMO Proteus

Pepe

Improved demonstration

Abdullah


JonW

Pepe

Where do you get the custom  modules for Proteus? 


Fanie

The ACS712 is a 50% analog zero, analog output current measuring chip.  If you have an AC current or reversible current then it is fine.  If the current is positive then it is roughly (10 bit) 512 plus your value, if the current is negative it is 512 minus your value.

Since I use DC more, I prefer the ACS713 (30A version) because it gives a larger analog range.  I hate it when a display jumps digits in 2's or 3's because the resolution is poor.

In all cases (and I didn't look at your codes) the micro should read a zero and save the offset value, and do the same with a range(s).  This compensates for component tolerances and your output value is always spot on.  To achieve this you may have to build yourself a precise voltage source and a precise current source.  For a one off it's fine if you fiddle with multimeters and so on, but if you plan to do production you have to accelerate calibration and accuracy. and no better way to have the pic do it itself.