Measure current with nodemcu and acs712

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
r16
Normal user
Posts: 24
Joined: 12 Dec 2016, 02:48

Measure current with nodemcu and acs712

#1 Post by r16 » 24 Sep 2017, 00:56

Hello guys.
Anyone use acs712? I have one but i dont find any code for read the measures , and to send via mqtt.
Anyone use ?

Drum
Normal user
Posts: 300
Joined: 07 Feb 2016, 11:56

Re: Measure current with nodemcu and acs712

#2 Post by Drum » 24 Sep 2017, 07:28

I have never seen this before but from what I can find quickly it has an analog output range higher than the esp adc pin can handle without a resister divider or other module to convert it to digital.

Using an already supported module like pfc8591 or ads1115 should allow you to use it without modifying a plugin.

Be aware the modules I found quickly run on 5V, although the only datasheet I found said 2.5V vcc. Check to see output is not dependent on input voltage as this could cause inconsistant readings if input voltage is not consistant.

Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests