Skip to the content
2 layers40.4 × 33.8 mmEsp32-s2, the printed circuit board in 3D

window handle contact sensor

Size
40.4 × 33.8 mm
Copper layers
2
Thickness
1.6 mm
Parts
31
Nets
49
Pads
124
Tracks, vias
242, 25
Pours
1
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
18 Jul 2020
Updated
30 Apr 2023

Overview

Esp32-s2 is an open-source printed circuit board by hggh, from the hggh/window-handle-sensor repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 40.4 × 33.8 mm with 31 parts on 49 nets, routed with 242 tracks and 25 vias.

It is built around the ESP32-S2-WROOM-N4, BC807 and BC817. Its parts include 15 resistors, 5 capacitors, 3 diodes, 2 ICs and 2 transistors. It belongs with the home automation and IoT and sensors and measurement boards and the ESP32 and RISC-V boards of this library.

Main components

3

README

README.md

window handle sensor

get the status of your windows. sensor is between your handle and the window.

window_sensor_installed.jpg

magnet_holder.jpg case_sensor_pcb.jpg

TODO

  • replace xc6220 footprint with the one from KiCAD
  • add a button for wifi reset
  • battery connector rotate it: open should be on top

PCBs

this project contains of two pcbs.

window-handle-sensor

This PCB is the sensor. It has three hall sensors placed on a 0.6mm pcb.

library used: https://github.com/hggh/kicad-libraries

BOM of window-handle-sensor pcb
numbername
C1,C2,C3ceramic cap 0.1 µF SMD 0805
U1,U2,U3Infineon TLE4913
ESP controller board

This PCB is the controller board with the ESP32-S2. The thickness of this pcb can be 1.0-1.6mm.

BOM of esp32-s2 pcb
numbername
C1ceramic cap 22µF SMD 0805
C2ceramic cap 4.7µF SMD 0805
C3tantalum cap 220µF SMD EIA-7343-31
C4ceramic cap 100nF SMD 0805
C5ceramic cap 1µF SMD 0805
U1XC6220 3.0V SOT-25
U2ESP32-S2-WROOM
H12.54mm 2x3 pin header
J1JST PH S2B-PH-K
Q1BC817
Q2BC807
R1, R1410k SMD0805
R2, R3, R4100 SMD0805
R5, R6, R7, R8, R910M SMD 0805
R10, R111k1 SMD 0805
R12, R1310k SMD 0805

case

The inlay is placed on the square bolt with 3x magnets.

Magnets: Ø 2 mm, h=1mm (strength: 110g): https://www.supermagnete.de/eng/disc-magnets-neodymium/disc-magnet-2mm-1mm_S-02-01-N

Parts

31
QtyValueFootprintReferences
510MResistor_SMD:R_0805_2012MetricR5, R6, R7, R8, R9
3100Resistor_SMD:R_0805_2012MetricR2, R3, R4
310kResistor_SMD:R_0805_2012MetricR1, R12, R13
21k1Resistor_SMD:R_0805_2012MetricR10, R11
10Resistor_SMD:R_0805_2012MetricR15
1100nFCapacitor_SMD:C_0805_2012MetricC4
110kCapacitor_SMD:C_0805_2012MetricR14
11µFCapacitor_SMD:C_0805_2012MetricC5
1220µFCapacitor_Tantalum_SMD:CP_EIA-7343-31_Kemet-DC3
122µFCapacitor_SMD:C_0805_2012MetricC1
14,7µFCapacitor_SMD:C_0805_2012MetricC2
1BATTConnector_JST:JST_PH_S2B-PH-K_1x02_P2.00mm_HorizontalJ1
1BC807Package_TO_SOT_SMD:SOT-23Q2
1BC817Package_TO_SOT_SMD:SOT-23Q1
1BlueLED_SMD:LED_0805_2012MetricD1
1ESP32-S2-WROOMesp32s2:ESP32-S2-WROOMU2
1ESP32Headeresp32-prog-header:esp32-prog-headerH1
1GreenLED_SMD:LED_0805_2012MetricD3
1HALL-CONNConnector_PinHeader_2.00mm:PinHeader_1x06_P2.00mm_VerticalJ2
1RSTSMDButton:SMD_ButtonSW2
1RedLED_SMD:LED_0805_2012MetricD2
1XC6220xc622:XC6220U1

More from hggh/window-handle-sensor

2
  • 2 layers31 × 38 mmLipo loader, the printed circuit board in 3D

    Lipo loader

    hggh/window-handle-sensor

    window handle contact sensor

    9 parts6GPL-3.0

Similar boards

  • 4 layers129 × 104.6 mmPC-1100X, the printed circuit board in 3D

    PC-1100X

    zscircuits/zs1100a

    All files hardware and software related to the zs1100a

    528 parts76
  • 2 layers89.6 × 79 mmTDR 5351 core, the printed circuit board in 3D

    TDR 5351 core

    MR-DOS/TDR_diploma_thesis

    Time domain reflectometer. Includes Hardware, firmware and GUI in Octave. Also a diploma thesis.

    199 parts33GPL-3.0
  • 2 layers52.5 × 28 mmKitchen timer, the printed circuit board in 3D

    Kitchen timer

    hggh/kitchen-timer

    kitchen timer

    35 parts16GPL-3.0
  • 4 layers252 × 152 mmCTA control board, the printed circuit board in 3D

    CTA control board

    PySpice-org/eda-rw

    Python library to read/write KiCad and LibrePCB Sexpr file format

    619 parts9
  • 2 layers100 × 90 mmCurrent dr amp, the printed circuit board in 3D

    Current dr amp

    werediver/current-dr-amp

    A current drive headphone amplifier

    83 parts7
  • 2 layers160 × 100 mm36C3 Badge Hardware, the printed circuit board in 3D

    36C3 Badge Hardware

    CatoLynx/36C3-Badge

    VFD and LED badge fitting the 36C3 design

    159 parts5GPL-3.0
  • 2 layers139.2 × 95.6 mmIGBT DRIVER, the printed circuit board in 3D

    IGBT DRIVER

    EmadBahra/open-source-IGBT-gate-driver

    This is a beta version and it's not tested yet, so use it at your own risk under GPL v3

    240 parts5

Questions

How big is the Esp32-s2 PCB?

It measures 40.4 × 33.8 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Esp32-s2 use?

31 parts, built around the ESP32-S2-WROOM-N4, BC807 and BC817. 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 Esp32-s2 KiCad files?

From the hggh/window-handle-sensor repository on GitHub, at the commit this page was made from: the board is pcb/esp32-s2/esp32-s2.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Esp32-s2 design in my own project?

Its repository publishes it under the GPL-3.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).