Hi Gleno0h,
Thank you, i’ll try that!
ESPimatic mit DeepSleep
Hi Gleno0h,
Thank you, i’ll try that!
Ich habe das durchgespielt und rate eigentlich vom ESP ab, wenn du wirklich Batteriebetrieb machen möchtest. Da ist MySensors wirklich besser.
Moin SWEN,
habe das mit MySensors schon ausprobiert und folgendes hat mich davon abgebracht:
ESPimatic finde ich persönlich “Einsteigerfreundlicher”, kann wahrscheinlich nicht so viel wie MySensors, aber mir reichts ja. Hab da einfach den besseren Wohlfühlfaktor Und den Batteriebetrieb kann ich auch über Mono-Zellen machen.
das mit dem batteriebetrieb ist leider beim esp wirklich ein thema für sich.
was auch eine interessante idee ist, einen esp mit 18650er Lithium akku, Solarzelle und Charger Board TP4056 auszustatten. damit läuft er relativ autark solange genug sonnenlicht für die solarzelle da ist
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebook
make it so !
Der ESP verbrät massiv Strom… Was gut funktioniert ist ein ESP mit PIR. Der Sensor PIR gibt so lange Strom ab, wie man es einstellt. Der ESP sendet geht in DeepSleep und wird ganz ausgeschaltet. Besser geht es nicht. Ich habe das als Fenstersensor benutzen aber, auch der 12E, war nach zwei Wochen leer… Für mich ist der ESP ganz nett, aber so richtig mit Batteriebetrieb… Kann man das eigentlich vergessen. Monozellen sind auch nicht gerade günstig.
Ich habe hier MySensors quer durch die Wohnung über zwei Etagen am Start und das funktioniert ohne Probleme.
As @swen said just using an ESP with deep on batteries won’t give you sufficient battery lifetime as the power drain is still to high.
I think the most promising approach is to use another circuit which manages the power supply for the ESP, for example, to power up the ESP at regular intervals or when a sensor contact is closed. Depending on what you want to do a relatively soft latching power switch may do or low foot-print mirco controller like the attiny 13a.
There are also some tweaks which can be done to reduce the general consumption of the NodeMCU and other boards which may also help to some extent.
The following links might be useful
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
NodeMCU is useless then you can use direct ESP01 or ESP12E/F if you need a well antenna then ESP07. NodeMCU is only an extension board to make it simpler for developing.
A good page is this also: http://www.whatimade.today/esp-8266-mailbox-notifier-using-deepsleep-and-blynk/
Otherway the current of ESP is much too high, with stby too. If you want a big long battery life then the ESP is only a status transmitter via ATtiny or Adruino Nano Pro etc… I will post in the next days a small project of my PIR. Its total easy to create and works well.
NodeMCU ist nicht nötig wenn man auch den ESP01 oder ESP12E/F nutzen kann und oder ESP07 mit externern Antenne. NodeMCU macht das entwickeln nur einfacher.
Eine gute Seite wie das auch funktionieren kann findet man hier:
http://www.whatimade.today/esp-8266-mailbox-notifier-using-deepsleep-and-blynk/
Jedenfalls ist die Stromaufnahme des ESP viel zu hoch, auch im stby. Wenn man den ESP nutzen möchte mit langer Batterie-Laufzeit, dann sollte man diesen per ATTiny oder Adrduino Nano Pro steuern. In den nächsten Tagen kann ich ja mal mein PIR hier beschreiben. Das Ding ist so einfach zusammen zustecken und kostet wirklich kaum Strom, da der PIR den ESP einschaltet.
@Swen said in ESPimatic mit DeepSleep:
A good page is this also:
As far as I can see this is just using deep sleep mode with a deferred latch to wake up the esp. See the links I have provided involving attiny or bistable soft latching to manage the power supply of the esp.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
Yes sure, i will only show that it work on other ways. You can decide by yourself if this is good or bad. I give all information so everybody can see what is well or not. It’s an opportunity…
In my experience it is best to use the ESP8266 in battery powered projects only as slave for transmission and as described above with an Attiny13 or so as Master. The ESP can be switched on or off simply by the Attiny via the CH_PD pin of the ESP. Only disadvantage of the complete solution is the long on-time of the ESP due to the complex WIFI registration process and protocol. In my experience sending a simple byte of information takes mostly about 5 to 15 seconds. If this happens only once a day or every x hours it might be OK. For battery powered sensors I prefer Mysensors technology.
"For battery powered sensors I prefer Mysensors technology."
Ich vielleicht ja auch, wenn ich nicht das Reichweiten-Problem hätte.
Wie siehts damit denn beu Euch aus?
Bei mir ist die Reichweite kein Problem. Was hast du denn für HF Receiver genommen? Es gibt da echt unterschiedliche und einige verweigerten sogar komplett den Dienst. Welchen Kondensator hast du genommen? Denn ohne Funktioniert das überhaupt nicht. Dann natürlich die Örtlichen Gegebenheiten. Wo steht der Receiver? Bekommt der Sensor ordentlich Strom? Wie hast du den Sensor aufgebaut? Wo steht der Sensor? Im welchen Gehäuse sitzt der Sensor. Wie weit ist die Strecke zwischen Sensor und Receiver? Schon mal ein Node ausgetestet?
Also bei mir zuhause habe ich in der einen Ecke im zweiten Stock den Receiver und im ersten einen Strombetriebenen Sensor der auch als Relay fungiert und das Funktioniert aktuell einwandfrei.
Dafür funktioniert mein NodeMCU nicht. Auch per Strom betrieben, schicke ich den in DeepSleep und das funktioniert 1,5 Tage und danach wars das.
For sensors which rarely need to to transmit data I think WiFi is still an option. Generally, the problem is that transmission with WiFi may takes several seconds and the power draw during the transmit cycle easily increases to 300 mA.
As a successor of the ESP-8266 the ESP-8285 may be interesting as it is available at a similar price, runs sketches written for ESP-8266 and is more energy efficient wrt deep sleep mode.
Another successor is the ESP-32 which is interesting as it has a hibernation mode which gets consumption down to 5µA.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
Yes that’s true… If my PIR start my ESP01, then it needs 3-4sec to switch the light on. The Wifi must connect to WLAN, verify and the router must accept password and then the esp is connected and send immediately the data.