ESP32SR88 User Manual v1.00 ESP32SR88 User Manual Version 1.00 Copyright © 2020, Devantech Ltd. All rights reserved. www.robot-electronics.co.
ESP32SR88 User Manual v1.00 Table of Contents Overview....................................................................................................................................................3 Control Protocols.......................................................................................................................................3 WiFi....................................................................................................................................................
ESP32SR88 User Manual v1.00 Overview The ESP32SR88 is a WIFI connected relay module using the popular ESP32. It provides eight optically isolated inputs and eight volt free contact relay outputs with a current rating of up to 1Amp each. Power for the board is 12v dc, which can be provided by a standard universal wall power supply. A 1A or greater supply should be selected. Control Protocols 1. Simple plain text commands sent to the module. 2. HTML commands 3. MQTT 4.
ESP32SR88 User Manual v1.00 USB Configuration Commands ST Status. Return the system status Status: Firmware Version: 1.0 IP: 0.0.0.0 (192.168.0.48) Subnet: 255.255.255.0 Gateway: 192.168.0.1 Primary DNS: 192.168.0.1 Secondary DNS: 8.8.4.4 SSID: ******** Password: ******** ASCII TCP Port: 17126 RSSI: -62 MQTT Server: 192.168.0.
ESP32SR88 User Manual v1.00 RB ReBoot. This will restart the module. It may produce a lot of random characters as the ESP32’s boot logging runs at a different baud rate. If it succeeds in connecting to your network it will report the IP address. Re-Booting.. . 崳⸮⸮⸮⸮⸮⸮⸮⸮#XL###C⸮⸮⸮⸮⸮5)5)⸮⸮⸮ia⸮b⸮⸮⸮⸮⸮⸮⸮⸮奅#UY⸮ * o⸮⸮⸮⸮⸮⸮##i#U⸮5 ⸮Q⸮⸮⸮⸮⸮ WiFi connected. IP address: 192.168.0.6 IP Sets the modules IP address. Enter IP followed by the required IP address. Entering address 0.0.0.
ESP32SR88 User Manual v1.00 PD Sets the Primary DNS. The can be the IP address of your router which will then use your ISP provided DNS. You can also specify the DNS such as 8.8.8.8 for Googles DNS server. PD “192.168.0.1” OK. Saved Primary DNS: 192.168.0.1 SD Sets the Secondary DNS. The can be the IP address of your router which will then use your ISP provided DNS. You can also specify the DNS such as 8.8.4.4 for Googles DNS server. SD “8.8.4.4” OK. Saved Secondary DNS: 8.8.4.4 SS This sets the SSID.
ESP32SR88 User Manual v1.00 MS Sets the MQTT broker address MS “192.168.0.121” OK. Saved MQTT Server: 192.168.0.121 MD Sets the MQTT ID for this module MS “UniqueModuleName” OK. Saved MQTT ID: UniqueModuleName MP Sets the MQTT broker’s port. Normally, this should be set to 1883. mp 1883 OK. Saved MQTT port number: 1883 If you are not using MQTT, set the port to 0. This will turn off MQTT, otherwise it will continuously try to connect if there is no MQTT broker.
ESP32SR88 N1-N8 User Manual v1.00 Sets the MQTT topic this Input will publish to. N2 "Workshop/Heater" OK. Saved Input 2 Topic: Workshop/Heater The payload generated for input topics is a string with the first character set to ‘1’ if the input is open or unconnected, and ‘0’ if the input pins are shorted. (ASCII characters 0x31/0x30). Copyright © 2020, Devantech Ltd. All rights reserved. www.robot-electronics.co.
ESP32SR88 User Manual v1.00 TCP/IP Commands. The ESP32SR88 has a built in TCP/IP command set which allows you to control the module remotely. All commands are sent using plain ASCII text. PuTTY is a good cross platform terminal program to use for testing. The TCP/IP port is the one you set-up with the PA command during USB configuration. Do not use port 80 as that is reserved for the HTML commands and Webpage. SR Set Relay.
ESP32SR88 User Manual v1.00 GR Get Relay. Will return the state of the relay. To get the status of relay 6: GR 6 1 GR 6 0 GR 9 fail GI < relay 9 does not exist. Get Input. Will return the status of an input. GI 2 0 GI 2 1 GI 9 fail Input 2 is low (Green Led is on) Input 2 is high (Green Led is off) Only 8 inputs available AL Get All 8 inputs. AL 11111011 Here, Input 6 is low, all others are high. Inputs are numbered from left to right, 1 to 8. Copyright © 2020, Devantech Ltd. All rights reserved.
ESP32SR88 User Manual v1.00 HTML Commands. There are a set of HTML commands that can be used to control the module. ?Rly3=1 This will turn on relay 3 ?Rly3=0 This will turn off relay 3 ?Rly3=2 This will toggle relay 3 to the opposite state. You can enter the commands into a browser immediately after the IP address. http://192.168.0.3/?Rly3=1 This will turn on relay 3. In response the module will return an XML file, which your browser will display.
ESP32SR88 User Manual v1.00 Webpage The built in webpage can be used as a remote app to monitor and control the relays. Your can access the page as a default with just the IP address or by specifying index.htm. The webpage contains the Javascript to send an HTML toggle command, as described in the previous section. It will send the toggle command each time a button is clicked. It then uses the responding XML file to colour the buttons and set the Input buttons to indicate input status.
ESP32SR88 User Manual v1.00 Schematics CPU Copyright © 2020, Devantech Ltd. All rights reserved. www.robot-electronics.co.
ESP32SR88 User Manual v1.00 Power Supply Copyright © 2020, Devantech Ltd. All rights reserved. www.robot-electronics.co.
ESP32SR88 User Manual v1.00 Relay Outputs 1 of 8 identical circuits shown The relays are capable of switching up to 1 Amp at 30vdc or 30vac. Copyright © 2020, Devantech Ltd. All rights reserved. www.robot-electronics.co.
ESP32SR88 User Manual v1.00 Digital Inputs Copyright © 2020, Devantech Ltd. All rights reserved. www.robot-electronics.co.
ESP32SR88 User Manual v1.00 PCB dimensions Copyright © 2020, Devantech Ltd. All rights reserved. www.robot-electronics.co.
ESP32SR88 User Manual v1.00 Notes Copyright © 2020, Devantech Ltd. All rights reserved. www.robot-electronics.co.