peninquen / Modbus-Energy-Monitor-Arduino

A class to collect data from a energy monitor that uses modbus protocol.
Apache License 2.0
46 stars 27 forks source link

Connection diagram available #40

Open Ivohome opened 7 years ago

Ivohome commented 7 years ago

Hi,

I want to build this great project but I cannot find the connection diagram. To which pins do I need to connect the MAX485 adapter? I would like to use an Arduino Mega board and serial2 = pin 16(TX) and 17(RX), but the code says Txenable = pin 17. Should this be changed? Please upload a connection diagram, that would make things much more clear to me or describe where pins R1(RO), R2(RE), R3(DE) and R4(DI) should be connected to.

Did I interpret the RS485 settings in the SDM630 correct when set to? Addr: 001 Baud: 9.6k par1: none stop: 2

Thanks a lot!

Ivohome commented 7 years ago

in the meantime I have connection but the stable version only gives 0,0 for every value. The old version works, but also sends a lot of lines in between. How can I get rid of those lines since I do not want to log these...