roncoa / SmartHome

SmartHome: firmware per ESP8266 - Casa domotica
https://github.com/roncoa/SmartHome
GNU General Public License v3.0
40 stars 17 forks source link

PZEM-004 e WemosD1Mini #10

Open martusi61 opened 8 months ago

martusi61 commented 8 months ago

For years I have owned a PZEM-004 V.3.00, the one with the displays, but I have never managed to interface it with a WemosD1Mini, I tried with Tasmota without success, but one day, on the Home Assistant Facebook group, Andrea Roncoroni advised me to use SmartHome, I tried it without looking into it further, then stopped. Now I'm back to testing, but even with this firmware I can't get it to work. I'll add some screenshots. Config.pdf modifica Schema Risultato.pdf

roncoa commented 8 months ago

Try inverting TX and RX

Il giorno mar 26 mar 2024 alle ore 15:11 Maurizio Artusi < @.***> ha scritto:

For years I have owned a PZEM-004 V.3.00, the one with the displays, but I have never managed to interface it with a WemosD1Mini, I tried with Tasmota without success, but one day, on the Home Assistant Facebook group, Andrea Roncoroni advised me to use SmartHome, I tried it without looking into it further, then stopped. Now I'm back to testing, but even with this firmware I can't get it to work. I'll add some screenshots. Config.pdf https://github.com/roncoa/SmartHome/files/14759622/Config.pdf modifica.png (view on web) https://github.com/roncoa/SmartHome/assets/51626288/40cabc3a-79cc-4eea-ac60-bb0776abcc2b Schema.png (view on web) https://github.com/roncoa/SmartHome/assets/51626288/21316b00-ddee-4d8e-b546-6a4b8a82c589

— Reply to this email directly, view it on GitHub https://github.com/roncoa/SmartHome/issues/10, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEUJ3ENRH5JXJVA2ORXVULTY2FXXDAVCNFSM6AAAAABFJAKY52VHI2DSMVQWIX3LMV43ASLTON2WKOZSGIYDQMZXGMYDCMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

martusi61 commented 8 months ago

Happy Easter dear.

I tried:

RX of PZEM connect to RX of WemosD1Mini with SmartHome GPIO RX=3 TX of PZEM connect to TX of WemosD1Mini with SmartHome GPIO TX=1

RX of PZEM connect to RX of WemosD1Mini with SmartHome GPIO RX=1 TX of PZEM connect to TX of WemosD1Mini with SmartHome GPIO TX=3

RX of PZEM connect to TX of WemosD1Mini with SmartHome GPIO RX=3 TX of PZEM connect to RX of WemosD1Mini with SmartHome GPIO TX=1

RX of PZEM connect to TX of WemosD1Mini with SmartHome GPIO RX=1 TX of PZEM connect to RX of WemosD1Mini with SmartHome GPIO TX=3

but it doesn't work. Are the other configuration parameters correct?

martusi61 commented 8 months ago

I also tried with GPIO 4 and 5, to no avail. I also tested the continuity of the connections and it's fine.

roncoa commented 8 months ago

I'm sorry, it's always worked for me. I also used the PZEM with an ESP01 as well as with the D1 MINI.

Il giorno sab 30 mar 2024 alle ore 16:11 Maurizio Artusi < @.***> ha scritto:

I also tried with GPIO 4 and 5, to no avail. I also tested the continuity of the connections and it's fine.

— Reply to this email directly, view it on GitHub https://github.com/roncoa/SmartHome/issues/10#issuecomment-2028100055, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEUJ3EOSMDTCOEP25XQZX73Y23BXXAVCNFSM6AAAAABFJAKY52VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRYGEYDAMBVGU . You are receiving this because you commented.Message ID: @.***>

martusi61 commented 8 months ago

So the settings are correct, mine are the same as yours.