How to read AC in ACS712 or CJMCU758 hall effect current sensor?

Hi,
i have ACS712 and CJMCU758 hall effect current sensor, connected to the ADS1115.
It measures both AC and DC, and i need it for AC 220V.
But in AC, sine wave at some hundred millivolts is added to DC zero offset at 2.5v and the standard ADS1115 input doesn’t read it.
I guess i will need to use custom inputs, but i don’t know how to do.

There’s a very detailed article, Building a Custom Input Module. There may be newer features that this article is lacking because it hasn’t been updated in a while, but in general it should be a good guide to follow to developing your own custom Input module.

1 Like

Hi,
Sorry, it’s too difficult, and now i don’t have much time to learn python, mycodo and ACS712 programming.
At the moment i leave it aside.

Hi Kyle,
Hi Roberto,

for me it is complicated too, but the easiest way is to modify the ads1115_circuitpython.py

instead of

measurement_range = self.measurements_for_average

you need to work with the max value.

But as Imentioned obove, I’m not able to modify the file. So Kyle or sombody esle could please modify it for us.

BR