aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKing Kévin <kingkevin@cuvoodoo.info>2017-01-22 16:05:55 +0100
committerKing Kévin <kingkevin@cuvoodoo.info>2017-01-22 16:05:55 +0100
commit40d4e3aa19709222611c7854b4a51b5aab157adb (patch)
tree0860eb61caad4173d1c4e66d28f886722f41eb50
parent31c95b9ed15e8706829cc5de50342aa2fb851484 (diff)
document SDM120 connectionHEADmaster
-rw-r--r--README.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/README.md b/README.md
index 1773ebe..933566b 100644
--- a/README.md
+++ b/README.md
@@ -84,6 +84,27 @@ Connections 3xPZEM-004T <-> board:
Note: when connecting multiple meters one the same UART bus only keep one of the pull-up resistors (across all meters) on the TX pin (on the opto-coupler output), else the low level is not low enough for the micro-controller to correctly decode the signal.
+SDM120
+------
+
+This 1-phase 2-wire electricity meter provides an RS-485 interface using the ModBus RTU protocol.
+For the 3-phase 4-wire power distribution installation I used 3 meters, one per phase.
+
+They can be connected to the same RS-485 bus once individual addresses have been set.
+The used meter IDs (aka. slave address) are hard coded in `main.c`
+A UART to RS-485 converter is used to be able to communicate with the meters.
+
+The SDM120 ModBus protocol document provide by Eastron specify the commands and registers, but the timing (important) is specified in the SDM630 ModBus protocol document.
+
+Connections 3xSDM120 <-> board:
+
+- VCC; +5V
+- GND; ground
+- DI; PB10, USART3_TX
+- DE; PB1 (shared with RE since one is active low while the other is active high)
+- RE; PB1 (shared with DE since one is active low while the other is active high)
+- RO; PB11, USART3_RX
+
ESP8266
-------