Assembly and Use OTGWV2.3 2x2
Assembly and Use OTGWV2.3 2x2
There is comprehensive information on the design and a table of boilers and thermostats.
Operation
Necessary tools / components 7
Insertion between boiler and thermostat 7
Connecting to PC 7
Connection methods
USB 9
WeMos D1 Mini (ESP) 9
USR-TCP232-T2 (USR) 9
OpenTherm monitor
Installation 10
USB 10
Network 10
PIC Firmware Upgrade 10
Domoticz 11
- Soldering iron (with narrow tip) for electronics, preferably temperature controlled
- Solder for electronics, preferably 60/40 leaded solder with rosin flux core
Components:
Connections:
- Boiler
- Thermostat
- USB (power & data)
- WeMos D1 Mini or USR-TCP232-T2 (must be ordered separately)
- I2C bus for use by optional items e.g. OLED display
- PIC GPIO (for use by e.g. DS18S20 temperature sensor)
- Remove the PIC and sticky tape from the board before fitting the socket.
- Take care to position the socket in the proper direction! On one end you will see a
semicircular notch. This needs to be aligned with the marking on the board.
- Hold the socket down with one finger and turn the board over. Now solder two of
the corner pins to hold the socket.
- Check position then solder remaining pins.
USB connector
Position the connector on the board (can only fit one way) and solder 4 pins to the board.
Fill the mounting holes with solder so the socket is firmly attached.
2 x 2 pin connector
Position the 2 pin connectors on the place where you see the labels Therm and Boiler, with
the opening for the wires on the edge of the board. Solder in place.
You need to cut the 8 pin header strip into four 2 pin sections. Position one of the 2 pin
headers on the board where you see “RST”. Hold it vertical, turn the board over and solder
the pins. Repeat with the remaining 2 pin headers at JP1, JP2 and USB.
WeMos D1 Mini or USR-TCP232-T2 may be fitted to the board for WiFi or 10baseT Ethernet.
These optional interfaces are not included with the kit and must be purchased separately.
Note that different WeMos D1 Mini boards are available, some have small 3V3 regulators.
If you order from the Nodo shop, you will be sure to receive the correct WeMos D1 Mini for
your OpenTherm Gateway.
WeMos D1 Mini (red): Position one 8 socket header on the top side of the board. Hold it
vertical, turn the board over, and solder 2 of the pins. Check if the header is vertical on the
board, adjust if needed, and solder all pins. Repeat with the other socket header to make a
place for the WeMos D1 Mini to plug in.
Cleaning
Clean joints with isopropyl alcohol and a small brush to remove flux.
Install PIC
Make sure the board is not connected then carefully insert the pre-programmed PIC into the
IC socket, aligning the small semicircular mark on the chip with the semicircular cutout in the
socket.
-
- See http://otgw.tclcode.com/peripherals.html for more information
On board LEDs
LEDs can be reconfigured in software. Jumpers JP1 and JP2 must be installed to enable LEDs E & F.
There are also LEDs to show 5V, 24V and 3V3 (if used) power rails are active.
- SMD components
- USB powered with 500mA resettable fuse
- ATTiny85 watchdog for automatic reset of WeMos D1 Mini and PIC if software fails.
- Built in USB serial converter for easy operation with a PC. Automatically disabled if USR/ESP.
- Optional WeMos D1 Mini (WIFI) or USR-TCP232-T2 (Ethernet) for network connection
Items required:
- Cutting pliers
- USB A-B cable and a source of USB power at 5V 500mA (charger, hub, PC etc.)
It is very important not to accidentally swap over the Boiler and Therm connections.
Requirements:
- WeMos D1 Mini
- Micro USB cable
- PC
Do not connect a Micro USB cable to the WeMos D1 Mini while it is connected to the gateway!
Firmware is available for the WeMos D1 Mini which enables use of OpenTherm Monitor, allows
reprogramming of the PIC, and supports MQTT and REST API.
https://github.com/rvdbreemen/OTGW-firmware/wiki
Use a standard USB A-B cable to connect the OpenTherm Gateway to your PC.
If the OpenTherm Gateway is not recognized by your PC, download and install the USB driver:
https://github.com/wemos/ch340_driver/raw/master/CH341SER_WIN_3.5.ZIP
Network
Do not connect a Micro USB cable to the WeMos D1 Mini while it is connected to the gateway!
USR-TCP232-T2 (USR)
The module is set for the 192.168.0/24 subnet and has an IP address of 192.168.0.7. Set your PC to
192.168.0.201 then use a Web browser to connect to 192.168.0.7. The baud rate will need to be
altered to 9600. You should now be able to connect OpenTherm Monitor to 192.168.0.7 port 20108.
Refer to the instruction sheet provided with the module for more information on configuration.
Note The built in USB/serial chip is connected to the PIC unless ESP or USR modules are fitted, in
which case the PIC serial interface is connected to the ESP/USR instead. To enable the USB/serial if
ESP or USR modules are fitted, for example to reprogram the PIC, install a jumper on the USB pins.
The gateway can be controlled with this software, but also with another program such as Domoticz.
When the kit was sent to you, the PIC was pre-programmed with the latest firmware.
Later you may wish to update to a newer release. This can be downloaded from:
http://www.otgw.tclcode.com/download.html#hexfiles
Reprogramming via USB requires the most recent version of OpenTherm Monitor and a PC.
If you have a WeMos D1 Mini, use the WeMos firmware to reprogram the PIC.
- Settings Hardware
- Check “active”
- Provide a name, e.g. “OpenTherm”
- Select type: OpenThermGateway USB
- Data timeout: e.g. 5 minutes
- Serial port: USB port to which gateway is connected
- Add
- Settings Hardware
- Select “active”
- Provide a name, e.g. “OpenTherm”
- Select type: OpenThermGateway with LAN interface
- Data timeout: e.g. 5 minutes
- Remote address: the IP address of the WeMos D1 Mini connected to the gateway
- Port: the port number set in Device Serial server in the WeMos D1 Mini
- Add
After using either of these two methods, Domoticz will now show a button “settings”.
o Using this button you can add an outside temperature sensor. If your boiler already
has one of its own, this is not needed. But if not, you can add one here. The outside
temperature can be displayed on the thermostat display (if supported!)
o In the command field you can enter a command to be executed. Commands are
described here: http://otgw.tclcode.com/firmware.html#configuration
A very important command is “TT=0”, to remove the override temperature and
return to the normal thermostat program.