Advertisement

Quick Links

ESP32SR88
User Manual v1.7
ESP32SR88
User Manual Version 1.7
Copyright
© 2021,
Devantech Ltd.
1
www.robot-electronics.co.uk
All rights reserved.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP32SR88 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Devantech ESP32SR88

  • Page 1 ESP32SR88 User Manual v1.7 ESP32SR88 User Manual Version 1.7 Copyright © 2021, Devantech Ltd. www.robot-electronics.co.uk All rights reserved.
  • Page 2: Table Of Contents

    ESP32SR88 User Manual v1.7 Table of Contents Changes from v1.5 to v1.6.........................4 Overview..............................4 Control Protocols............................4 WiFi................................4 Configuration.............................4 USB Configuration Commands.........................5 ST Status. Return the system status.......................5 RB ReBoot............................6 IP Sets the modules IP address......................6 SB Sets the SuBnet mask........................6 GW Sets the GateWay address......................6 PD Sets the Primary DNS........................6...
  • Page 3: Changes From V1.5 To V1.6

    4. A built in webpage WiFi The ESP32SR88 connects via 2.4GHz WiFi to your network, therefore it must be located in a position where it gets a good WiFi signal. The module should not be enclosed in a metal box/cabinet as this will shield the WiFi signal.
  • Page 4: Usb Configuration Commands

    ESP32SR88 User Manual v1.7 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.121...
  • Page 5: Rb Reboot

    ESP32SR88 User Manual v1.7 When the SSID and Password are setup, they will be displayed until the next reset, After that they will only show as ********. RB ReBoot. This will restart the module. It may produce a lot of random characters as the ESP32’s boot...
  • Page 6: Pd Sets The Primary Dns

    OK. Saved Secondary DNS: 8.8.4.4 SS This sets the SSID. The SSID is the public name of your WIFI network Enter your WIFI’s SSID here. SS “Devantech” OK. Saved SSID: Devantech PW Sets your networks WIFI password. PW "K]~kCZUV*UGA6SG~" OK. Saved Password: K]~kCZUV*UGA6SG~ PA Sets the TCP/IP port number for the ASCII commands.
  • Page 7: Ms Sets The Mqtt Broker Address

    ESP32SR88 User Manual v1.7 AP Sets the ASCII password AP “MySecretPassword” OK. Saved AsciiPassword: MySecretPassword” 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.
  • Page 8: Mw Sets The Mqtt Password (V1.6+)

    ESP32SR88 User Manual v1.7 MW Sets the MQTT password (V1.6+) This is for MQTT brokers that are setup to require a username and password. MW “mySuperSecretPassword” OK. Saved MQTT Password: mySuperSecretPassword Copyright © 2021, Devantech Ltd. www.robot-electronics.co.uk All rights reserved.
  • Page 9: R1-R8 Sets The Mqtt Topic This Relay Is Subscribed To

    ESP32SR88 User Manual v1.7 R1-R8 Sets the MQTT topic this relay is subscribed to. R3 "Workshop/Heater" OK. Saved Relay 3 Topic: Workshop/Heater In use, the payload for relay topics should be a string with the first character set to ‘0’ or ‘1’...
  • Page 10: Tcp/Ip Commands

    User Manual v1.7 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.
  • Page 11: Gr Get Relay

    ESP32SR88 User Manual v1.7 GR Get Relay. Will return the state of the relay. To get the status of relay 6: GR 6 GR 6 GR 9 fail < relay 9 does not exist. Get Input. Will return the status of an input.
  • Page 12: Html Commands

    ESP32SR88 User Manual v1.7 HTML Commands. There are a set of HTML commands that can be used to control the module. ?Rly3=1This will turn on relay 3 ?Rly3=0This will turn off relay 3 ?Rly3=2This will toggle relay 3 to the opposite state.
  • Page 13: Webpage

    ESP32SR88 User Manual v1.7 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.
  • Page 14: Schematics

    ESP32SR88 User Manual v1.7 Schematics Copyright © 2021, Devantech Ltd. www.robot-electronics.co.uk All rights reserved.
  • Page 15: Power Supply

    ESP32SR88 User Manual v1.7 Power Supply Copyright © 2021, Devantech Ltd. www.robot-electronics.co.uk All rights reserved.
  • Page 16: Relay Outputs

    ESP32SR88 User Manual v1.7 Relay Outputs 1 of 8 identical circuits shown The relays are capable of switching up to 1 Amp at 30vdc or 30vac. Copyright © 2021, Devantech Ltd. www.robot-electronics.co.uk All rights reserved.
  • Page 17: Digital Inputs

    ESP32SR88 User Manual v1.7 Digital Inputs Copyright © 2021, Devantech Ltd. www.robot-electronics.co.uk All rights reserved.
  • Page 18: Pcb Dimensions

    ESP32SR88 User Manual v1.7 PCB dimensions Copyright © 2021, Devantech Ltd. www.robot-electronics.co.uk All rights reserved.
  • Page 19: Programming The Esp32Lrxx With Arduino Studio

    User Manual v1.7 Appendix 1 Programming the ESP32SR88 with Arduino studio Customising the ESP32SR88 can easily be achieved by using the Arduino studio and importing the required libraries. Step 1 – Arduino IDE installation Obtain and install the latest Arduino IDE from https://www.arduino.cc/en/Main/Software...
  • Page 20 ESP32SR88 User Manual v1.7 Step 2 – Add the ESP32 library URL to the Arduino IDE Go to File>Preferences Now in the Preferences screen below we need to enter https://dl.espressif.com/dl/package_esp32_index.json into the “Additional Board Manager URLs” option. If you already have libraries added you may need to add a comma between the URLs You can now click the OK button to finish with this screen.
  • Page 21 ESP32SR88 User Manual v1.7 Step 3 – Install the ESP32 library Go to Tools>Board:>Boards Manager… Copyright © 2021, Devantech Ltd. www.robot-electronics.co.uk All rights reserved.
  • Page 22 ESP32SR88 User Manual v1.7 Now filter by “esp32” and install the Espressif Systems library Copyright © 2021, Devantech Ltd. www.robot-electronics.co.uk All rights reserved.
  • Page 23 ESP32SR88 User Manual v1.7 Step 4 – Board selection Go to Tools>Board:> and select ESP32 Dev Module Copyright © 2021, Devantech Ltd. www.robot-electronics.co.uk All rights reserved.
  • Page 24 Go to Tools>Manage Libraries… Filter by PubSubClient and select PubSubClient by Nick O’Leary, then press the install button That’s it! Your Arduino IDE should now be able to program the ESP32SR88 module. The factory shipped code is available Here: https://github.com/devantech Copyright ©...
  • Page 25: Notes

    ESP32SR88 User Manual v1.7 Notes Copyright © 2021, Devantech Ltd. www.robot-electronics.co.uk All rights reserved.

Table of Contents