alcar21 / WemosEM

Cheap power monitor (STC013) with Home Assistant Discover and Wemos D1 Mini / PRO (esp8266)
113 stars 24 forks source link

1v vs 3.3v #12

Closed buzzy closed 3 years ago

buzzy commented 4 years ago

How did you solve the fact that the CT outputs 0-1v and the Wemos D1 has a built-in voltage divider on the ADC that allows 0-3.3v on the ADC? If you don't boost the CT output, you will only use 1/3 of the resolution of the ADC, giving you only 333 steps between 0A and 30A, about 0.1A steps, which would mean 22W "resolution". Please advice.

rechena commented 4 years ago

Would this cause the power consumption to be reported way lower than expected? For e.g a 2500W being reported as ~500W for example? Thanks

alcar21 commented 4 years ago

The ADC of ESP8266 is 0-1v please read the documentation: https://arduino-esp8266.readthedocs.io/en/latest/reference.html

A good improvement will be using the ADC of ADS115 that it has 0-5v. I am working on a version that it's better and it uses the module PZEM-004T.

Un saludo, Alfonso C.

El dom., 4 oct. 2020 a las 15:00, Joao Rechena (notifications@github.com) escribió:

Would this cause the power consumption to be reported way lower than expected? For e.g a 2500W being reported as ~500W for example? Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/alcar21/WemosEM/issues/12#issuecomment-703252149, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJBMSKPYJ5EBJYRQQQZJMDSJBWXXANCNFSM4ONSLWKA .