Hy guys, one's again a Arduino problem.
I am trying to read the Modbus-interface of an SDM230 energy meter, using these codes:
https://github.com/peninquen/Modbus-Energy-Monitor-Arduino/tree/master/Old_versions/Modbus-Energy-Monitor-ArduinoThe energy meter is connected via a RS458-TTL-converter.
The only change I made so far, was to edit one line in the Modbus-Energy-Monitor-Arduino.ino file
#define MB_SERIAL_PORT &Serial1
to
#define MB_SERIAL_PORT &Serial
since Arduino Nano has just one serial port.
With that, the whole mess at least compiles.
But I get no activity on the TX/RX pins, and therefore only gibberish (as far as the data goes) on the serial port , the header is fine.
I compared the data-addresses from the SDM120 to my SDM230, and they are the same.
Could it be, that this code is not compatible with Arduino Nano?
Best regards,
Mathias