Page 12 of 12

Re: Supla Button 4 direct links

Posted: Thu Jan 28, 2021 12:56 pm
by elmaya
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

Re: Supla Button 4 direct links

Posted: Fri Jan 29, 2021 6:18 am
by broki
Thank you very much, it works now.

Greetings

Re: Supla Button 4 direct links

Posted: Thu May 27, 2021 3:22 pm
by ritual
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

Re: Supla Button 4 direct links

Posted: Thu May 27, 2021 10:27 pm
by elmaya
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.

Re: Supla Button 4 direct links

Posted: Fri May 28, 2021 11:37 am
by ritual
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.❤️

Re: Supla Button 4 direct links

Posted: Fri May 28, 2021 9:35 pm
by elmaya
wemos_d1_mini.png
wemos_d1_mini.png (357.97 KiB) Viewed 3706 times

Re: Supla Button 4 direct links

Posted: Sat May 29, 2021 6:55 am
by ritual
Thank you.i will try this today.
Do you have any software for 6 direct link with battery use?

Re: Supla Button 4 direct links

Posted: Sat May 29, 2021 2:41 pm
by ritual
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.

Re: Supla Button 4 direct links

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

wemosD1_bb.png
wemosD1_bb.png (111.42 KiB) Viewed 3652 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.

Re: Supla Button 4 direct links

Posted: Sun May 30, 2021 8:36 am
by ritual
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.