Serial MCU controlled relay/switch

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
Dondolo
Normal user
Posts: 65
Joined: 03 Jul 2019, 06:56
Location: Germany

Re: Serial MCU controlled relay/switch

#451 Post by Dondolo » 28 Sep 2021, 17:02

The build you flashed is for 4M flash, so not really strange to see it won't boot.

Currently there is no pre-build file for 1M using that plugin.
So we have to make a custom build for it.

What else do you need in that build?
yes that's right, are just 1MB.

It would be nice if the custom build the standard of
ESP_Easy_mega_20210802_normal_ESP8266_1M.bin
contains.

If that is enough from the amount of memory.
Dondolo

Dondolo
Normal user
Posts: 65
Joined: 03 Jul 2019, 06:56
Location: Germany

Re: Serial MCU controlled relay/switch

#452 Post by Dondolo » 30 Sep 2021, 20:45

Currently there is no pre-build file for 1M using that plugin.
So we have to make a custom build for it.

What else do you need in that build?
Hi Td-ler,
do you find the time to create a customer version for the ESP01?

Greetings Dondolo

TD-er
Core team member
Posts: 5529
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Serial MCU controlled relay/switch

#453 Post by TD-er » 30 Sep 2021, 21:55

Dondolo wrote: 30 Sep 2021, 20:45
Currently there is no pre-build file for 1M using that plugin.
So we have to make a custom build for it.

What else do you need in that build?
Hi Td-ler,
do you find the time to create a customer version for the ESP01?

Greetings Dondolo
Sorry had missed your post, or at least not placed it on my mental todo list.
Here you are:
https://www.dropbox.com/s/vtltocbc96p6f ... M.bin?dl=0

Dondolo
Normal user
Posts: 65
Joined: 03 Jul 2019, 06:56
Location: Germany

Re: Serial MCU controlled relay/switch

#454 Post by Dondolo » 30 Sep 2021, 22:23

Sorry had missed your post, or at least not placed it on my mental todo list.
Here you are:
Hi
thank you very much.
I flashed it right away and it works wonderfully.
I will test tomorrow.
Thank you Dondolo

Dondolo
Normal user
Posts: 65
Joined: 03 Jul 2019, 06:56
Location: Germany

Re: Serial MCU controlled relay/switch

#455 Post by Dondolo » 02 Oct 2021, 14:23

Sorry had missed your post, or at least not placed it on my mental todo list.
Here you are:
Unfortunately I cannot switch the relay.
I use the following relay

https://cdn.shopify.com/s/files/1/1509/ ... 1614874417

The Arduino code according to
on
byte open [] = {0xA0, 0x01, 0x00, 0xA1};
Serial.write (open, sizeof (open));

off
byte close [] = {0xA0, 0x01, 0x01, 0xA2};
Serial.write (close, sizeof (close));

Does it even work with the "Serial MCU controlled switch" plug-in?

User avatar
enesbcs
Normal user
Posts: 578
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: Serial MCU controlled relay/switch

#456 Post by enesbcs » 21 Oct 2021, 13:47

Dondolo wrote: 02 Oct 2021, 14:23 The Arduino code according to
on
byte open [] = {0xA0, 0x01, 0x00, 0xA1};
Serial.write (open, sizeof (open));

off
byte close [] = {0xA0, 0x01, 0x01, 0xA2};
Serial.write (close, sizeof (close));

Does it even work with the "Serial MCU controlled switch" plug-in?
Yes, this is the standard LCTECH command sequence, it is contained in this plugin. If you choose LCTECH, selected the correct baud rate, enable serial in ESPEasy settings, and disable serial logging, it should work. There were a bad batch which needs "Use IPD preamble" option. There were also a faulty batch which needs "command doubling" option to work.

Also there are several pieces of these LCTECH relays which are not original (clones) and even the other chip onboard is not programmed, so it can not be controlled by the ESP, does not matter, which firmware you use. And if it is not enough there are also some faulty ones, which has a power supply inadequate to even power on the relay. :D Not to mention soldering issues.

So although it is a very challenging and interesting game to try to make them work, but i will never buy from this kind of device.

Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests