ESP8266-01 and reed switch interupt. How can it be done?!
Posted: Sun Mar 06, 2016 1:42 pm
Greetings,
I've been spending hours in your forum the last couple of days concerning mods and circuitry about ESPs. Great work !!!
I'm trying to make a low-consumption ESP (owning an ESP8266-01 module) Door/Window Node and publish data to MQQT server.
So far i've csoldered the chip's pin with reset to allow wake up from deep sleep. By the way i've made it already on my first node for measuring temperature and humidity with a DHT and works like a charm, from morning until now with battery measuraments also.
Anyway I'm stucked thought cause i can't understand how to make this ESP to wake up (while in deep sleep) in every change state of the reed (even pulled up or pulled down) and take mesurament of the reed state HIGH or LOW to publish. I've seen a solution with pir sensor (and a swtich example) which i've tried since reed is a switch but if the ESP powers up when switch is OPEN it keeps reseting.
As i red the ESP can wake up, except from the internal clock, from a pulse on the RST pin. But how can i fire that pin in any state of the reed? pull up and pull down state?? At the beginning i've connected the reed switch to GND parallel with a Capacitor to GPIO 2 following a lua example on reed switch but still it wasn't flowless in one state up or down it stucked.
I don't want to bother much and thanks for reading my post on the first place, any help or ideas would really be appreciated cause i'm stucked.
all the best,
thanos
I've been spending hours in your forum the last couple of days concerning mods and circuitry about ESPs. Great work !!!
I'm trying to make a low-consumption ESP (owning an ESP8266-01 module) Door/Window Node and publish data to MQQT server.
So far i've csoldered the chip's pin with reset to allow wake up from deep sleep. By the way i've made it already on my first node for measuring temperature and humidity with a DHT and works like a charm, from morning until now with battery measuraments also.
Anyway I'm stucked thought cause i can't understand how to make this ESP to wake up (while in deep sleep) in every change state of the reed (even pulled up or pulled down) and take mesurament of the reed state HIGH or LOW to publish. I've seen a solution with pir sensor (and a swtich example) which i've tried since reed is a switch but if the ESP powers up when switch is OPEN it keeps reseting.
As i red the ESP can wake up, except from the internal clock, from a pulse on the RST pin. But how can i fire that pin in any state of the reed? pull up and pull down state?? At the beginning i've connected the reed switch to GND parallel with a Capacitor to GPIO 2 following a lua example on reed switch but still it wasn't flowless in one state up or down it stucked.
I don't want to bother much and thanks for reading my post on the first place, any help or ideas would really be appreciated cause i'm stucked.
all the best,
thanos