Hardware introduction and description
Board size: 56 x 63mm
Board Interface Description:
COM1: common;
NC1: normally closed;
NO1: normally open.
.........
COM4: common;
NC4: normally closed;
NO4: normally open.
Communication protocol description:
Default communication baud rate: 9600BPS
Turn on the 1-channel relay switch: A0 01 01 A2
Turn off the 1-channel relay switch: A0 01 00 A1
Turn on the 2-channel relay switch: A0 02 01 A3
Turn off the 2-channel relay switch: A0 02 00 A2
Turn on the 3-channel relay switch: A0 03 01 A4
Turn off the 3-channel relay switch: A0 03 00 A3
Turn on the 4-channel relay switch: A0 04 01 A5
Turn off the 4-channel relay switch: A0 04 00 A4
Relay ON/OFF status query command: 0xFF
USB switch communication protocol
Data (1) --- start flag (default is 0xA0)
Data (2) --- switch address codes (0x01 and 0x02 represent the first and second switches, respectively)
Data (3) --- operating data (0x00 is "off", 0x01 is "on")
Data (4) --- check code
Usage Description:
1. Connect the USB relay module to the computer and install the CH340 USB to serial chip driver
2. Open the STC-ISP, SSCOM32 such serial debugging software, select the baud rate of 9600, in hexadecimal (hex) form send A0 01 01 A2 and A0 02 01 A3 can be opened the first and second relay ; Send in hexadecimal (hex) A0 01 00 A1 and A0 02 00 A2 can be turned off the first and second relay, respectively.
Package Included:
1pcs NOYITO 4-Channel Micro USB Relay Module