dasetiawan / ESP32-PZEM004T

power metering using ESP32 and PZEM004T over MQTT
5 stars 3 forks source link

Did you make it work in ESP32 #1

Open Cristianistrate opened 4 years ago

Cristianistrate commented 4 years ago

Hi, I try to connect PZEM004Tv3 to esp32. No back response. Works fine with ESP8266 (Software serial). The RX LED on PZEM flashes, but not the TX LED flash (as with ESP8266) Pins 16,17. Any suggestions ?

dasetiawan commented 4 years ago

Hi @Cristianistrate, at first if directly connected pzem004t with esp32 there will be no response, this is due to different voltages. so to overcome this it is necessary to add a resistor with a value of 1k ohm on pzem004t so that it will work well on esp32

Cristianistrate commented 4 years ago

Hi, I put the 1K resistor, no luck. Same result. Any other suggestions (again, the module works fine on ESP8266)

dasetiawan commented 4 years ago

pzem

is the resistor that you added is correct like this?

Cristianistrate commented 4 years ago

I put it between 5v pins and firs pin of optocupler: https://user-images.githubusercontent.com/38515985/78626132-0a479380-78b8-11ea-8352-d65957713bdb.jpg I will put it like you and test it! Thanks!

dasetiawan commented 4 years ago

pzem-resistor

to add a resistor, the installation position is like this

Cristianistrate commented 4 years ago

Still no luck. I put 2 500ohm resistors in series =1k https://www.youtube.com/watch?v=mFvLA4htE50 Thank you for your help, buy I think is time to give up