Skip to the content
PCBKitNew board
2 layers31.4 × 20.6 mmWindow sensor V5, the printed circuit board in 3D

Version 5 of the Window/Door sensor project this time with ultra low current consumption

Size
31.4 × 20.6 mm
Copper layers
2
Thickness
1.6 mm
Parts
32
Nets
26
Pads
95
Tracks, vias
189, 19
Pours
4
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
25 Mar 2022
Updated
20 Jan 2024

Overview

Window sensor V5 is an open-source printed circuit board by gadjet, from the gadjet/Window-Door-sensor-Version-5 repository on GitHub, published under the GPL-2.0 licence. It is a 2-layer board of 31.4 × 20.6 mm with 32 parts on 26 nets, routed with 189 tracks and 19 vias.

It is built around the ESP-12F, 74AHC1G86SE and 74AHC1G32GW, with the SPX3819M5-L-3-3 among its other parts. Its parts include 12 resistors, 8 capacitors, 5 ICs, 2 connectors and 2 switches. It belongs with the sensors and measurement boards and the ESP8266 boards of this library.

Main components

4

README

README.md

Window-Door-sensor-Version-5

I have found an error in the BOM file for the PCBA, U4 has the wrong LSC part number against it, I will correct the file ASAP

The file has now been corrected 8/11/22

*** "Window sensor V5.zip" file added with all the files required for PCBA at JLCPCB.com previous files removed.

Version 5 of the Window/Door sensor project this time with ultra low current consumption and a button input. 20220325_195626 I have continued to develop the original window/Door sensor from the Youtube video of Makermeik (https://github.com/MakerMeik) and this is the latest version (version 5) At each revision I've tried to reduce the power consumption more and more and with this version the Quiescent current with the Door/Window shut is a around 5.4uA and with the door open or using as a WiFi button (Doorbell etc.) then it's around 3.9uA and depending on usage you're looking at years of usage on a small capacity L-ion cell.

The trigger logic is essetially the same as the the original version except the output from the two XOR gates is inverted to give a high pulse and return to Low when stable, this enables the output to trigger the input of an OR gate which self latches to keep the enable pin of the SPX3189 LDO high and the ESP module powered up.

When the ESP has finished running its code it sets GPIO16 low which resets the OR gates latch and powers off the LDO.

To keep the power on time as short as possible I'm using ESP-NOW to send the data packets to the ESP receiver but you could connect to your router and send MQTT messages, this would use more power but as the consumption is quite low the cell would still last quite a long time.

It has been pointed out to me that there are dedicated ICs out there that can handle this sort of thing, wake up from a button at least, but I can't find them readily available and the ones I can find are quite expesive, more than the cost of a populated Version 5 PCB from JLCPCB anyway.

NOTE:

It has been mentioned in the issues that my TX/RX labels are non standard, this is true the pin labelled TX is connected to the RX of the ESP and vice versa.

I do this so when I plug in my flasher board the label match.

Parts

32
QtyValueFootprintReferences
810kResistor_SMD:R_0603_1608MetricR2, R3, R6, R7, R8, R9, R10, R12
5100nFCapacitor_SMD:C_0603_1608MetricC1, C2, C3, C5, C6
21MResistor_SMD:R_0603_1608MetricR1, R5
21uFCapacitor_SMD:C_0603_1608MetricC4, C8
274AHC1G86Package_TO_SOT_SMD:SOT-23-5U1, U2
2SW_PushButton_Switch_SMD:SW_Push_SPST_NO_Alps_SKRKFLASH, RESET
11kResistor_SMD:R_0603_1608MetricR11
12u2Capacitor_SMD:C_0603_1608MetricC7
13M2Resistor_SMD:R_0603_1608MetricR4
174AHC1G32Package_TO_SOT_SMD:SOT-23-5U4
1Conn_01x02Connector_JST:JST_PH_S2B-PH-K_1x02_P2.00mm_HorizontalJ1
1Conn_01x05_MaleConnector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ2
1ESP-12FRF_Module:ESP-12EU3
1LED_SmallLED_SMD:LED_0805_2012MetricD1
1SPX3819M5-L-3-3Package_TO_SOT_SMD:SOT-23-5U5
1SW_PushButton_Switch_THT:SW_PUSH_6mm_H4.3mmSW2
1SW_ReedButton_Switch_SMD:SW_SPST_REED_CT10-XXXX-G2SW1

Questions

How big is the Window sensor V5 PCB?

It measures 31.4 × 20.6 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Window sensor V5 use?

32 parts, built around the ESP-12F, 74AHC1G86SE, 74AHC1G32GW and SPX3819M5-L-3-3. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Window sensor V5 KiCad files?

From the gadjet/Window-Door-sensor-Version-5 repository on GitHub, at the commit this page was made from: the board is Window sensor V5.kicad_pcb and its schematic Window sensor V5.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Window sensor V5 design in my own project?

Its repository publishes it under the GPL-2.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).

Similar boards

  • 2 layers35.3 × 18.4 mmRemote Temp Humidity Sensor, the printed circuit board in 3D

    Remote Temp Humidity Sensor

    gadjet/Multifunction-ESP8266-Sensor-board

    AKA Wireless window/door sensor version 4

    28 parts3GPL-3.0
  • 2 layers91.4 × 73.7 mmSmdPracticeBoard, the printed circuit board in 3D

    SmdPracticeBoard

    perriestudios/SMD-Soldering-PCB

    A PCB I designed as a TA for EE 201 at UW over the Winter 2024

    34 parts1
  • 4 layers213.5 × 128.5 mmAnalog via, the printed circuit board in 3D

    Analog via

    starlingcode/analog-via

    Designs for an all-analog variant of the VIA meta crossfader

    767 parts
  • 2 layers56 × 56 mmPps watch, the printed circuit board in 3D

    Pps watch

    idlehandsdev/pps-watch

    An extremely accurate watch that doesn't tell time.

    39 parts42AGPL-3.0
  • 2 layers50 × 70 mmComprgb, the printed circuit board in 3D

    Comprgb

    jamvanderloeff/Component-to-RGB

    Component to RGB transcoder using LMH1251

    46 parts14MIT
  • 4 layers52.1 × 107.8 mmPCB Layout, the printed circuit board in 3D

    PCB Layout

    anwaypimpalkar/smartElevatorSystem

    A holistic device for safer and smarter contactless elevator system using Embedded Machine Learning on an Arduino Nano 33 BLE Sense, complete with a deployable PCB and fire safety system pipeline.

    24 parts6
  • 4 layers8b alu slice, the printed circuit board in 3D

    8b alu slice

    tmarhguy/tomato

    A functional 32-bit computer built from scratch in a dorm; implemented on FPGA, Kicad, browser simulation

    1,105 parts2