EESchema Schematic File Version 4 EELAYER 30 0 EELAYER END $Descr A4 11693 8268 encoding utf-8 Sheet 1 1 Title "" Date "" Rev "" Comp "" Comment1 "" Comment2 "" Comment3 "" Comment4 "" $EndDescr $Comp L Device:Battery_Cell BT? U 1 1 5E45BF9D P 1100 5900 F 0 "BT?" H 1218 5996 50 0000 L CNN F 1 "LiIon battery 4.2V" H 1218 5905 50 0000 L CNN F 2 "" V 1100 5960 50 0001 C CNN F 3 "~" V 1100 5960 50 0001 C CNN 1 1100 5900 1 0 0 -1 $EndComp $Comp L power:VCC #PWR? U 1 1 5E45DBB8 P 4750 1550 F 0 "#PWR?" H 4750 1400 50 0001 C CNN F 1 "VCC" H 4767 1723 50 0000 C CNN F 2 "" H 4750 1550 50 0001 C CNN F 3 "" H 4750 1550 50 0001 C CNN 1 4750 1550 1 0 0 -1 $EndComp Wire Wire Line 5500 2700 4750 2700 Wire Wire Line 7400 2400 8250 2400 Wire Wire Line 8250 2400 8250 3500 $Comp L power:GND #PWR? U 1 1 5E45E3CE P 8250 4800 F 0 "#PWR?" H 8250 4550 50 0001 C CNN F 1 "GND" H 8255 4627 50 0000 C CNN F 2 "" H 8250 4800 50 0001 C CNN F 3 "" H 8250 4800 50 0001 C CNN 1 8250 4800 1 0 0 -1 $EndComp $Comp L Device:D D? U 1 1 5E45E9FB P 6450 3200 F 0 "D?" H 6450 3416 50 0000 C CNN F 1 "1N4148" H 6450 3325 50 0000 C CNN F 2 "" H 6450 3200 50 0001 C CNN F 3 "~" H 6450 3200 50 0001 C CNN 1 6450 3200 1 0 0 -1 $EndComp $Comp L Device:D D? U 1 1 5E460F99 P 6450 3900 F 0 "D?" H 6450 4116 50 0000 C CNN F 1 "1N4148" H 6450 4025 50 0000 C CNN F 2 "" H 6450 3900 50 0001 C CNN F 3 "~" H 6450 3900 50 0001 C CNN 1 6450 3900 1 0 0 -1 $EndComp Wire Wire Line 5500 2500 5150 2500 Wire Wire Line 5150 2500 5150 3200 Wire Wire Line 6600 3200 7600 3200 Wire Wire Line 7600 3200 7600 2600 Wire Wire Line 7600 2600 7400 2600 Wire Wire Line 6300 3900 6050 3900 $Comp L Switch:SW_Push SW? U 1 1 5E464354 P 9150 2950 F 0 "SW?" H 9150 3235 50 0000 C CNN F 1 "Contact Door (Empty)" H 9150 3144 50 0000 C CNN F 2 "" H 9150 3150 50 0001 C CNN F 3 "~" H 9150 3150 50 0001 C CNN 1 9150 2950 1 0 0 -1 $EndComp $Comp L Switch:SW_Push SW? U 1 1 5E464FC2 P 9150 3550 F 0 "SW?" H 9150 3835 50 0000 C CNN F 1 "Contact Mailbox" H 9150 3744 50 0000 C CNN F 2 "" H 9150 3750 50 0001 C CNN F 3 "~" H 9150 3750 50 0001 C CNN 1 9150 3550 1 0 0 -1 $EndComp $Comp L Device:CP C? U 1 1 5E465EAF P 7350 4150 F 0 "C?" V 7605 4150 50 0000 C CNN F 1 "47u" V 7514 4150 50 0000 C CNN F 2 "" H 7388 4000 50 0001 C CNN F 3 "~" H 7350 4150 50 0001 C CNN 1 7350 4150 0 -1 -1 0 $EndComp $Comp L Device:R R? U 1 1 5E465EB5 P 7350 3800 F 0 "R?" V 7557 3800 50 0000 C CNN F 1 "100k" V 7466 3800 50 0000 C CNN F 2 "" V 7280 3800 50 0001 C CNN F 3 "~" H 7350 3800 50 0001 C CNN 1 7350 3800 0 -1 -1 0 $EndComp Wire Wire Line 7500 4150 7600 4150 Wire Wire Line 7500 3800 7600 3800 Wire Wire Line 6600 3900 7100 3900 Wire Wire Line 7100 3900 7100 3800 Wire Wire Line 7100 3800 7200 3800 Wire Wire Line 7100 3900 7100 4150 Wire Wire Line 7100 4150 7200 4150 Connection ~ 7100 3900 Wire Wire Line 7600 4150 7600 3900 Wire Wire Line 7600 3900 8950 3900 Connection ~ 7600 3900 Wire Wire Line 7600 3900 7600 3800 Wire Wire Line 4750 1650 9950 1650 Wire Wire Line 9950 1650 9950 2950 Wire Wire Line 9950 3550 9350 3550 Connection ~ 4750 1650 Wire Wire Line 4750 1650 4750 1550 Wire Wire Line 9350 2950 9950 2950 Connection ~ 9950 2950 Wire Wire Line 9950 2950 9950 3550 Wire Wire Line 7400 2950 7900 2950 Wire Wire Line 7400 2700 7400 2950 $Comp L Device:D D? U 1 1 5E469199 P 6450 3500 F 0 "D?" H 6450 3716 50 0000 C CNN F 1 "1N4148" H 6450 3625 50 0000 C CNN F 2 "" H 6450 3500 50 0001 C CNN F 3 "~" H 6450 3500 50 0001 C CNN 1 6450 3500 1 0 0 -1 $EndComp Connection ~ 7400 2950 Wire Wire Line 6050 3200 6050 3500 Connection ~ 6050 3200 Wire Wire Line 6050 3200 6300 3200 Wire Wire Line 6300 3500 6050 3500 Connection ~ 6050 3500 Wire Wire Line 6050 3500 6050 3900 Wire Wire Line 6600 3500 7400 3500 Wire Wire Line 7400 2950 7400 3500 Wire Wire Line 8950 3900 8950 3550 $Comp L power:GND #PWR? U 1 1 5E471827 P 1100 6200 F 0 "#PWR?" H 1100 5950 50 0001 C CNN F 1 "GND" H 1105 6027 50 0000 C CNN F 2 "" H 1100 6200 50 0001 C CNN F 3 "" H 1100 6200 50 0001 C CNN 1 1100 6200 1 0 0 -1 $EndComp Wire Wire Line 5500 2600 5500 2700 $Comp L Device:R R? U 1 1 5E475105 P 7900 3250 F 0 "R?" H 7970 3296 50 0000 L CNN F 1 "180k" H 7970 3205 50 0000 L CNN F 2 "" V 7830 3250 50 0001 C CNN F 3 "~" H 7900 3250 50 0001 C CNN 1 7900 3250 1 0 0 -1 $EndComp Wire Wire Line 7900 3100 7900 2950 Connection ~ 7900 2950 Wire Wire Line 7900 2950 8950 2950 Wire Wire Line 7900 3400 7900 3500 Wire Wire Line 7900 3500 8250 3500 Connection ~ 8250 3500 Wire Wire Line 5150 3200 6050 3200 $Comp L Device:R R? U 1 1 5E478127 P 7100 4500 F 0 "R?" H 7170 4546 50 0000 L CNN F 1 "56k" H 7170 4455 50 0000 L CNN F 2 "" V 7030 4500 50 0001 C CNN F 3 "~" H 7100 4500 50 0001 C CNN 1 7100 4500 1 0 0 -1 $EndComp Wire Wire Line 7100 4350 7100 4150 Connection ~ 7100 4150 Wire Wire Line 7100 4650 7100 4700 Wire Wire Line 7100 4700 8250 4700 Wire Wire Line 8250 4700 8250 4800 Wire Wire Line 8250 3500 8250 4700 Connection ~ 8250 4700 Connection ~ 5500 2700 $Comp L ESP8266:ESP-01v090 U? U 1 1 5E45B0FB P 6450 2550 F 0 "U?" H 6450 3065 50 0000 C CNN F 1 "ESP-01v090" H 6450 2974 50 0000 C CNN F 2 "" H 6450 2550 50 0001 C CNN F 3 "http://l0l.org.uk/2014/12/esp8266-modules-hardware-guide-gotta-catch-em-all/" H 6450 2550 50 0001 C CNN 1 6450 2550 1 0 0 -1 $EndComp $Comp L Device:R R? U 1 1 6054F7DD P 5150 3650 F 0 "R?" H 5220 3696 50 0000 L CNN F 1 "180k" H 5220 3605 50 0000 L CNN F 2 "" V 5080 3650 50 0001 C CNN F 3 "~" H 5150 3650 50 0001 C CNN 1 5150 3650 1 0 0 -1 $EndComp Wire Wire Line 5150 3500 5150 3200 Connection ~ 5150 3200 Wire Wire Line 5150 3800 5150 4700 Wire Wire Line 5150 4700 7100 4700 Connection ~ 7100 4700 Wire Wire Line 4750 1650 4750 2700 $Comp L Diode:1N4001 D? U 1 1 60581C0F P 1550 5400 F 0 "D?" H 1550 5184 50 0000 C CNN F 1 "1N4001" H 1550 5275 50 0000 C CNN F 2 "Diode_THT:D_DO-41_SOD81_P10.16mm_Horizontal" H 1550 5225 50 0001 C CNN F 3 "http://www.vishay.com/docs/88503/1n4001.pdf" H 1550 5400 50 0001 C CNN 1 1550 5400 -1 0 0 1 $EndComp $Comp L power:VCC #PWR? U 1 1 60582FCC P 1900 5250 F 0 "#PWR?" H 1900 5100 50 0001 C CNN F 1 "VCC" H 1917 5423 50 0000 C CNN F 2 "" H 1900 5250 50 0001 C CNN F 3 "" H 1900 5250 50 0001 C CNN 1 1900 5250 1 0 0 -1 $EndComp Wire Wire Line 1700 5400 1900 5400 Wire Wire Line 1900 5400 1900 5250 Wire Wire Line 1400 5400 1100 5400 Wire Wire Line 1100 5400 1100 5700 Wire Wire Line 1100 6200 1100 6000 Text Notes 1050 5000 0 50 ~ 0 Supply Variant 2\nLiIon 18650 cell, 4.2V\nand diode to reduce voltage Text Notes 1000 6850 0 50 ~ 0 Due to diode characteristic, voltage with no load \n(ESP in power down/deep sleep) will be too high, \nwhich causes the ESP8266 to consume much more \nthan expected in deep sleep (~230 µA at 3.8 V). \n-> not the best solution $Comp L Device:Battery BT? U 1 1 60592FAF P 1100 2100 F 0 "BT?" H 1208 2146 50 0000 L CNN F 1 "2x Lithium AA cell" H 1208 2055 50 0000 L CNN F 2 "" V 1100 2160 50 0001 C CNN F 3 "~" V 1100 2160 50 0001 C CNN 1 1100 2100 1 0 0 -1 $EndComp $Comp L power:GND #PWR? U 1 1 605940F1 P 1100 2450 F 0 "#PWR?" H 1100 2200 50 0001 C CNN F 1 "GND" H 1105 2277 50 0000 C CNN F 2 "" H 1100 2450 50 0001 C CNN F 3 "" H 1100 2450 50 0001 C CNN 1 1100 2450 1 0 0 -1 $EndComp Wire Wire Line 1100 2450 1100 2300 $Comp L power:VCC #PWR? U 1 1 6059606D P 1100 1700 F 0 "#PWR?" H 1100 1550 50 0001 C CNN F 1 "VCC" H 1117 1873 50 0000 C CNN F 2 "" H 1100 1700 50 0001 C CNN F 3 "" H 1100 1700 50 0001 C CNN 1 1100 1700 1 0 0 -1 $EndComp Wire Wire Line 1100 1900 1100 1700 Text Notes 1050 1400 0 50 ~ 0 Supply Variant 1\n2x 1-way Lithium AA cells, 1.5 V in series Text Notes 1400 1750 0 50 ~ 0 This variant proved to work well even at temperatures below 0°C. \nBattery lasted for more than a year (ESP active 1-2x per day). \nESP consumption in deep sleep/power down is <10 µA. Text Notes 4950 5400 0 50 ~ 0 ESP is powered down until one of the contacts triggers CH_PD input. \n-> ESP wakes up and sets GPIO0 to high -> CH_PD stays high until software \nswitches off GPIO0 -> ESP is powered down immediately after it sent the MQTT message. $Comp L Device:Battery BT? U 1 1 6057A22A P 1100 3750 F 0 "BT?" H 1208 3796 50 0000 L CNN F 1 "2x Lithium AA cell" H 1208 3705 50 0000 L CNN F 2 "" V 1100 3810 50 0001 C CNN F 3 "~" V 1100 3810 50 0001 C CNN 1 1100 3750 1 0 0 -1 $EndComp $Comp L power:GND #PWR? U 1 1 6057A230 P 1100 4100 F 0 "#PWR?" H 1100 3850 50 0001 C CNN F 1 "GND" H 1105 3927 50 0000 C CNN F 2 "" H 1100 4100 50 0001 C CNN F 3 "" H 1100 4100 50 0001 C CNN 1 1100 4100 1 0 0 -1 $EndComp Wire Wire Line 1100 4100 1100 3950 $Comp L power:VCC #PWR? U 1 1 6057A237 P 1100 3350 F 0 "#PWR?" H 1100 3200 50 0001 C CNN F 1 "VCC" H 1117 3523 50 0000 C CNN F 2 "" H 1100 3350 50 0001 C CNN F 3 "" H 1100 3350 50 0001 C CNN 1 1100 3350 1 0 0 -1 $EndComp Wire Wire Line 1100 3550 1100 3350 Text Notes 1050 3050 0 50 ~ 0 Supply Variant 1a\n1x 1-way Lithium CR-V3 cell, 3 V Text Notes 1400 3250 0 50 ~ 0 Same as 2x Lithium AA cell, 1.5 V, in series $EndSCHEMATC