Supla 16 X relay -- esp8266 + mcp23017

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

Post

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 ??
User avatar
bulek68
Posts: 456
Joined: Thu Feb 08, 2018 6:51 pm
Location: Podkarpackie

Post

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
You do not have the required permissions to view the files attached to this post.
elmaya
Posts: 1482
Joined: Wed Jun 27, 2018 5:48 pm
Location: El Saucejo - Sevilla

Post

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

Post

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.
elmaya
Posts: 1482
Joined: Wed Jun 27, 2018 5:48 pm
Location: El Saucejo - Sevilla

Post

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: 456
Joined: Thu Feb 08, 2018 6:51 pm
Location: Podkarpackie

Post

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.
Albert
Posts: 598
Joined: Fri Jan 04, 2019 8:32 pm
Location: Chełm

Post

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: 1482
Joined: Wed Jun 27, 2018 5:48 pm
Location: El Saucejo - Sevilla

Post

here is the current version.
clean Flash memory before uploading.
Supla_16x16_3NO_DOUT_16Mbit.rar

carefully check your hardware

EDIT: download again, the previous one has an error.
You do not have the required permissions to view the files attached to this post.
Albert
Posts: 598
Joined: Fri Jan 04, 2019 8:32 pm
Location: Chełm

Post

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

Post

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....

Return to “Ideas and concepts”