When I bring a magnet close to the ACS712 30A-versin the read() value changes dramatically.
I live in Europa with 230V AC mains, and use a 2-wired connector blue&brown which doesn't care about ground-polarity.
Code: Select all
from machine import Pin, ADC
import utime
adc = ADC(0)
for counter in range(0, 200):
print("A0.read()=", add.read())
time.sleep_ms(0.1)
print("Program End")
Even with load there's no change in readings.A0.read()= 712
A0.read()= 715
A0.read()= 708
A0.read()= 713
A0.read()= 726
A0.read()= 727
A0.read()= 708
A0.read()= 724
A0.read()= 706
A0.read()= 720
A0.read()= 727
A0.read()= 710
A0.read()= 710
A0.read()= 725
According tot Google with no load analog value should be (1024 / 2) = 512. Thats not the value measured without load. I tried also emonlib but thats no use too..
Am I using a too small load?
Wiring is like this, EXCUSE for showing an Arduino.
One wire goes from the wall connector to the load (LED light), the other routed via the ACS712.
Anyone else have experience?