# Motion Detector Reference Design vDaB
## Description
This is a motion detector circuit using an ESP32 microcontroller and PIR sensor. It features USB-C connectivity, RGB LED indication, push buttons and is powered by a 3.3V supply.
#referenceDesign #edge-computing #edgeComputing #espressif #template #iot #PIR #esp32 #reference-design
## Project Details
- **Owner:** gabohr
- **Created:** 8/8/2024
- **Last Updated:** 8/8/2024
- **Visibility:** Public
- **License:** https://creativecommons.org/licenses/by/4.0/
## Key Components
### D1 — [1N5819HW-7-F](https://www.flux.ai/jecstronic/1n5819hw-7-f.md)
- Manufacturer Part Number: 1N5819HW-7-F
- License: https://creativecommons.org/licenses/by/4.0/
- Datasheet URL: https://www.diodes.com/assets/Datasheets/ds30217.pdf
- Part Type: Diode
- Manufacturer Name: Diodes Incorporated
**Pins:**
- A [pin 2]
- K [pin 1]
### J1 — [TYPE-C-31-M-12](https://www.flux.ai/vasy_skral/type-c-31-m-12.md)
- Part Type: Connector
- Datasheet URL: https://datasheet.lcsc.com/lcsc/2205251630_Korean-Hroparts-Elec-TYPE-C-31-M-12_C165948.pdf
- Manufacturer Name: Korean Hroparts Elec
- Manufacturer Part Number: TYPE-C-31-M-12
**Pins:**
- CC1 [pin A5]
- CC2 [pin B5]
- DN1 [pin A7]
- DN2 [pin B7]
- DP1 [pin A6]
- DP2 [pin B6]
- GND [pin B1A12]
- GND [pin A1B12]
- SBU1 [pin A8]
- SBU2 [pin B8]
- SHIELD [pin S3]
- SHIELD [pin S1]
- SHIELD [pin S4]
- SHIELD [pin S2]
- VBUS [pin A4B9]
- VBUS [pin B4A9]
### LED1 — [LTST-C19HE1WT](https://www.flux.ai/vasy_skral/ltst-c19he1wt.md)
- Datasheet URL: https://datasheet.lcsc.com/lcsc/2010222107_Everlight-Elec-19-237-R6GHBHC-A04-2T_C883183.pdf
- Manufacturer Name: Everlight Elec
- Manufacturer Part Number: 19-237/R6GHBHC-A04/2T
- Part Type: LED
**Pins:**
- A
- B
- G
- R
### PIR1 — [IRA-S230ST01](https://www.flux.ai/vasyl/ira-s230st01.md)
- Part Type: Optical Motion Sensors
- Datasheet URL: https://www.murata.com/~/media/webrenewal/products/sensor/infrared/ira/ira-s230st01-e.ashx?la=en
- Manufacturer Name: Murata Electronics
- License: https://creativecommons.org/licenses/by/4.0/
- Manufacturer Part Number: IRA-S230ST01
**Pins:**
- DRAIN [pin 1]
- GND [pin 3]
- SOURCE [pin 2]
### SW1 — [PTS815](https://www.flux.ai/vasy_skral/pts815.md)
- Part Type: Switch
- Manufacturer Name: C&K
- Manufacturer Part Number: PTS815 SJM 250 SMTR LFS
- Datasheet URL: https://www.ckswitches.com/media/2728/pts815.pdf
**Pins:**
- ~1 [pin 1]
- ~2 [pin 2]
- ~3 [pin 3]
- ~4 [pin 4]
### SW2 — [PTS815](https://www.flux.ai/vasy_skral/pts815.md)
- Part Type: Switch
- Manufacturer Name: C&K
- Datasheet URL: https://www.ckswitches.com/media/2728/pts815.pdf
- Manufacturer Part Number: PTS815 SJM 250 SMTR LFS
**Pins:**
- ~1 [pin 1]
- ~2 [pin 2]
- ~3 [pin 3]
- ~4 [pin 4]
### U1 — [ESP32-S3-MINI-1-N8](https://www.flux.ai/vasyl/esp32-s3-mini-1-n8.md)
- Manufacturer Name: Espressif Systems
- Manufacturer Part Number: ESP32-S3-MINI-1U-N8
- Datasheet URL: https://www.espressif.com/sites/default/files/documentation/esp32-s3-mini-1_mini-1u_datasheet_en.pdf
- Part Type: RF Transceiver Module
- License: https://creativecommons.org/licenses/by/4.0/
**Pins:**
- 3V3 [pin 3]
- EN [pin 45]
- GND [pin 1]
- GND__1 [pin 2]
- GND__10 [pin 52]
- GND__11 [pin 53]
- GND__12 [pin 54]
- GND__13 [pin 55]
- GND__14 [pin 56]
- GND__15 [pin 57]
- GND__16 [pin 58]
- GND__17 [pin 59]
- GND__18 [pin 60]
- GND__19 [pin 61]
- GND__2 [pin 42]
- GND__20 [pin 61_1]
- GND__21 [pin 61_2]
- GND__22 [pin 61_3]
- GND__23 [pin 61_4]
- GND__24 [pin 61_5]
- GND__25 [pin 61_6]
- GND__26 [pin 61_7]
- GND__27 [pin 61_8]
- GND__28 [pin 62]
- GND__29 [pin 63]
- GND__3 [pin 43]
- GND__30 [pin 64]
- GND__31 [pin 65]
- GND__4 [pin 46]
- GND__5 [pin 47]
- GND__6 [pin 48]
- GND__7 [pin 49]
- GND__8 [pin 50]
- GND__9 [pin 51]
- IO0 [pin 4]
- IO1 [pin 5]
- IO10 [pin 14]
- IO11 [pin 15]
- IO12 [pin 16]
- IO13 [pin 17]
- IO14 [pin 18]
- IO15 [pin 19]
- IO16 [pin 20]
- IO17 [pin 21]
- IO18 [pin 22]
- IO19 [pin 23]
- IO2 [pin 6]
- IO20 [pin 24]
- IO21 [pin 25]
- IO26 [pin 26]
- IO3 [pin 7]
- IO33 [pin 28]
- IO34 [pin 29]
- IO35 [pin 31]
- IO36 [pin 32]
- IO37 [pin 33]
- IO38 [pin 34]
- IO39 [pin 35]
- IO4 [pin 8]
- IO40 [pin 36]
- IO41 [pin 37]
- IO42 [pin 38]
- IO45 [pin 41]
- IO46 [pin 44]
- IO47 [pin 27]
- IO48 [pin 30]
- IO5 [pin 9]
- IO6 [pin 10]
- IO7 [pin 11]
- IO8 [pin 12]
- IO9 [pin 13]
- RXD0 [pin 40]
- TXD0 [pin 39]
### U2 — [AP2112K-3.3TRG1](https://www.flux.ai/vasyl/ap2112k-33trg1.md)
- Manufacturer Part Number: AP2112K-3.3TRG1
- Datasheet URL: https://www.diodes.com/assets/Datasheets/AP2112.pdf
- Part Type: Integrated Circuit
- Manufacturer Name: Diodes Incorporated
**Pins:**
- EN [pin 3]
- GND [pin 2]
- VIN [pin 1]
- VOUT [pin 5]
### U3 — [TL072CDT](https://www.flux.ai/jecstronic/tl072cdt.md)
- Manufacturer Name: STMicroelectronics
- Datasheet URL: https://www.st.com/content/ccc/resource/technical/document/datasheet/bb/4d/19/24/7d/40/48/a6/CD00000490.pdf/files/CD00000490.pdf/jcr:content/translations/en.CD00000490.pdf
- License: https://creativecommons.org/licenses/by/4.0/
- Part Type: Operational Amplifier (OP-AMP)
- Manufacturer Part Number: TL072CDT
**Pins:**
- -IN 1 [pin 2]
- -IN 2 [pin 6]
- -VCC [pin 4]
- +IN 1 [pin 3]
- +IN 2 [pin 5]
- +VCC [pin 8]
- OUT 1 [pin 7]
- OUT 2 [pin 1]
*The full schematic, PCB layout, bill of materials, and interactive design are available at [https://www.flux.ai/gabohr/motion-detector-reference-design-vdab](https://www.flux.ai/gabohr/motion-detector-reference-design-vdab).*
---
*Generated from [https://www.flux.ai/gabohr/motion-detector-reference-design-vdab](https://www.flux.ai/gabohr/motion-detector-reference-design-vdab)*