Supla Button 4 direct links

elmaya
Posts: 1482
Joined: Wed Jun 27, 2018 5:48 pm
Location: El Saucejo - Sevilla

broki wrote: Tue Jan 26, 2021 7:36 pm Hello

Does anyone have schematics on the first page of this post?

I don't know how to connect buttons to trigger direct links.

greetings
https://en-forum.supla.org/viewtopic.php?p=31757#p31757
broki
Posts: 4
Joined: Mon Jul 13, 2020 6:14 pm

Thank you very much, it works now.

Greetings
User avatar
ritual
Posts: 80
Joined: Mon Apr 20, 2020 11:47 am

elmaya wrote: Mon Jan 28, 2019 3:40 pm 4 direct links for battery use

4 direct links button: L1-L4
wificonfig button: config
connect EN to VCC to allow programming
the process is slow (5 or 6 seconds) due to connection to wifi
virtually no standby consumption using chip-enable
add resistor 220k Ohm to suspend Flash in standby mode

Image

Initial parameters for "ESP Falsh Download Tool":

CreystalFreq 26M
SPI SPEED 40 MHz
SPI MODE QIO
BAUDRATE 11520
FLASH SIZE 32Mbit (4MByte)

D_Link_LowPower_x4.bin ------------> 0x00000
is there any simplified wiring for wemos d1 or nodemcu?
because if i connect the pin to ground it goes in loop and turns on and off the device
elmaya
Posts: 1482
Joined: Wed Jun 27, 2018 5:48 pm
Location: El Saucejo - Sevilla

nodemcu and wemos have a pullup resistor connected to "EN" that keeps ESP8266 on.
you have to remove that resistor.
Please tell me what specific module you are using and I can tell you what resistor you have to remove.
User avatar
ritual
Posts: 80
Joined: Mon Apr 20, 2020 11:47 am

elmaya wrote: Thu May 27, 2021 10:27 pm nodemcu and wemos have a pullup resistor connected to "EN" that keeps ESP8266 on.
you have to remove that resistor.
Please tell me what specific module you are using and I can tell you what resistor you have to remove.
I am using wemos d1mini.
And do you have any software for 6xD-link for battery use?

P.s. it is good to have you back.❤️
Attachments
IMG_20210528_173859.jpg
IMG_20210528_173859.jpg (1.17 MiB) Viewed 3288 times
elmaya
Posts: 1482
Joined: Wed Jun 27, 2018 5:48 pm
Location: El Saucejo - Sevilla

wemos_d1_mini.png
wemos_d1_mini.png (357.97 KiB) Viewed 3271 times
User avatar
ritual
Posts: 80
Joined: Mon Apr 20, 2020 11:47 am

Thank you.i will try this today.
Do you have any software for 6 direct link with battery use?
User avatar
ritual
Posts: 80
Joined: Mon Apr 20, 2020 11:47 am

elmaya wrote: Fri May 28, 2021 9:35 pm wemos_d1_mini.png
I removed the resistor and now the wemos doesn't turn on.
elmaya
Posts: 1482
Joined: Wed Jun 27, 2018 5:48 pm
Location: El Saucejo - Sevilla

here you have the scheme for Wemos.

wemosD1_bb.png
wemosD1_bb.png (111.42 KiB) Viewed 3217 times

I explain a little how it works:
In this design, in order to reduce the energy consumption to a minimum, I have chosen to use the "EN" pin "chip enable" of the Esp8266.
This Pin activates the Esp8266 if it is at a high level and disconnects it if it is at a low level.
in normal conditions we have the "EN" Pin at low level and the Esp8266 is deactivated "for this you had to remove the resistance in the Wemos"
To activate the Esp8266 we have to set the "EN" Pin to high level, this is done with the pushbuttons that in addition to putting the corresponding input Gpio at high level when they are pressed also feed the "EN" Pin through the diodes D1 - D5.
With this, the Esp8266 starts and we set Gpio 15 "D8" to high level, through D6 the "EN" Pin remains high for as long as necessary to send the link, then "D8" goes low and the Esp8266 turns off.

R7 disables the Flash memory chip when the Esp8266 is disabled, it is not essential but reduces consumption by a couple of milliamps.

maybe I can add one or two more links but right now I don't have time for this.
User avatar
ritual
Posts: 80
Joined: Mon Apr 20, 2020 11:47 am

elmaya wrote: Sat May 29, 2021 6:42 pm here you have the scheme for Wemos.


wemosD1_bb.png


I explain a little how it works:
In this design, in order to reduce the energy consumption to a minimum, I have chosen to use the "EN" pin "chip enable" of the Esp8266.
This Pin activates the Esp8266 if it is at a high level and disconnects it if it is at a low level.
in normal conditions we have the "EN" Pin at low level and the Esp8266 is deactivated "for this you had to remove the resistance in the Wemos"
To activate the Esp8266 we have to set the "EN" Pin to high level, this is done with the pushbuttons that in addition to putting the corresponding input Gpio at high level when they are pressed also feed the "EN" Pin through the diodes D1 - D5.
With this, the Esp8266 starts and we set Gpio 15 "D8" to high level, through D6 the "EN" Pin remains high for as long as necessary to send the link, then "D8" goes low and the Esp8266 turns off.

R7 disables the Flash memory chip when the Esp8266 is disabled, it is not essential but reduces consumption by a couple of milliamps.

maybe I can add one or two more links but right now I don't have time for this.
No problem, thank you for explaining this.
Post Reply

Return to “Ideas and concepts”