Interfacing HLW8032 And ESP32

samikshasarnaik
Posts: 2
Joined: Fri Jan 27, 2023 4:41 am

Interfacing HLW8032 And ESP32

Postby samikshasarnaik » Fri Jan 27, 2023 4:55 am

Hello,
I am facing problem with interfacing ESP32 and HLW8032 Module, I am getting garbage values on serial monitor when trying to run one of the codes from the examples of HL8032-master library. Can anyone please help me with connections?

bidrohini
Posts: 202
Joined: Thu Oct 27, 2022 12:55 pm

Re: Interfacing HLW8032 And ESP32

Postby bidrohini » Sun Jan 29, 2023 3:53 pm

Hi, a very common reason for garbage value in the serial monitor is baud rate mismatch. Please check if there is any baud rate mismatch between what you defined in your code and the serial monitor. In the meantime, if you're interested to make a more simple energy saving system, you can take a look at this:
https://www.theengineeringprojects.com/ ... aving.html

samikshasarnaik
Posts: 2
Joined: Fri Jan 27, 2023 4:41 am

Re: Interfacing HLW8032 And ESP32

Postby samikshasarnaik » Sun Jan 29, 2023 5:00 pm

Hey the baud rate is same. The problem is that the sensor gives output in 24 bits that too in hexadecimal. so i want the approach to deal with this array of 24 elements.

Who is online

Users browsing this forum: No registered users and 127 guests