logo elektroda
logo elektroda
X
logo elektroda

[ESP8285] SE831L intelligent garage door controller - interior, analysis

p.kaczmarek2  Cool? (+7)

I will present here a short analysis of the interior and the firmware change of the WiFi SE831L/GD-DC5 garage door controller advertised as Sonoff eWelink. As a standard, I will free it from the cloud, give the procedure for changing its firmware and configurations of its GPIO. This time the discussed driver will be based on ESP, so there will be a little change from what I usually show. I showed the driver based on BK7231 some time ago in the topic WiFi garage gate controller, Smart Garage Opener Tuya - Home Assistant , there I also provided an example YAML configuration for HA, I will not repeat it here.

Purchase of the ECN SN kit
The set was bought on a Polish auction site for about PLN 73:

Let's take a look at its description so you know what kind of product it is:

Assembly instructions:






Received set
Let's see what we get in practice:

Everything is there, there is an opening sensor, there is a cable to connect the button, there is a USB cable for power supply, and the manual and the device itself are also present.

How does such a controller even work?
I already described this in the previous topic about the gate, there was a controller on CB3S (BK7231N):
WiFi garage gate controller, Smart Garage Opener Tuya - Home Assistant

The inside of the controller
I skip the tests with the manufacturer's application, we immediately look inside. Just pry the cover up.


The ESP8285 is directly on the PCB here. There is also AMS1117-3.3V, because ESP requires 3.3V, and the input is 5V from USB. There is also a small SOIC8 chip inside, STC 15W104 H41U58 2241.XA. It is a microcontroller, core 8051.

Pinouts:

There is nothing interesting on the bottom of the PCB:



Based on the photos, I made a list of connections - it will also be useful for setting the Tasmota's GPIO:

Only that... if there is an additional MCU here, how can we set the GPIO? About that in a moment.

Firmware change
You can easily upload Tasmota here. RX and TX is available. The UART port is not occupied by the MCU, it is not a TuyaMCU device. This microcontroller is on a regular GPIO.
GPIO0 is on the button, just press it before connecting the power.


esptool.py works, as I have already described several times:
https://www.elektroda.pl/rtvforum/topic3866386.html
The only thing left is what about the MCU...
My suggestion is to desolder it. First, we apply flux, then additional lead binder (we make bridges on its pins), and then we quickly heat both sides with a soldering iron. The layout can be removed after a while with tweezers:

And that's it for now. Then it is enough to make jumpers and program the Tasmot IO, but more on that another time.

Summary
Changing the firmware turned out to be very simple. At first I was worried about GPIO0, but it turned out that this signal is brought out to the button, so there was no problem with putting the ESP into programming mode. I also had concerns about this mysterious MCU, but it turned out that you can desolder it and just freely use the ESP8285 IO and script it as we like in Tasmot / Home Assistant.
I will try to show the configuration of the sensor itself, connecting it to the gate and a practical presentation soon, in a separate topic.
Does any of the readers have such "intelligent" (whatever it means - this is the language of advertisers) garage doors controlled by WiFi? There are no problems with the WiFi range Before gate? Maybe I'm just too skeptical. I invite you to the discussion.

About Author
p.kaczmarek2
p.kaczmarek2 wrote 12434 posts with rating 10294 , helped 585 times. Been with us since 2014 year.

Comments

tmf 02 Jul 2023 12:17

So, I'm curious about two things. The first - sense. According to the descriptions, it is connected to the gate drive. Generally, probably all drives come with a receiver and remote controls. So what... [Read more]

p.kaczmarek2 02 Jul 2023 13:13

I don't know if I'm the right person to answer the first question, because I'm interested in these gadgets from a technological point of view, and at home I mainly have "dumb switches" (read:... [Read more]

tmf 02 Jul 2023 14:51

Thanks for the info. I actually think the same about it. I am not talking about the general benefits of home automation, but about this particular device. As you wrote, originally it is strongly related... [Read more]

ArturAVS 02 Jul 2023 18:12

After all, the situation is almost identical with other devices, e.g. CCTV IP cameras. Unfortunately, people wanting to make their lives easier forget about their own privacy. [Read more]

krzbor 02 Jul 2023 23:22

What was that MCU 8051 there for? ESP will easily handle the reed switch and relay. [Read more]

p.kaczmarek2 03 Jul 2023 06:04

@tmf I am against all kinds of subscriptions, even those for VOD services, although at the same time I see (even from family members) that some people wouldn't manage without them. A much bigger problem... [Read more]

William Bonawentura 03 Jul 2023 06:20

Does the manufacturer warn in the manual about the legal risk of installation? The motorized gate is not a toy and must comply with the requirements of the Machinery Directive. As long as it was controlled... [Read more]

noel200 06 Jul 2023 09:59

I attached a small magnet to the gate, and next to the gate I screwed a yunshan plate with a reed switch at the entrance. I have in the app whether the gate is closed. Unfortunately, I often forget "did... [Read more]

metalMANiu 06 Jul 2023 14:31

I have 2 garage doors with an electric drive and control with a 433MHz remote control. Half a year I couldn't find time to connect some "Smart" switch to it. Once I found the time and sat down, I... [Read more]

borba 08 Jul 2023 19:08

I have the exact (or very similar) model. And it's been working for a year now. Because the backyard garage is built of concrete walls about 15 cm thick, unfortunately, it was necessary to add a... [Read more]

metalMANiu 09 Jul 2023 07:52

@borba and isn't this Ewelink based on Tuya? [Read more]

borba 09 Jul 2023 07:56

I don't know anything about it. From what I've read (I'm just an amateur, that's why I haven't uploaded my own software to the WiFi controllers that I have with 9 at home yet), eWelink... [Read more]

Perelka 06 Apr 2025 11:13

Hi I have been a user of a number of Sonoff units around the house for several years. Mainly the Mini R2 but also three of the same as in the subject for the gates in the garages and the entrance gate.... [Read more]

%}