ADC Read through ACS712
Posted: Mon Nov 23, 2015 12:38 am
I am trying to detect the speed of my ceiling fan for which I use ACS712 5A current sensor.
I am able to get it working with arduino but I want to get it working with ESP
The problem is ACS712 is bi-directional so if you supply 5V to it, it will give 2.5V output even if not current is flowing through it. With arduino it's not an issue as it's ADC range is 0-5V. But with eps having 0-1V ADC range it will always give 1023 as output.
Moreover ACS712 5A module gives 185mV/A output (meaning 1A flowing through it, will give 185mV as output, which gets adjusted to the 2.5V of output we were getting earlier). But the thing is ceiling fan consumes 400mA maximum when running at full speed so I get less than 0.09V output variation. which becomes difficult to calculate.
Anyone has an idea on how to get it working with ESP8266-12, or anyone know any unidirectional current senor or any other way of doing it.
Using transformer will make my board bulky and I don't want that.
Thanks in advance
I am able to get it working with arduino but I want to get it working with ESP
The problem is ACS712 is bi-directional so if you supply 5V to it, it will give 2.5V output even if not current is flowing through it. With arduino it's not an issue as it's ADC range is 0-5V. But with eps having 0-1V ADC range it will always give 1023 as output.
Moreover ACS712 5A module gives 185mV/A output (meaning 1A flowing through it, will give 185mV as output, which gets adjusted to the 2.5V of output we were getting earlier). But the thing is ceiling fan consumes 400mA maximum when running at full speed so I get less than 0.09V output variation. which becomes difficult to calculate.
Anyone has an idea on how to get it working with ESP8266-12, or anyone know any unidirectional current senor or any other way of doing it.
Using transformer will make my board bulky and I don't want that.
Thanks in advance