Hello, I am not used to posting threads in forums, so forgive me and correct me if this is not the right forum or the right form.
The pzem-004 v3 is a power sensor nodule. It provides info like volt, amps, power factor, frequency....
In my house, I have a 3 phase system, therefore I use 3 of these modules.
I have used them before, both with a single module and with 3 modules (with different addresses) connected in parallel.
My success was with a pic18f26k22.
Then I needed to interface with a LCD, a spi memory, and an i2c RTC. So I switched to a chip of the same family but more peripherals: pic18f46k22. Here is my failure: when I connect all 3 pzems, I cannot query them, I timeout. If I connect 2 pzems, any 2: Phase1 and 2 or Phase 2 and 3 or Phase 1 and 3, It works like a charm. This eliminates issues like: one pzem is bad, or the connecting cables are bad. I even swapped the cables. As soon as the 3 of them are connected. It stops.
My first thought was: not enough power, so I made the PCB track to power the pzems, wider. I even connected 2 jumpers directly to the 5v and Vss (Gnd). It made no difference.
I understand that without schematics it is impossible to debug my specific problem.
So here is roughly the connection: pic18f46k22 Pin RC6 (TX1) to pzem Rx, Pin RC7 (RX1) to pzem Tx, 5v to pzem's 5v, Vss to Pzem's GND, all pzems are connected in parallel.
Should I blame the microcontroller? I never do that. I always blame myself and rightfully so.
I'm just asking for general guidance, what would you check or double check or try if this happened to you? I'm not lazy, I'm running out of ideas.
Thanks a lot
The pzem-004 v3 is a power sensor nodule. It provides info like volt, amps, power factor, frequency....
In my house, I have a 3 phase system, therefore I use 3 of these modules.
I have used them before, both with a single module and with 3 modules (with different addresses) connected in parallel.
My success was with a pic18f26k22.
Then I needed to interface with a LCD, a spi memory, and an i2c RTC. So I switched to a chip of the same family but more peripherals: pic18f46k22. Here is my failure: when I connect all 3 pzems, I cannot query them, I timeout. If I connect 2 pzems, any 2: Phase1 and 2 or Phase 2 and 3 or Phase 1 and 3, It works like a charm. This eliminates issues like: one pzem is bad, or the connecting cables are bad. I even swapped the cables. As soon as the 3 of them are connected. It stops.
My first thought was: not enough power, so I made the PCB track to power the pzems, wider. I even connected 2 jumpers directly to the 5v and Vss (Gnd). It made no difference.
I understand that without schematics it is impossible to debug my specific problem.
So here is roughly the connection: pic18f46k22 Pin RC6 (TX1) to pzem Rx, Pin RC7 (RX1) to pzem Tx, 5v to pzem's 5v, Vss to Pzem's GND, all pzems are connected in parallel.
Should I blame the microcontroller? I never do that. I always blame myself and rightfully so.
I'm just asking for general guidance, what would you check or double check or try if this happened to you? I'm not lazy, I'm running out of ideas.
Thanks a lot