

Esp32-s2
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
3ESP32-S2-WROOM-N4
SMD,31x18mm-40℃~+85℃ -97dBm 19.5dBm 2.4GHz 310mA 3V~3.6V 63mA ESP32-S2 On-board PCB Antenna UART、SPI、I2C、GPIO、I2S SMD,31x18mm WiFi Modules ROHSEspressif SystemsWiFi ModulesBC807
SOT-23-65℃~+150℃ 1 PNP 100 100nA 345mW 45V 500mA 5V 700mV 80MHz PNP SOT-23 Bipolar (BJT) ROHSNexperiaBipolar (BJT)BC817
SOT-231 NPN 100nA 150MHz 300mW 40 45V 500mA 5V 700mV NPN SOT-23 Bipolar (BJT) ROHSShikuesBipolar (BJT)
README
README.mdwindow handle sensor
get the status of your windows. sensor is between your handle and the window.


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
| number | name |
|---|---|
| C1,C2,C3 | ceramic cap 0.1 µF SMD 0805 |
| U1,U2,U3 | Infineon 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
| number | name |
|---|---|
| C1 | ceramic cap 22µF SMD 0805 |
| C2 | ceramic cap 4.7µF SMD 0805 |
| C3 | tantalum cap 220µF SMD EIA-7343-31 |
| C4 | ceramic cap 100nF SMD 0805 |
| C5 | ceramic cap 1µF SMD 0805 |
| U1 | XC6220 3.0V SOT-25 |
| U2 | ESP32-S2-WROOM |
| H1 | 2.54mm 2x3 pin header |
| J1 | JST PH S2B-PH-K |
| Q1 | BC817 |
| Q2 | BC807 |
| R1, R14 | 10k SMD0805 |
| R2, R3, R4 | 100 SMD0805 |
| R5, R6, R7, R8, R9 | 10M SMD 0805 |
| R10, R11 | 1k1 SMD 0805 |
| R12, R13 | 10k 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| Qty | Value | Footprint | References |
|---|---|---|---|
| 5 | 10M | Resistor_SMD:R_0805_2012Metric | R5, R6, R7, R8, R9 |
| 3 | 100 | Resistor_SMD:R_0805_2012Metric | R2, R3, R4 |
| 3 | 10k | Resistor_SMD:R_0805_2012Metric | R1, R12, R13 |
| 2 | 1k1 | Resistor_SMD:R_0805_2012Metric | R10, R11 |
| 1 | 0 | Resistor_SMD:R_0805_2012Metric | R15 |
| 1 | 100nF | Capacitor_SMD:C_0805_2012Metric | C4 |
| 1 | 10k | Capacitor_SMD:C_0805_2012Metric | R14 |
| 1 | 1µF | Capacitor_SMD:C_0805_2012Metric | C5 |
| 1 | 220µF | Capacitor_Tantalum_SMD:CP_EIA-7343-31_Kemet-D | C3 |
| 1 | 22µF | Capacitor_SMD:C_0805_2012Metric | C1 |
| 1 | 4,7µF | Capacitor_SMD:C_0805_2012Metric | C2 |
| 1 | BATT | Connector_JST:JST_PH_S2B-PH-K_1x02_P2.00mm_Horizontal | J1 |
| 1 | BC807 | Package_TO_SOT_SMD:SOT-23 | Q2 |
| 1 | BC817 | Package_TO_SOT_SMD:SOT-23 | Q1 |
| 1 | Blue | LED_SMD:LED_0805_2012Metric | D1 |
| 1 | ESP32-S2-WROOM | esp32s2:ESP32-S2-WROOM | U2 |
| 1 | ESP32Header | esp32-prog-header:esp32-prog-header | H1 |
| 1 | Green | LED_SMD:LED_0805_2012Metric | D3 |
| 1 | HALL-CONN | Connector_PinHeader_2.00mm:PinHeader_1x06_P2.00mm_Vertical | J2 |
| 1 | RST | SMDButton:SMD_Button | SW2 |
| 1 | Red | LED_SMD:LED_0805_2012Metric | D2 |
| 1 | XC6220 | xc622:XC6220 | U1 |
More from hggh/window-handle-sensor
2- 2 layers23.5 × 50 mm

- 2 layers31 × 38 mm

Similar boards
- 4 layers129 × 104.6 mm

- 2 layers89.6 × 79 mm

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 layers100 × 100 mm

- 2 layers52.5 × 28 mm

- 4 layers252 × 152 mm

CTA control board
PySpice-org/eda-rw
Python library to read/write KiCad and LibrePCB Sexpr file format
619 parts9 - 2 layers100 × 90 mm

- 2 layers160 × 100 mm

- 2 layers139.2 × 95.6 mm

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).