ESP32-S3-Relay-6CH-Bluetooth
From Waveshare Wiki
Bluetooth Control
Connect the ESP32-S3-Relay-6CH device using the Bluetooth debugging assistant on your mobile phone, and send data to ESP32-S3-Relay-6CH to control the opening and closing of each relay. Please note: Some Bluetooth debugging assistants send data in ASCII format by default, and you need to enter the correct control instructions according to the Bluetooth debugging assistant before controlling the device.
Operation Command Command Function ASCII Hex 1 0x31 Switch the state of the CH1 relay 2 0x32 Switch the state of the CH2 relay 3 0x33 Switch the state of the CH3 relay 4 0x34 Switch the state of the CH4 relay 5 0x35 Switch the state of the CH5 relay 6 0x36 Switch the state of the CH6 relay 7 0x37 Turn on all relays 8 0x38 Turn off all relays
Softwares Operation (View IP)
- Use the Bluetooth debugging assistant nRF Connect on your phone for relay control (other Bluetooth debugging assistants can also be used)
- Below we use nRF Connect for functionality demonstration
- Connect the Bluetooth device named ESP32 S3 Relay 6CH
- When the connection is successful, select Unknown Service, click to read data, if the WIFI connection fails for a long time, the RGB will always light up red, and this click operation will not produce any response
- In the case of successful WIFI connection, the device IP will be received, as follows, the device IP is 192.168.6.133
- The commands for Bluetooth control relay are characters 1-8, which are hexadecimal 0x31 ~ 0x38
- Click the SEND button and fill in the data to be sent (currently hexadecimal sending), enter 0x31 as below
- Send 0x31 to control relay CH1 for status reversal
- Send 0x38 to control to turn off all relays