-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any possibility for ACS712 (or analog) support? #1365
Comments
Analog support is already implemented in Tasomota
|
Ok, but which command would readout the A0 pin? I Only see a reference in the code to a 'Witty cloud' device.. Mine is a regular Sonoff, and I would just like to use the A0 pin.. |
read this and configure your module |
Thanks ionciubotaru, still struggling a bit how to work this out.. I can see the ADC0 is disabled in mytmplt, so I can set it to GPIO_USER and I will assume it will popup in the webserver to configure. But from there it ends.. Since none of the sensors in the list are related to ADC read out.. |
select { "WeMos D1 mini", // WeMos and NodeMCU hardware (ESP8266) |
Great, got it now, thanks! |
Sorry to open again this thread, but is still a little confusing how to enable GPIO_ADC0 on generic module (old wemos one).
I have an ACS712 too and I'm trying to configure it on one of my Amica ESP-12E that has the A0 gpio, and I can't have it configured at all, since ADC0 pin doesn't show up on settings webpage. |
You need to compile tasmota with #define USE_ADC_VCC commented out (file user_config.h) |
Is already commented out, with the ´#´ in front. But I compiled in both way. The A0 doesn't show up. |
Sorry no You need to add // before the # |
The the correct way is |
As there is nothing to configure on a ADC channel you won't see it in the configuration webpage. Just connect your analog signal and verify it's values on the main webpage. |
@arendst : never mind. After testing my acs712 under another sketch I realize is dead. |
@arendst
And all is fine, I got reading from 0.1 to 3.2.
and I've upload the sketch to my unit, configured as
On status 11 I can see a Vcc value, but it change slightly even in dark (minimum was 2.770) then I think is relative to the instant load of the board not the analog. But I may be wrong, obviously.
I do apologize if I'm hammering this thread in that way, but I'm just trying to understand how this works (newbe here), and I didn't find much hints on wiki. |
did you ever got this working im in the same spot now |
A Tasmota PR was recently merged for using a current sensing device (e.g., a current transformer) on ADCO. The pin on the ESP82xx expects 1V however many devices provide a contact on the device for A0 which has a voltage divider built-in and expects voltages in the range on 0v-3.3v. As this is a very old (ancient) issue, please refrain from posting as its not likely to get a lot of attention. In any case, Tasmota GitHub issues are intended for bugs and feature requests. Your question, at least at this time, likely falls into the category of configuration or setup question. Please check the Contributing Guideline and Policy and the Support Guide. Thanks. Support InformationSee Wiki for more information. |
@meingraham thanks for your fast response. I'll follow your recommendation. |
meingraham FY!!!! |
I noticed a very small and cheap current sensor, ACS712 that would possibly fit in the Sonoff modules.
I believe it works with an Analoge Out.. Is there any option to add support for analog A0 inputs?
The text was updated successfully, but these errors were encountered: