Cannot read voltage/current on HLW8012

413 views
Skip to first unread message

Ulf Holt

unread,
Aug 14, 2021, 12:50:34 PM8/14/21
to TasmotaUsers
Have tried to configure tasmota on Wemos ESP 8266, but Voltage and Current shows zero. I have the following setup:
HLW80121.png
When I connect a heater, I will see the Energy increasing, so there is some reading, but not what I want.

Load.png

Can someone give me a hint?

Regards

Ulf

Philip Knowles

unread,
Aug 14, 2021, 3:52:14 PM8/14/21
to Ulf Holt, TasmotaUsers

I’d try

GPIO05 HLWBL SEL

GPIO12 Relay1

GPIO13 HLWBL CF1

GPIO14 HLW8012 CF

And then, rather than using a Template, select the Module as a Sonoff POW (it won’t allow you to set other GPIOs but it will be mimicking a POW).

Worth a try.

 

Phil K

Sent from Mail for Windows

 

From: Ulf Holt
Sent: 14 August 2021 17:50
To: TasmotaUsers
Subject: Cannot read voltage/current on HLW8012

 

Have tried to configure tasmota on Wemos ESP 8266, but Voltage and Current shows zero. I have the following setup:

When I connect a heater, I will see the Energy increasing, so there is some reading, but not what I want.

 

Can someone give me a hint?

Regards

 

Ulf

 

--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/9aca456c-133b-4bdd-aea1-106b6ce7d135n%40googlegroups.com.

 

Ulf Holt

unread,
Aug 16, 2021, 12:42:04 AM8/16/21
to TasmotaUsers

Hello Phil.

I’ll give it a try later, but had to strip down the test circuit due to a short circuit, while I was testing using EspeEasy, which gave me all readings. This means that HW is ok, just have to do some more experimenting in a stable and safe environment.

Ulf Holt

unread,
Aug 16, 2021, 5:10:56 AM8/16/21
to TasmotaUsers
Getting better, but still not OK.
If relay is on, then I get the values, though current is way off, which, of course, is just a question about calibration. When realy is off, then everytying shows up 0 - zero.

I think I have seen this mentioned before, but cannot remember where

Ulf

Philip Knowles

unread,
Aug 16, 2021, 6:27:59 AM8/16/21
to Ulf Holt, TasmotaUsers

It’s in the SetOptions. SetOption21 see Commands - Tasmota - Power Monitoring

 

Regards

When I connect a heater, I will see the Energy increasing, so there is some reading, but not what I want.

 

Can someone give me a hint?

Regards

 

Ulf

 

--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/9aca456c-133b-4bdd-aea1-106b6ce7d135n%40googlegroups.com.

 

--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.

Ulf Holt

unread,
Aug 16, 2021, 6:42:09 AM8/16/21
to TasmotaUsers
Thank you! That solved the problem
Reply all
Reply to author
Forward
0 new messages