2x relay ESP module - STM8S003 - controlling over serial
Posted: Fri Feb 26, 2021 1:32 pm
Hello,
I am trying to use a 2x relay ESP module (http://www.chinalctech.com/xwzx/24.html) to work as USB module, but the module does not seem to respond to the instructions sent via serial.
I have connected the module like this: In words:
- TX of USB is connected to the RX on the board
- RX of USB is connected to the TX on the board
- GND to GND
- Jumper on the board is on the upper two pin pairs (this should probably connect the TX/RX of CPU to the board header where USB cables are)
- board is powered by the 5V IN+/IN-1 connectors
When turned on:
- LED D7 constantly lights red - which means mode 1 is selected
- LED D6 is blinking green in 1s intervals - which means something about TCP, but that shouldn't be important now
USB is connected to the Win10 computer with the Chinesse soft "sscom32" to handle Serial communication. I have already used the computer and USB stick before to program ESP, so the driver (340C) and serial comm should not be an issue. However, when I try to send instruction "A0 01 01 A2" or "A0 01 00 A1" (open/close relay 1) to the associated COM port (see attachment), nothing happens. No "sound" of relay switching, no relay LED flashing and just to be sure, after every change I was checking the relay by multimeter.
I have tried different jumper positions, RX/TX combinations ... but I am not sure what to try next .. any ideas?
Thanks
I am trying to use a 2x relay ESP module (http://www.chinalctech.com/xwzx/24.html) to work as USB module, but the module does not seem to respond to the instructions sent via serial.
I have connected the module like this: In words:
- TX of USB is connected to the RX on the board
- RX of USB is connected to the TX on the board
- GND to GND
- Jumper on the board is on the upper two pin pairs (this should probably connect the TX/RX of CPU to the board header where USB cables are)
- board is powered by the 5V IN+/IN-1 connectors
When turned on:
- LED D7 constantly lights red - which means mode 1 is selected
- LED D6 is blinking green in 1s intervals - which means something about TCP, but that shouldn't be important now
USB is connected to the Win10 computer with the Chinesse soft "sscom32" to handle Serial communication. I have already used the computer and USB stick before to program ESP, so the driver (340C) and serial comm should not be an issue. However, when I try to send instruction "A0 01 01 A2" or "A0 01 00 A1" (open/close relay 1) to the associated COM port (see attachment), nothing happens. No "sound" of relay switching, no relay LED flashing and just to be sure, after every change I was checking the relay by multimeter.
I have tried different jumper positions, RX/TX combinations ... but I am not sure what to try next .. any ideas?
Thanks