Skip to content

Commit b44bcee

Browse files
authored
Fritzing schema (#29)
1 parent e93a5df commit b44bcee

File tree

2 files changed

+13
-20
lines changed

2 files changed

+13
-20
lines changed

README.md

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -73,23 +73,16 @@ Allows you to connect your Modbus devices (such as sensors, energy meters, HVAC
7373
# Hardware
7474
Get the hardware (cheap clones from China are sufficient) and connect together:
7575

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)!!!
79+
80+
<img src="pics/fritzing.png" alt="fritzing" />
81+
8982

9083
Here is my HW setup:
91-
Terminal shield + Arduino Nano + W5500 ethernet shield (RobotDyn, no longer available) + TTL to RS485 module (HW automatic flow control)
92-
<img src="pics/HW.jpg" alt="01" style="zoom:100%;" />
84+
Terminal shield + Arduino Nano + W5500 ethernet shield (RobotDyn, no longer available) + XY-017 TTL to RS485 module (automatic flow control)
85+
<img src="pics/HW.jpg" alt="HW" style="zoom:100%;" />
9386

9487
# Firmware
9588

@@ -104,7 +97,7 @@ Enjoy :-)
10497
- settings marked \*\* are only available if ENABLE_EXTRA_DIAG is defined in the sketch
10598

10699
## System Info
107-
<img src="pics/modbus1.png" alt="01" style="zoom:100%;" />
100+
<img src="pics/modbus1.png" alt="modbus1" style="zoom:100%;" />
108101

109102
**Load Default Settings**. Loads default settings (see DEFAULT_CONFIG in advanced settings). MAC address is retained.
110103

@@ -117,7 +110,7 @@ Enjoy :-)
117110
**MAC Address**. First 3 bytes are fixed 90:A2:DA, remaining 3 bytes are random. You can also set manual MAC in IP Settings.
118111

119112
## Modbus Status
120-
<img src="pics/modbus2.png" alt="02" style="zoom:100%;" />
113+
<img src="pics/modbus2.png" alt="modbus2" style="zoom:100%;" />
121114

122115
**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.
123116

@@ -160,7 +153,7 @@ Enjoy :-)
160153
- gateway marks the slave as "Slave Responded" if any response is sent by the slave (even error)
161154

162155
## IP Settings
163-
<img src="pics/modbus3.png" alt="03" style="zoom:100%;" />
156+
<img src="pics/modbus3.png" alt="modbus3" style="zoom:100%;" />
164157

165158
**MAC Address**. Change MAC address. "Randomize" button will generate new random MAC (first 3 bytes fixed 90:A2:DA, last 3 bytes will be random).
166159

@@ -175,7 +168,7 @@ Enjoy :-)
175168
**DNS**.\*
176169

177170
## TCP/UDP Settings
178-
<img src="pics/modbus4.png" alt="04" style="zoom:100%;" />
171+
<img src="pics/modbus4.png" alt="modbus4" style="zoom:100%;" />
179172

180173
**Modbus TCP Port**.
181174

@@ -188,7 +181,7 @@ Enjoy :-)
188181
**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.
189182

190183
## RTU Settings
191-
<img src="pics/modbus5.png" alt="05" style="zoom:100%;" />
184+
<img src="pics/modbus5.png" alt="modbus5" style="zoom:100%;" />
192185

193186
**Baud Rate**. Choose baud rate from a pre-aranged list. The list can be adjusted in advanced settings.
194187

pics/fritzing.png

106 KB
Loading

0 commit comments

Comments
 (0)