ESPPostkastl_rev1.sch 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413
  1. EESchema Schematic File Version 4
  2. EELAYER 30 0
  3. EELAYER END
  4. $Descr A4 11693 8268
  5. encoding utf-8
  6. Sheet 1 1
  7. Title ""
  8. Date ""
  9. Rev ""
  10. Comp ""
  11. Comment1 ""
  12. Comment2 ""
  13. Comment3 ""
  14. Comment4 ""
  15. $EndDescr
  16. $Comp
  17. L Device:Battery_Cell BT?
  18. U 1 1 5E45BF9D
  19. P 1100 5900
  20. F 0 "BT?" H 1218 5996 50 0000 L CNN
  21. F 1 "LiIon battery 4.2V" H 1218 5905 50 0000 L CNN
  22. F 2 "" V 1100 5960 50 0001 C CNN
  23. F 3 "~" V 1100 5960 50 0001 C CNN
  24. 1 1100 5900
  25. 1 0 0 -1
  26. $EndComp
  27. $Comp
  28. L power:VCC #PWR?
  29. U 1 1 5E45DBB8
  30. P 4750 1550
  31. F 0 "#PWR?" H 4750 1400 50 0001 C CNN
  32. F 1 "VCC" H 4767 1723 50 0000 C CNN
  33. F 2 "" H 4750 1550 50 0001 C CNN
  34. F 3 "" H 4750 1550 50 0001 C CNN
  35. 1 4750 1550
  36. 1 0 0 -1
  37. $EndComp
  38. Wire Wire Line
  39. 5500 2700 4750 2700
  40. Wire Wire Line
  41. 7400 2400 8250 2400
  42. Wire Wire Line
  43. 8250 2400 8250 3500
  44. $Comp
  45. L power:GND #PWR?
  46. U 1 1 5E45E3CE
  47. P 8250 4800
  48. F 0 "#PWR?" H 8250 4550 50 0001 C CNN
  49. F 1 "GND" H 8255 4627 50 0000 C CNN
  50. F 2 "" H 8250 4800 50 0001 C CNN
  51. F 3 "" H 8250 4800 50 0001 C CNN
  52. 1 8250 4800
  53. 1 0 0 -1
  54. $EndComp
  55. $Comp
  56. L Device:D D?
  57. U 1 1 5E45E9FB
  58. P 6450 3200
  59. F 0 "D?" H 6450 3416 50 0000 C CNN
  60. F 1 "1N4148" H 6450 3325 50 0000 C CNN
  61. F 2 "" H 6450 3200 50 0001 C CNN
  62. F 3 "~" H 6450 3200 50 0001 C CNN
  63. 1 6450 3200
  64. 1 0 0 -1
  65. $EndComp
  66. $Comp
  67. L Device:D D?
  68. U 1 1 5E460F99
  69. P 6450 3900
  70. F 0 "D?" H 6450 4116 50 0000 C CNN
  71. F 1 "1N4148" H 6450 4025 50 0000 C CNN
  72. F 2 "" H 6450 3900 50 0001 C CNN
  73. F 3 "~" H 6450 3900 50 0001 C CNN
  74. 1 6450 3900
  75. 1 0 0 -1
  76. $EndComp
  77. Wire Wire Line
  78. 5500 2500 5150 2500
  79. Wire Wire Line
  80. 5150 2500 5150 3200
  81. Wire Wire Line
  82. 6600 3200 7600 3200
  83. Wire Wire Line
  84. 7600 3200 7600 2600
  85. Wire Wire Line
  86. 7600 2600 7400 2600
  87. Wire Wire Line
  88. 6300 3900 6050 3900
  89. $Comp
  90. L Switch:SW_Push SW?
  91. U 1 1 5E464354
  92. P 9150 2950
  93. F 0 "SW?" H 9150 3235 50 0000 C CNN
  94. F 1 "Contact Door (Empty)" H 9150 3144 50 0000 C CNN
  95. F 2 "" H 9150 3150 50 0001 C CNN
  96. F 3 "~" H 9150 3150 50 0001 C CNN
  97. 1 9150 2950
  98. 1 0 0 -1
  99. $EndComp
  100. $Comp
  101. L Switch:SW_Push SW?
  102. U 1 1 5E464FC2
  103. P 9150 3550
  104. F 0 "SW?" H 9150 3835 50 0000 C CNN
  105. F 1 "Contact Mailbox" H 9150 3744 50 0000 C CNN
  106. F 2 "" H 9150 3750 50 0001 C CNN
  107. F 3 "~" H 9150 3750 50 0001 C CNN
  108. 1 9150 3550
  109. 1 0 0 -1
  110. $EndComp
  111. $Comp
  112. L Device:CP C?
  113. U 1 1 5E465EAF
  114. P 7350 4150
  115. F 0 "C?" V 7605 4150 50 0000 C CNN
  116. F 1 "47u" V 7514 4150 50 0000 C CNN
  117. F 2 "" H 7388 4000 50 0001 C CNN
  118. F 3 "~" H 7350 4150 50 0001 C CNN
  119. 1 7350 4150
  120. 0 -1 -1 0
  121. $EndComp
  122. $Comp
  123. L Device:R R?
  124. U 1 1 5E465EB5
  125. P 7350 3800
  126. F 0 "R?" V 7557 3800 50 0000 C CNN
  127. F 1 "100k" V 7466 3800 50 0000 C CNN
  128. F 2 "" V 7280 3800 50 0001 C CNN
  129. F 3 "~" H 7350 3800 50 0001 C CNN
  130. 1 7350 3800
  131. 0 -1 -1 0
  132. $EndComp
  133. Wire Wire Line
  134. 7500 4150 7600 4150
  135. Wire Wire Line
  136. 7500 3800 7600 3800
  137. Wire Wire Line
  138. 6600 3900 7100 3900
  139. Wire Wire Line
  140. 7100 3900 7100 3800
  141. Wire Wire Line
  142. 7100 3800 7200 3800
  143. Wire Wire Line
  144. 7100 3900 7100 4150
  145. Wire Wire Line
  146. 7100 4150 7200 4150
  147. Connection ~ 7100 3900
  148. Wire Wire Line
  149. 7600 4150 7600 3900
  150. Wire Wire Line
  151. 7600 3900 8950 3900
  152. Connection ~ 7600 3900
  153. Wire Wire Line
  154. 7600 3900 7600 3800
  155. Wire Wire Line
  156. 4750 1650 9950 1650
  157. Wire Wire Line
  158. 9950 1650 9950 2950
  159. Wire Wire Line
  160. 9950 3550 9350 3550
  161. Connection ~ 4750 1650
  162. Wire Wire Line
  163. 4750 1650 4750 1550
  164. Wire Wire Line
  165. 9350 2950 9950 2950
  166. Connection ~ 9950 2950
  167. Wire Wire Line
  168. 9950 2950 9950 3550
  169. Wire Wire Line
  170. 7400 2950 7900 2950
  171. Wire Wire Line
  172. 7400 2700 7400 2950
  173. $Comp
  174. L Device:D D?
  175. U 1 1 5E469199
  176. P 6450 3500
  177. F 0 "D?" H 6450 3716 50 0000 C CNN
  178. F 1 "1N4148" H 6450 3625 50 0000 C CNN
  179. F 2 "" H 6450 3500 50 0001 C CNN
  180. F 3 "~" H 6450 3500 50 0001 C CNN
  181. 1 6450 3500
  182. 1 0 0 -1
  183. $EndComp
  184. Connection ~ 7400 2950
  185. Wire Wire Line
  186. 6050 3200 6050 3500
  187. Connection ~ 6050 3200
  188. Wire Wire Line
  189. 6050 3200 6300 3200
  190. Wire Wire Line
  191. 6300 3500 6050 3500
  192. Connection ~ 6050 3500
  193. Wire Wire Line
  194. 6050 3500 6050 3900
  195. Wire Wire Line
  196. 6600 3500 7400 3500
  197. Wire Wire Line
  198. 7400 2950 7400 3500
  199. Wire Wire Line
  200. 8950 3900 8950 3550
  201. $Comp
  202. L power:GND #PWR?
  203. U 1 1 5E471827
  204. P 1100 6200
  205. F 0 "#PWR?" H 1100 5950 50 0001 C CNN
  206. F 1 "GND" H 1105 6027 50 0000 C CNN
  207. F 2 "" H 1100 6200 50 0001 C CNN
  208. F 3 "" H 1100 6200 50 0001 C CNN
  209. 1 1100 6200
  210. 1 0 0 -1
  211. $EndComp
  212. Wire Wire Line
  213. 5500 2600 5500 2700
  214. $Comp
  215. L Device:R R?
  216. U 1 1 5E475105
  217. P 7900 3250
  218. F 0 "R?" H 7970 3296 50 0000 L CNN
  219. F 1 "180k" H 7970 3205 50 0000 L CNN
  220. F 2 "" V 7830 3250 50 0001 C CNN
  221. F 3 "~" H 7900 3250 50 0001 C CNN
  222. 1 7900 3250
  223. 1 0 0 -1
  224. $EndComp
  225. Wire Wire Line
  226. 7900 3100 7900 2950
  227. Connection ~ 7900 2950
  228. Wire Wire Line
  229. 7900 2950 8950 2950
  230. Wire Wire Line
  231. 7900 3400 7900 3500
  232. Wire Wire Line
  233. 7900 3500 8250 3500
  234. Connection ~ 8250 3500
  235. Wire Wire Line
  236. 5150 3200 6050 3200
  237. $Comp
  238. L Device:R R?
  239. U 1 1 5E478127
  240. P 7100 4500
  241. F 0 "R?" H 7170 4546 50 0000 L CNN
  242. F 1 "56k" H 7170 4455 50 0000 L CNN
  243. F 2 "" V 7030 4500 50 0001 C CNN
  244. F 3 "~" H 7100 4500 50 0001 C CNN
  245. 1 7100 4500
  246. 1 0 0 -1
  247. $EndComp
  248. Wire Wire Line
  249. 7100 4350 7100 4150
  250. Connection ~ 7100 4150
  251. Wire Wire Line
  252. 7100 4650 7100 4700
  253. Wire Wire Line
  254. 7100 4700 8250 4700
  255. Wire Wire Line
  256. 8250 4700 8250 4800
  257. Wire Wire Line
  258. 8250 3500 8250 4700
  259. Connection ~ 8250 4700
  260. Connection ~ 5500 2700
  261. $Comp
  262. L ESP8266:ESP-01v090 U?
  263. U 1 1 5E45B0FB
  264. P 6450 2550
  265. F 0 "U?" H 6450 3065 50 0000 C CNN
  266. F 1 "ESP-01v090" H 6450 2974 50 0000 C CNN
  267. F 2 "" H 6450 2550 50 0001 C CNN
  268. F 3 "http://l0l.org.uk/2014/12/esp8266-modules-hardware-guide-gotta-catch-em-all/" H 6450 2550 50 0001 C CNN
  269. 1 6450 2550
  270. 1 0 0 -1
  271. $EndComp
  272. $Comp
  273. L Device:R R?
  274. U 1 1 6054F7DD
  275. P 5150 3650
  276. F 0 "R?" H 5220 3696 50 0000 L CNN
  277. F 1 "180k" H 5220 3605 50 0000 L CNN
  278. F 2 "" V 5080 3650 50 0001 C CNN
  279. F 3 "~" H 5150 3650 50 0001 C CNN
  280. 1 5150 3650
  281. 1 0 0 -1
  282. $EndComp
  283. Wire Wire Line
  284. 5150 3500 5150 3200
  285. Connection ~ 5150 3200
  286. Wire Wire Line
  287. 5150 3800 5150 4700
  288. Wire Wire Line
  289. 5150 4700 7100 4700
  290. Connection ~ 7100 4700
  291. Wire Wire Line
  292. 4750 1650 4750 2700
  293. $Comp
  294. L Diode:1N4001 D?
  295. U 1 1 60581C0F
  296. P 1550 5400
  297. F 0 "D?" H 1550 5184 50 0000 C CNN
  298. F 1 "1N4001" H 1550 5275 50 0000 C CNN
  299. F 2 "Diode_THT:D_DO-41_SOD81_P10.16mm_Horizontal" H 1550 5225 50 0001 C CNN
  300. F 3 "http://www.vishay.com/docs/88503/1n4001.pdf" H 1550 5400 50 0001 C CNN
  301. 1 1550 5400
  302. -1 0 0 1
  303. $EndComp
  304. $Comp
  305. L power:VCC #PWR?
  306. U 1 1 60582FCC
  307. P 1900 5250
  308. F 0 "#PWR?" H 1900 5100 50 0001 C CNN
  309. F 1 "VCC" H 1917 5423 50 0000 C CNN
  310. F 2 "" H 1900 5250 50 0001 C CNN
  311. F 3 "" H 1900 5250 50 0001 C CNN
  312. 1 1900 5250
  313. 1 0 0 -1
  314. $EndComp
  315. Wire Wire Line
  316. 1700 5400 1900 5400
  317. Wire Wire Line
  318. 1900 5400 1900 5250
  319. Wire Wire Line
  320. 1400 5400 1100 5400
  321. Wire Wire Line
  322. 1100 5400 1100 5700
  323. Wire Wire Line
  324. 1100 6200 1100 6000
  325. Text Notes 1050 5000 0 50 ~ 0
  326. Supply Variant 2\nLiIon 18650 cell, 4.2V\nand diode to reduce voltage
  327. Text Notes 1000 6850 0 50 ~ 0
  328. 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
  329. $Comp
  330. L Device:Battery BT?
  331. U 1 1 60592FAF
  332. P 1100 2100
  333. F 0 "BT?" H 1208 2146 50 0000 L CNN
  334. F 1 "2x Lithium AA cell" H 1208 2055 50 0000 L CNN
  335. F 2 "" V 1100 2160 50 0001 C CNN
  336. F 3 "~" V 1100 2160 50 0001 C CNN
  337. 1 1100 2100
  338. 1 0 0 -1
  339. $EndComp
  340. $Comp
  341. L power:GND #PWR?
  342. U 1 1 605940F1
  343. P 1100 2450
  344. F 0 "#PWR?" H 1100 2200 50 0001 C CNN
  345. F 1 "GND" H 1105 2277 50 0000 C CNN
  346. F 2 "" H 1100 2450 50 0001 C CNN
  347. F 3 "" H 1100 2450 50 0001 C CNN
  348. 1 1100 2450
  349. 1 0 0 -1
  350. $EndComp
  351. Wire Wire Line
  352. 1100 2450 1100 2300
  353. $Comp
  354. L power:VCC #PWR?
  355. U 1 1 6059606D
  356. P 1100 1700
  357. F 0 "#PWR?" H 1100 1550 50 0001 C CNN
  358. F 1 "VCC" H 1117 1873 50 0000 C CNN
  359. F 2 "" H 1100 1700 50 0001 C CNN
  360. F 3 "" H 1100 1700 50 0001 C CNN
  361. 1 1100 1700
  362. 1 0 0 -1
  363. $EndComp
  364. Wire Wire Line
  365. 1100 1900 1100 1700
  366. Text Notes 1050 1400 0 50 ~ 0
  367. Supply Variant 1\n2x 1-way Lithium AA cells, 1.5 V in series
  368. Text Notes 1400 1750 0 50 ~ 0
  369. 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.
  370. Text Notes 4950 5400 0 50 ~ 0
  371. 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.
  372. $Comp
  373. L Device:Battery BT?
  374. U 1 1 6057A22A
  375. P 1100 3750
  376. F 0 "BT?" H 1208 3796 50 0000 L CNN
  377. F 1 "2x Lithium AA cell" H 1208 3705 50 0000 L CNN
  378. F 2 "" V 1100 3810 50 0001 C CNN
  379. F 3 "~" V 1100 3810 50 0001 C CNN
  380. 1 1100 3750
  381. 1 0 0 -1
  382. $EndComp
  383. $Comp
  384. L power:GND #PWR?
  385. U 1 1 6057A230
  386. P 1100 4100
  387. F 0 "#PWR?" H 1100 3850 50 0001 C CNN
  388. F 1 "GND" H 1105 3927 50 0000 C CNN
  389. F 2 "" H 1100 4100 50 0001 C CNN
  390. F 3 "" H 1100 4100 50 0001 C CNN
  391. 1 1100 4100
  392. 1 0 0 -1
  393. $EndComp
  394. Wire Wire Line
  395. 1100 4100 1100 3950
  396. $Comp
  397. L power:VCC #PWR?
  398. U 1 1 6057A237
  399. P 1100 3350
  400. F 0 "#PWR?" H 1100 3200 50 0001 C CNN
  401. F 1 "VCC" H 1117 3523 50 0000 C CNN
  402. F 2 "" H 1100 3350 50 0001 C CNN
  403. F 3 "" H 1100 3350 50 0001 C CNN
  404. 1 1100 3350
  405. 1 0 0 -1
  406. $EndComp
  407. Wire Wire Line
  408. 1100 3550 1100 3350
  409. Text Notes 1050 3050 0 50 ~ 0
  410. Supply Variant 1a\n1x 1-way Lithium CR-V3 cell, 3 V
  411. Text Notes 1400 3250 0 50 ~ 0
  412. Same as 2x Lithium AA cell, 1.5 V, in series
  413. $EndSCHEMATC