Supla 16 X relay -- esp8266 + mcp23017

User avatar
bulek68
Posts: 162
Joined: Thu Feb 08, 2018 6:51 pm
Location: Podkarpackie

Tue Mar 24, 2020 11:52 pm

It's better now.
The relays return to the state from before the module power supply failure, so the state in the application is correct.

Maybe it is worth adding the ability to define the behavior of relays after a power outage?
- always turn it off
- return to the state from before the disappearance
- always turn on

It seems to me that in some software I have already seen such functionality.

Ps. Can you also upgrade Supla_16x16_3NO_DOUT_16Mbit.rar ??
7x inCan
4x SRW-01
1x SLW-01
1x ROW-02
1x WEMOS Supla Button 8 direct links by Elmaya
1x Yunshan 8xDS+DHT22+TIMER.CWU+OLED by Zybi
1x Sonoff Dual R2 2xGATE+DHT22 by Zybi
1x Sonoff BASIC
2x MELINK
User avatar
bulek68
Posts: 162
Joined: Thu Feb 08, 2018 6:51 pm
Location: Podkarpackie

Fri May 01, 2020 3:49 am

Hi elmaya.
I need your help.
Could you help in starting your 16x16 software with 3 sensors on the module created by the kinium user.

After starting DIN inputs that are connected directly to Gpio in esp work without any problems.
Attempting to change the state in the application has no effect.

Please look at schematic
Attachments
Schematic_Reley X 8_2020-04-30_09-05-29.pdf
(248.42 KiB) Downloaded 70 times
7x inCan
4x SRW-01
1x SLW-01
1x ROW-02
1x WEMOS Supla Button 8 direct links by Elmaya
1x Yunshan 8xDS+DHT22+TIMER.CWU+OLED by Zybi
1x Sonoff Dual R2 2xGATE+DHT22 by Zybi
1x Sonoff BASIC
2x MELINK
elmaya
Posts: 973
Joined: Wed Jun 27, 2018 5:48 pm
Location: Sevilla

Fri May 01, 2020 8:51 am

8 outputs, 8 push buttons and 4 sensors?
User avatar
bulek68
Posts: 162
Joined: Thu Feb 08, 2018 6:51 pm
Location: Podkarpackie

Fri May 01, 2020 9:46 am

elmaya wrote:
Fri May 01, 2020 8:51 am
8 outputs, 8 push buttons and 4 sensors?
Yes Yes Yes 😁
It will be great.

It would be Perfect 8 outputs, 8 push buttons, 3 sensors and DHT22 or ds18b20.
7x inCan
4x SRW-01
1x SLW-01
1x ROW-02
1x WEMOS Supla Button 8 direct links by Elmaya
1x Yunshan 8xDS+DHT22+TIMER.CWU+OLED by Zybi
1x Sonoff Dual R2 2xGATE+DHT22 by Zybi
1x Sonoff BASIC
2x MELINK
elmaya
Posts: 973
Joined: Wed Jun 27, 2018 5:48 pm
Location: Sevilla

Fri May 01, 2020 6:02 pm

bulek68 wrote:
Fri May 01, 2020 9:46 am
elmaya wrote:
Fri May 01, 2020 8:51 am
8 outputs, 8 push buttons and 4 sensors?
Yes Yes Yes 😁
It will be great.

It would be Perfect 8 outputs, 8 push buttons, 3 sensors and DHT22 or ds18b20.
temperature sensor only with i2c (BMP180 Etc.).
DHT22 or ds18b20 will not work with the optocoupler.
there is no push button for WiFiConfig?
D4 Gpio2 of the Esp8266 should be connected with Reset of the MCP23s17 to ensure that it always starts correctly.
Maybe should also add a Led connected to D0 Gpio16
User avatar
bulek68
Posts: 162
Joined: Thu Feb 08, 2018 6:51 pm
Location: Podkarpackie

Fri May 01, 2020 7:22 pm

All my stupid questions are due to a lack of knowledge. Please, don't blame me.
If you can help and create soft it was great.
8 outputs, 8 buttons and 4 sensors
After i2c I have some bme280
The Temp sensor is not necessary so you don't have to waste time.

The WiFi Config button would actually be useful, our PCB design mistake.

It is a pity that at the stage of the proceedings we did not consult the your opinion, it was certainly helpful.
7x inCan
4x SRW-01
1x SLW-01
1x ROW-02
1x WEMOS Supla Button 8 direct links by Elmaya
1x Yunshan 8xDS+DHT22+TIMER.CWU+OLED by Zybi
1x Sonoff Dual R2 2xGATE+DHT22 by Zybi
1x Sonoff BASIC
2x MELINK
Albert
Posts: 90
Joined: Fri Jan 04, 2019 8:32 pm

Tue Jun 02, 2020 5:50 pm

Hello.

Elemaya I have little problem with your stuff :)

I need 12 relays + 12 buttons and 3 sensors, so I downloaded 16x16+3 NO firmware.

My problem is with sensors. Two of them are crazy. When I connect for example D6 to my post box, after moment status is changed to closed. I gave 4.7k resistors between D5 D6 D7 and 3v3, but doesn't work..
elmaya
Posts: 973
Joined: Wed Jun 27, 2018 5:48 pm
Location: Sevilla

Tue Jun 02, 2020 6:52 pm

here is the current version.
clean Flash memory before uploading.
Supla_16x16_3NO_DOUT_16Mbit.rar
(577.62 KiB) Downloaded 74 times

carefully check your hardware

EDIT: download again, the previous one has an error.
Albert
Posts: 90
Joined: Fri Jan 04, 2019 8:32 pm

Tue Jun 02, 2020 7:01 pm

Ok I will. Thanks for firmware. Tomorrow I will try this;) greets
Albert
Posts: 90
Joined: Fri Jan 04, 2019 8:32 pm

Wed Jun 03, 2020 7:28 pm

Elmaya sensors are now ok. But I have another issue... when I turn on few relays in the same time, wemos stop answering to switches in Supla app.. I tap to on or off and nothing happens. I have to restart wemos, and problem is gone. For next time....
Post Reply

Return to “Ideas and concepts”