New Blynker here going up with my first project and I could use an input on my wirings to
just clarify that I’ve gotten the electronics logic down.
About the project:
I will have this stationary at every entrance to my house, with an ESP8266-01 in deepsleep up untill
someone opens the door which is beeing monitored. The ESP needs to wakeup on breaking the magnets in the
upper right corner in the image. Stay awake for XX seconds no matter if the door is opened/closed again within that timeframe.
- NPN transistor will only allow a reset pulse if the device is already asleep (i.e. GPIO16 pulled high)
- PNP transistor will generate a negative pulse on the reset pin if the device sleeps.
Will this setup work, or do I need to change my NPN in the circuit to a similar PNP?
How it will work, A-Z:
Door is opened, waking the esp8266
GPIO2 pulled high, GPIO0 pulled low, to read temp from DS1820B on RX pin
After XX seconds GPIO2 pulled low, GPIO0 pulled high, to read state of halleffect sensor on RX pin, this will determine if the door is locked or not.
(apparently this US1881 5V latching sensor will act as “non-latching” when fed 3.3V according to a user)
GPIO0 pulled low, sensors are off.
Temp, lockstate and date will be posted to my Local Blynk server
ESP8266 goes to sleep untill the next time the door is opened.
Have I missed something in my wiring? Also since I need to pull both GPIO0 and 2 high at boot, will this setup for sensor reading work? Can I have pullups wired directly or should I have a sort of a “hold on boot” button that pulls them high?