This door sensor powers on if the door opens and maintains powered until data (over wifi) is sent, shuts itself down after detecting the is door closed - not fully working yet / WIP

WIP: Transistor does not keep circuit powered, detection of door close not working yet. See for resolution of issues.

Login to post a comment...

chisight 3 years, 9 months ago

Try putting the NPN transistor and switches on the ground line instead of the positive power line. Include the regulator in the switched circuit to avoid having it running all the time. Use an unswitched 22k pull down resistor on the base to keep it from floating up when off.