You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-20Lines changed: 13 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,23 +73,16 @@ Allows you to connect your Modbus devices (such as sensors, energy meters, HVAC
73
73
# Hardware
74
74
Get the hardware (cheap clones from China are sufficient) and connect together:
75
75
76
-
***Arduino Nano, Uno or Mega** (and possibly other). On Mega you have to configure Serial in advanced settings in the sketch.
77
-
***W5100, W5200 or W5500 based Ethernet shield**. The ubiquitous W5100 shield for Uno/Mega is sufficient. If available, I recommend W5500 Ethernet Shield. !!! ENC28J60 will not work !!!
78
-
***TTL to RS485 module**:
79
-
- recommended: TTL to RS485 module with hardware automatic flow control (available on Aliexpress)<br>
80
-
Arduino <-> Module
81
-
Tx1 <-> Tx
82
-
Rx0 <-> Rx<br>
83
-
84
-
- not recommended: MAX485 module with flow controlled by pin (works but is vulnerable to burn outs)<br>
85
-
Arduino <-> MAX485
86
-
Tx1 <-> DI
87
-
Rx0 <-> RO
88
-
Pin 6 <-> DE,RE
76
+
***Arduino Nano, Uno or Mega** (and possibly other boards with Atmel chips).<br>On Mega you have to configure Serial in advanced settings in the sketch.
77
+
***Ethernet shield with WIZnet chip (W5100, W5200 or W5500)**.<br>The ubiquitous W5100 shield for Uno/Mega is sufficient. If available, I recommend W5500 Ethernet Shield. You can also use combo board MCU + ethernet (such as ATmega328 + W5500 board from Keyestudio).<br>ATTENTION: Ethernet shields with ENC28J60 chip will not work !!!
78
+
***TTL to RS485 module with an automatic flow direction control**.<br>You can buy cheap modules with MAX3485, MAX13487, SP485 or SP3485 chips (some of these modules are branded as "XY-017", "XY-485", "XY-G485", etc.) from Aliexpress and other marketplaces. Use stabilized external power supply 5V for both Arduino (incl. ethernet shield) and the RS485 module.<br>ATTENTION: Modules with MAX485 chip will work (use pin 6 for DE,RE), but are NOT recommended (no auto-direction, no ESD protection, no hot-swap protection)!!!
**Modbus RTU Request**. Send a Modbus RTU request directly from web UI. First byte (slave address) and second byte (function code) are mandatory, no need to calculate CRC. Gateway remembers last request for your convenience.
123
116
@@ -160,7 +153,7 @@ Enjoy :-)
160
153
- gateway marks the slave as "Slave Responded" if any response is sent by the slave (even error)
**Modbus TCP Idle Timeout**. Amount of time that a connection is always held alive (open) with no incoming traffic from a Modbus TCP master. This timeout should be longer than polling period (scan rate) set on your Modbus TCP master device.
0 commit comments