Sensor ACS712
Posted: Sat Jun 20, 2020 3:39 pm
by mms112
hi guys,
I'm using ACS 712 and mcp 3004 and i don't know how to read the current measurement from the sensor.
can u help me plz
Re: Sensor ACS712
Posted: Mon Jun 22, 2020 11:07 am
by Brandon92
Because it is the same question I copied my post to here:
Brandon92 wrote: ↑Mon Jun 22, 2020 9:46 am
mms112 wrote: ↑Sat Jun 20, 2020 4:55 pm
can u show us the circuit plz
Did you check/read the link in this post, there are some schematics and a detailed explanation:
danjperron wrote:
Maybe you should read that post
https://www.raspberrypi.org/forums/vie ... lit=acs712
I did explain all the equation there.
It will give you what we found about the ACS712, its resolution and the problem with the VCC power.
The ACS712 Vout has a VCC/2 offset so you need to read the 5V to have good readout.
Edit:
I copied this post to:
viewtopic.php?f=91&t=277847&p=1682632#p1682632
And to answer your question. What do you correctly have and was doesn't work.
Re: Sensor ACS712
Posted: Tue Jun 30, 2020 2:28 pm
by mms112
it always give me zeros
Re: Sensor ACS712
Posted: Tue Jun 30, 2020 4:54 pm
by Brandon92
mms112 wrote: ↑Tue Jun 30, 2020 2:28 pm
it always give me zeros
You need to provide more information than that, because we can not see what you already tried or not. We would like to know:
- what is your code
- how did you connect everything
- a clear picture of your setup, so we can check it