I think you can connect a single device direct to Tx/Rx without the MAX485 but you can definitely use an HW-655 without the MAX 485. There are details here how to mod the PZEM. PZEM-0xx power monitor - Tasmota
The PZEM works by Tasmota requesting the registers from the PZEM which then sends the information. Your wiring I looks to be set to receive only . Remember that the MAX485 needs 5V as does the PZEM.
Regards
Phil K
Sent from Mail for Windows
--
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/ccf1c3bf-97bb-47a0-828b-bc94fe8b4d56n%40googlegroups.com.
DE needs to be high to enable and RE needs to be low to enable
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/e6ce6d54-71b6-4fa9-9f70-3969a7dc9bbbn%40googlegroups.com.
You need to be very careful with PZEM-017s. The 0Vs on both PZEMs need to be the same if they are connected to the same Tasmota device otherwise you will get current flowing between the devices. If that is OK then it is possible to connect more than one but you’ll need to read the Power Management pages.
It’s a while since I’ve set up my PZEMs but I think you set the shunt value in the PZEM not Tasmota.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/3acc4944-0400-4fca-b737-5d3cdbb18b77n%40googlegroups.com.
That’s exactly the problem. The inputs are isolated from each other (and the battery). If you connect to one ESP8266 you get a current flow from one PZEM to the other. I found out the hard way with the wires burning out – fortunately I was using telephone wire. There’s a warning in the instructions not to use the PC USB to power the PZEM – that’s the reason why.
I’ve ended up with 3 separate ESP8266s (with separate PSUs) for wind, solar and output to the inverter. I used HW-655s as the level shifters to the PZEMs. They’ve been in about 18months I have another PZEM (not fitted yet) tp measure charge current which will be fitted to the same HW-655 as the output to the charger.
In the UK we avoid using the term ‘ground’ in case it’s confused with ‘earth’ on the mains side. So we have 12V (say) and 0V on DC and Live, Neutral and Earth on AC.
Although, in theory, you can change the shunt value in settings in Tasmota you will reduce the accuracy of the PZEM because the PZEM will not be working on its FSD range.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/2ea8fa8e-2f20-42d5-8118-a1ffd9743150n%40googlegroups.com.
If you are powering the PZEM only via the sensing terminals you will probably be OK. The 0V on the USB input and the 0V on the sensing terminal are connected. If you connect 2 PZEMs to the same PSU you bridge the 2 circuits together (which are isolated from each other by the charge controller). That’s why you can get a current flowing.
One of the things I found out when I was setting mine up is the realisation that the battery (on the output from the charge controller) was the ‘load’ which means putting it in a slightly different place in the circuit.
The HW-655 has a 5V input and has 5V Tx Rx and 0V on a pin header. There is a voltage shifter to allow RS485 comms directly from the header. I’m not using the relay at all on mine. Mike Ingraham produced a How to based on what I did here PZEM-0xx power monitor - Tasmota
Regards
Phil K
Sent from Mail for Windows
From: Khurram
Sent: 18 September 2021 10:50
To: TasmotaUsers
Subject: Re: How to wire pzem-017 thru 4 pin Max485 converter to nodemcuv3
I must confess that I do not understand how the current will flow from 1 pzem to the other. At the same time, I do not want to burn anything :) So I will go with 1 pzem on the load side only. I will not be connecting the 5V external power to pzem as the charge controller will shut off the load connections at 10.5 V.
The only reason I wanted to a pzem on the solar side was to check how much current are the plates delivering; the voltage is not important as I am measuring it on the load side and it is the same across all three pairs of connections (solar, battery and load). I have tried reading current on the solar side with an ACS712 (30 amp version) but it gives garbage readings all the time (for example, the reading yesterday at midnight was 21 amps and now when the sun is shining in the afternoon, it is 23 amps while the reading on my dc meter is 12 amps).
I am not aware of HW-655. A quick google search shows a match for single channel relays with ESP-01. If so, how are you actually using them with the ESP8266
? My plan was to use a relay (controllable from the nodemcu) to turn 5V supply to the pzem on/off. Is this how you are using the HW-655?
I stand corrected in my terminology about DC signals. 12V and 0V is a definitely better way to refer to the DC positive and negative.
Thanks.
On Saturday, 18 September 2021 at 00:40:03 UTC+5 knowles...@gmail.com wrote:
That’s exactly the problem. The inputs are isolated from each other (and the battery). If you connect to one ESP8266 you get a current flow from one PZEM to the other. I found out the hard way with the wires burning out – fortunately I was using telephone wire. There’s a warning in the instructions not to use the PC USB to power the PZEM – that’s the reason why.
I’ve ended up with 3 separate ESP8266s (with separate PSUs) for wind, solar and output to the inverter. I used HW-655s as the level shifters to the PZEMs. They’ve been in about 18months I have another PZEM (not fitted yet) tp measure charge current which will be fitted to the same HW-655 as the output to the charger.
In the UK we avoid using the term ‘ground’ in case it’s confused with ‘earth’ on the mains side. So we have 12V (say) and 0V on DC and Live, Neutral and Earth on AC.
Although, in theory, you can change the shunt value in settings in Tasmota you will reduce the accuracy of the PZEM because the PZEM will not be working on its FSD range.
Regards
Phil K
Sent from Mail for Windows
From: Khurram
Sent: 17 September 2021 19:44
To: TasmotaUsers
Subject: Re: How to wire pzem-017 thru 4 pin Max485 converter to nodemcuv3
By 0Vs, do you mean the GND connection? My setup is a simple PWM charge controller with 3 pairs of connections: solar panel, battery and load (the positive terminal for each of these is common). My idea was to use 1 pzem-017 to read the load voltage and current and use the other pzem-017 to read the solar panel voltage and current. The tasmota device will be on the load side of the charge controller along with 1 of the pzems. Both pzem and the max485 will get power from a buck converter connected to the load side of the charge controller. I am not clear if this addresses the concern you raised above.
I know that you can set the shunt value on the pzem-017 itself. I was asking if there a command (setoption or something else) that can set the shunt value from tasmota?
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/3acc4944-0400-4fca-b737-5d3cdbb18b77n%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.To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/2ea8fa8e-2f20-42d5-8118-a1ffd9743150n%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.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/24d137e2-1984-4db0-9430-cdb2568d6f3en%40googlegroups.com.

To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/20766eb6-7b78-425f-9954-61bb58ca798cn%40googlegroups.com.
That may be OK. You’ll need to check that the DC-DC buck converters are isolated from input to output (a lot are not). You would be better powering the NodeMCU and PZEMs from the battery as the load will turn off at the low battery point. They won’t unduly drain the battery.
As I said you can connect the sensing -ve on the load PZEM to the battery -ve and dispense with the second buck converter. You will get a voltage reading when it’s switched off but there will be no current. That will be useful in itself because you will know the battery voltage. If you do that the PZEM1 and NodeMCU would be powered from the buck converter.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/6b0bf378-bf27-4976-9bc3-70ddaf22c546n%40googlegroups.com.

There’s an issue on Tasmota which suggests you need diodes in the Tx line.
To be honest I would supply a buck from the battery to power the NodeMCU and the Load PZEM. I would not bother with a buck for the solar side. As soon as the solar goes above 7V (which happens at low light levels) the PZEM will start to function.
Regards
Phil K
Sent from Mail for Windows
From: Khurram
Sent: 19 September 2021 22:38
To: TasmotaUsers
Subject: Re: How to wire pzem-017 thru 4 pin Max485 converter to nodemcuv3
Thanks for your help. I do not mind if the NodeMCU and pzems turn off on low battery condition; hopefully it wont reach that stage. The isolation requirement for buck converter is a tough one here; the ones I have are not isolated. If I go with 1 pzem only (on the load side), would it be ok if the buck converter is not isolated?
I also have another problem communicating with the pzem. In the console window, I get the following continuously (after setting weblog to debug):
PDC: PzemDc 1 error 7
I could not find any matches in google. The tx and rx leds on the max485 blink continuously (I changed the converter to the one shown in https://github.com/arendst/Tasmota/issues/3694#issuecomment-429898061). Tasmota is configured as follows:
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/bf94bc97-5ccd-4985-a2d5-353746929fcfn%40googlegroups.com.
The PZEM-004T V3 is RS485 – that’s why it says to use the PZEM-016/7 driver in that article.
The PZEM doesn’t need a PSU plugged into the microUSB once the voltage is over 7V as it will take the voltage from the sensor input (not the RS485 side). The 0V on the microUSB is connected to the battery -ve terminal on the sensor side. That’s the reason why you can have problems with 2 PZEMs which do not have a common 0V – and why they say not to use a PC USB to power it. The label on the bottom the unit says “When the input test voltage is <7V, please use USB port to be the power supply”. The solar panels will easily generate 7V at low light levels.
The Schottky diode is to limit the ‘reflections’ on the data line as there is no termination on the line.
Regards
Phil K
Sent from Mail for Windows
From: Khurram
Sent: 20 September 2021 21:42
To: TasmotaUsers
Subject: Re: How to wire pzem-017 thru 4 pin Max485 converter to nodemcuv3
That article is for the pzem-004t. Does it apply to the pzem-017 also? I don't have any schottky diodes at the moment; I will try to get them tomorrow and try it out. By the way, the diode+resistor based network seems to be for the max converter mentioned at https://github.com/arendst/Tasmota/issues/3694#issuecomment-429898061. I have nothing but trouble with this converter; maybe my piece is faulty. I have since moved back to the 4 pin max485 converter mentioned in my first post. The nodemcu detects the pzem reading without any problems. Now on to the next step to check readings from 2 pzems.
I don't understand why I would not need a buck converter for the RS485 supply side of the solar pzem-0017. My setup is 12V. If I just wire the solar pzem-017 RS485 side supply signals directly to the solar + and -, won't it blow up the pzem once the solar plates voltage increase beyond 5V?
Thanks
Khurram
On Monday, 20 September 2021 at 11:38:38 UTC+5 knowles...@gmail.com wrote:
There’s an issue on Tasmota which suggests you need diodes in the Tx line.
To be honest I would supply a buck from the battery to power the NodeMCU and the Load PZEM. I would not bother with a buck for the solar side. As soon as the solar goes above 7V (which happens at low light levels) the PZEM will start to function.
Regards
Phil K
Sent from Mail for Windows
From: Khurram
Sent: 19 September 2021 22:38
To: TasmotaUsers
Subject: Re: How to wire pzem-017 thru 4 pin Max485 converter to nodemcuv3
Thanks for your help. I do not mind if the NodeMCU and pzems turn off on low battery condition; hopefully it wont reach that stage. The isolation requirement for buck converter is a tough one here; the ones I have are not isolated. If I go with 1 pzem only (on the load side), would it be ok if the buck converter is not isolated?
I also have another problem communicating with the pzem. In the console window, I get the following continuously (after setting weblog to debug):
PDC: PzemDc 1 error 7
I could not find any matches in google. The tx and rx leds on the max485 blink continuously (I changed the converter to the one shown in https://github.com/arendst/Tasmota/issues/3694#issuecomment-429898061). Tasmota is configured as follows:
I have used the same gpio assignments as in the link above but the behavior is the same. What am I doing wrong?
Thanks,
Khurram
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/20766eb6-7b78-425f-9954-61bb58ca798cn%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.To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/6b0bf378-bf27-4976-9bc3-70ddaf22c546n%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.To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/bf94bc97-5ccd-4985-a2d5-353746929fcfn%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.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/a6f2be15-0872-4e51-a049-061797b68dc0n%40googlegroups.com.
Yes you need the shunt side connections but you also need to use the 5V and 0V connections on the RS485 side. The RS485 side is isolated form the sensing side and needs to be powered. The power should come from the MAX485 as a ‘daisy chain’.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/186dd49e-10e0-4d7e-8fbd-38ba92b7ca32n%40googlegroups.com.
Yes, but I would use the Battery terminals as the Load terminals may switch off (despite the Solar having an input). This could cause issues with the ESP
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/48b9c2c9-6dc7-4b4f-b467-da30edb1c6efn%40googlegroups.com.
That’s the ‘reflection’ issue that the Schottky diode fixes. The resistor terminator doesn’t always work.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/cf775723-2a5b-4d98-9bfe-2ec80ee8dcd1n%40googlegroups.com.