ilgrank / SDM_Energy_Meter

reading SDM120 / SDM220 / SDM630 modbus energy meters from esp8266 arduino via rs232 to rs485 converter (tamplate library)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Template library for reading SDM120 / SDM220 / SDM630 Modbus Energy meters.

Reading via Software Serial library (https://github.com/plerup/espsoftwareserial)
and rs232<->rs485 converter with automatic flow direction control (look at hardware_sdm220.jpg)
NOTE: Not work with simple max485-only converters because this lib does not control max485 DE/RE lines (at this moment)

Tested on wemos d1 mini->ESP8266 with Arduino 1.6.9 & 2.3.0 esp8266 core

crc calculation by Jaime GarcĂ­a (https://github.com/peninquen/Modbus-Energy-Monitor-Arduino/)

2016 Reaper7

UPDATE:

About

reading SDM120 / SDM220 / SDM630 modbus energy meters from esp8266 arduino via rs232 to rs485 converter (tamplate library)


Languages

Language:C++ 100.0%