Search found 3 matches

by citerkoo
Sat Jun 10, 2023 4:41 pm
Forum: Hardware
Topic: ESP01 + relay module - delay
Replies: 0
Views: 940

ESP01 + relay module - delay

Hello, I am using a 2 channel relay module (http://www.chinalctech.com/xwzx/24.html) with ESP-01 to control the relays. I have uploaded a custom code to ESP-01. ESP-01 is supposed to connect to my WiFi, start a HTTP server and wait for requests. Based on the HTTP request received, it should switch t...
by citerkoo
Fri Feb 26, 2021 10:47 pm
Forum: Hardware
Topic: 2x relay ESP module - STM8S003 - controlling over serial
Replies: 1
Views: 1888

Re: 2x relay ESP module - STM8S003 - controlling over serial

Ok,it started working with ESP instead of USB. This is the test code: void setup() { Serial.begin(115200); } void loop() { //open first relay char bb[] = {0xA0, 0x01, 0x01, 0xA2}; Serial.write(bb, sizeof(bb)); delay(1500); //close first relay char bb1[] = {0xA0, 0x01, 0x00, 0xA1}; Serial.write(bb1, ...
by citerkoo
Fri Feb 26, 2021 1:32 pm
Forum: Hardware
Topic: 2x relay ESP module - STM8S003 - controlling over serial
Replies: 1
Views: 1888

2x relay ESP module - STM8S003 - controlling over serial

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: relaymod.png In words: - TX of USB is connected to the RX on the board ...