8 blinds 16 buttons
Manual control (push buttons) fully operational offline.
saves opening time, closing time and position, it does not need recalibration after an interruption of the electrical supply.
if the blinds are moved during disconnection from the Supla cloud (lack of internet), the position is updated in the App (cloud) when reconnecting Supla cloud.
esp8266
Gpio16(D0) --Status Led (conect to +3.3v whit 100ohm)
Gpio 0(D3) -- WiFiConfig (to ground for at least 5 seconds)
Gpio 5(D1) --SCL Mcp23017
Gpio 4(D2) --SDA Mcp23017
Gpio 2(D4) --Mcp23017-Reset
the first Mcp23017 "address 0x20" (A0 + A1 + A2 to Gnd) controls the relays.
Mcp23017 (0x20)
A0 - - GND
A1 - - GND
A2 - - GND
VCC - - +3.3
Gnd - - GND
SCL - - esp Gpio 5(D1)
SDA - - esp Gpio 4(D2)
RESET - esp Gpio 2(D4)
Gpio A0 --Relay blind 1 Shut
Gpio B0 --Relay blind 1 Reveal
Gpio A1 --Relay blind 2 Shut
Gpio B1 --Relay blind 2 Reveal
Gpio A2 --Relay blind 3 Shut
Gpio B2 --Relay blind 3 Reveal
Gpio A3 --Relay blind 4 Shut
Gpio B3 --Relay blind 4 Reveal
Gpio A4 --Relay blind 5 Shut
Gpio B4 --Relay blind 5 Reveal
Gpio A5 --Relay blind 6 Shut
Gpio B5 --Relay blind 6 Reveal
Gpio A6 --Relay blind 7 Shut
Gpio B6 --Relay blind 7 Reveal
Gpio A7 --Relay blind 8 Shut
Gpio B7 --Relay blind 8 Reveal
the second Mcp23017 "address 0x21" (A0 to + 3.3v)(A1 + A2 to Gnd) is connected to the buttons.
Mcp23017 (0x21)
A0 - - +3.3
A1 - - GND
A2 - - GND
VCC - - +3.3
Gnd - - GND
SCL - - esp Gpio 5(D1)
SDA - - esp Gpio 4(D2)
RESET - esp Gpio 2(D4)
Gpio A0 --Button blind 1 Shut
Gpio B0 --Button blind 1 Reveal
Gpio A1 --Button blind 2 Shut
Gpio B1 --Button blind 2 Reveal
Gpio A2 --Button blind 3 Shut
Gpio B2 --Button blind 3 Reveal
Gpio A3 --Button blind 4 Shut
Gpio B3 --Button blind 4 Reveal
Gpio A4 --Button blind 5 Shut
Gpio B4 --Button blind 5 Reveal
Gpio A5 --Button blind 6 Shut
Gpio B5 --Button blind 6 Reveal
Gpio A6 --Button blind 7 Shut
Gpio B6 --Button blind 7 Reveal
Gpio A7 --Button blind 8 Shut
Gpio B7 --Button blind 8 Reveal
To bring the device into configuration mode, Gpio 0(D3) -- WiFiConfig (to ground for at least 5 seconds)
When in configuration mode, the device goes into Access Point mode.
In order to enter or change the settings, you need to:
- Sign in at https://cloud.supla.org (registration is free of charge)
- Connect to WiFi called „Supla 8P” from any computer with a wireless network card and Internet browser.
- Open access page: http://192.168.4.1
- Enter user name and password to the WiFi through which the device will get Internet access.
- Enter Server address, Location ID and Location Password, which will be provided once you sign in at cloud.supla.org
- Supla Device Name (name with which it will be seen in the cloud)
- username and password for OTA Firmware update.
read-only field for Supla Last State.
- To finish click on Save to save the configuration data.
Firmware update through the OTA web browser - http: // XX: 81 / update
xx = Device IP. For example http://192.168.1.22:81/update
User & Password -- those defined in WiFiConfig.
8 blinds 16 buttons
does not need external EEPROM memory (changed the memory algorithm so that it store the position only once per movement of blind)
With an average of 5 daily movements in all 8 blinds, the Flash reaches 100,000 cycles after more than 6 and a half years.
I can't connect to the supla server
Screenshot from the series
Of course, the login details have been masked and are correct
Control from buttons in this state also does not work
Screenshot from the series
Of course, the login details have been masked and are correct
Control from buttons in this state also does not work
nnection fail. Server: svr9.supla.org
rd$▒▒▒▒$▒|
▒▒l▒b|▒▒▒▒r▒▒▒
c▒▒nn▒dNn▒▒▒"p▒drls$p▒n▒
▒
$▒▒
b
o▒|l▒
▒"▒▒N▒l▒▒d ▒oo$`Nr▒▒▒oc
▒$s▒▒N
c
▒l▒cB"
r$`▒n▒▒mounting Fs...
reading config file
opened config file
{"Supla_server":"svr9.supla.org","Location_id":"xxxx","Location_Pass":"xxxx","Supla_name":"ROLETY6","update_username":"admin","update_password":"password"}
parsed json
read R0--channel: 0 opening_time 0 closing_time 0
read position 0: -1
read R1--channel: 1 opening_time 0 closing_time 0
read position 1: -1
read R2--channel: 2 opening_time 0 closing_time 0
read position 2: -1
read R3--channel: 3 opening_time 0 closing_time 0
read position 3: -1
read R4--channel: 4 opening_time 0 closing_time 0
read position 4: -1
read R5--channel: 5 opening_time 0 closing_time 0
read position 5: -1
read R6--channel: 6 opening_time 0 closing_time 0
read position 6: -1
read R7--channel: 7 opening_time 0 closing_time 0
read position 7: -1
status: 7
CONNECTING WIFI
status: 9
Connection fail. Server: svr9.supla.org
Connection fail. Server: svr9.supla.org
Connection fail. Server: svr9.supla.org
Last edited by Maniek913 on Sat Mar 28, 2020 9:42 am, edited 1 time in total.
you are not connected to WiFi.
Check the SSID and the WiFi password.
The normal behavior of the module when connecting is this:
Check the SSID and the WiFi password.
The normal behavior of the module when connecting is this:
Code: Select all
read R7--channel: 7 opening_time 85000 closing_time 80000
read position 7: 100
status: 7
CONNECTING WIFI
status: 9
Connection fail. Server: beta-cloud.supla.org
Connection fail. Server: beta-cloud.supla.org
Connection fail. Server: beta-cloud.supla.org
Connection fail. Server: beta-cloud.supla.org
Connection fail. Server: beta-cloud.supla.org
CONNECTED
local IP: 192.168.1.104
subnetMask: 255.255.255.0
gatewayIP: 192.168.1.1
Signal Strength (RSSI): -49 dBm
status: 10
status: 17
There was indeed a problem with wi-fi
But I did not pay attention to the diagram and left the configuration I / O MCP23017 as in the previous project ......
I hope I haven't damaged anything. I need to make new hardware ...
and it needs some time - I have a device ready....
But a trap
But I did not pay attention to the diagram and left the configuration I / O MCP23017 as in the previous project ......
I hope I haven't damaged anything. I need to make new hardware ...
and it needs some time - I have a device ready....
But a trap
Yes, I have changed the design to separate inputs and outputs.
I do not think you have damaged anything, adapt the connections and you will see that it works well even with the 8 blinds in a group and moving them simultaneously.
I do not think you have damaged anything, adapt the connections and you will see that it works well even with the 8 blinds in a group and moving them simultaneously.
I have temporarily changed connections. I didn't ruin anything ....
Effect -Wow
The most important changes are:
1. Rapid communication with the module - both in AP mode and with the server.
2.All functions work great, no jams.
3. Channel groups are finally working!
Thank you so much for a good job.
I only lack a thermometer - previously I had it in this place.
Effect -Wow
The most important changes are:
1. Rapid communication with the module - both in AP mode and with the server.
2.All functions work great, no jams.
3. Channel groups are finally working!
Thank you so much for a good job.
I only lack a thermometer - previously I had it in this place.