-->
Page 1 of 1

2 channel relay lctech with STM8

PostPosted: Thu Jan 25, 2018 9:43 am
by riker1
Hi
does anyone knows how to control the 2 channel relay?

http://www.icstation.com/esp8266-2bit-w ... 13039.html

do not undertand this instruction...

how to swtich the relay?

thanks for hints

Re: 2 channel relay lctech with STM8

PostPosted: Tue Feb 27, 2018 3:40 pm
by mischkasmith
You can switch the relays via hex commands.

Relay1 ON A0 01 01 A2
Relay1 OFF A0 01 00 A1
Relay2 ON A0 02 01 A3
Relay2 OFF A0 02 00 A2

baudrate is 115200

Here is a sample code.
https://github.com/mischkasmith/lctech- ... ech2ch.ino

Re: 2 channel relay lctech with STM8

PostPosted: Tue Apr 02, 2019 3:45 am
by asuz
mischkasmith wrote:You can switch the relays via hex commands.

Relay1 ON A0 01 01 A2
Relay1 OFF A0 01 00 A1
Relay2 ON A0 02 01 A3
Relay2 OFF A0 02 00 A2

baudrate is 115200

Here is a sample code.
https://github.com/mischkasmith/lctech- ... ech2ch.ino


Hello, Is it possible to edit your sample code for the stm8 based thermostat to communicate with esp 8266 ?

Re: 2 channel relay lctech with STM8

PostPosted: Tue Apr 02, 2019 6:58 am
by asuz
mischkasmith wrote:You can switch the relays via hex commands.

Relay1 ON A0 01 01 A2
Relay1 OFF A0 01 00 A1
Relay2 ON A0 02 01 A3
Relay2 OFF A0 02 00 A2

baudrate is 115200

Here is a sample code.
https://github.com/mischkasmith/lctech- ... ech2ch.ino


Hello, Is it possible to edit your sample code for the stm8 based thermostat to communicate with esp 8266 ?