# The Smart Switch Board V1
## Description
Smart Switch Board
Make 3 existing lights/switches smart – by connecting it to the internet via an ESP32 microcontroller.
## Project Details
- **Owner:** kaustubhd
- **Created:** 9/2/2024
- **Last Updated:** 1/2/2025
- **Visibility:** Public
- **Stars:** 1
## Key Components
### B1 — [XY301V-A-5.0-3P](https://www.flux.ai/jharwinbarrozo/xy301v-a-50-3p~ox.md)
- Datasheet URL: https://datasheet.lcsc.com/lcsc/2005271131_Ningbo-Xinlaiya-Elec--XY301V-A-5-0-3P_C557652.pdf
- Manufacturer Name: Microchip
- Manufacturer Part Number: XY301V-A-5.0-3P
**Pins:**
- PIN1 [pin 1]
- PIN2 [pin 2]
- PIN3 [pin 3]
### B2 — [XY301V-A-5.0-3P](https://www.flux.ai/jharwinbarrozo/xy301v-a-50-3p~ox.md)
- Manufacturer Part Number: XY301V-A-5.0-3P
- Datasheet URL: https://datasheet.lcsc.com/lcsc/2005271131_Ningbo-Xinlaiya-Elec--XY301V-A-5-0-3P_C557652.pdf
- Manufacturer Name: Microchip
**Pins:**
- PIN1 [pin 1]
- PIN2 [pin 2]
- PIN3 [pin 3]
### B3 — [XY301V-A-5.0-3P](https://www.flux.ai/jharwinbarrozo/xy301v-a-50-3p~ox.md)
- Manufacturer Part Number: XY301V-A-5.0-3P
- Datasheet URL: https://datasheet.lcsc.com/lcsc/2005271131_Ningbo-Xinlaiya-Elec--XY301V-A-5-0-3P_C557652.pdf
- Manufacturer Name: Microchip
**Pins:**
- PIN1 [pin 1]
- PIN2 [pin 2]
- PIN3 [pin 3]
### D1 — [PN Junction Diode](https://www.flux.ai/jharwinbarrozo/pn-junction-diode~z7.md)
- Emission Coefficient: 2.00
- Part Type: Diode
- Breakdown Voltage: 50V
- Series Resistance: 0.0286Ω
- Saturation Current: 1.88e-9A
**Pins:**
- A [pin 2]
- K [pin 1]
### D2 — [PN Junction Diode](https://www.flux.ai/jharwinbarrozo/pn-junction-diode~z7.md)
- Saturation Current: 1.88e-9A
- Series Resistance: 0.0286Ω
- Breakdown Voltage: 50V
- Emission Coefficient: 2.00
- Part Type: Diode
**Pins:**
- A [pin 2]
- K [pin 1]
### D3 — [PN Junction Diode](https://www.flux.ai/jharwinbarrozo/pn-junction-diode~z7.md)
- Saturation Current: 1.88e-9A
- Series Resistance: 0.0286Ω
- Breakdown Voltage: 50V
- Part Type: Diode
- Emission Coefficient: 2.00
**Pins:**
- A [pin 2]
- K [pin 1]
### IN — [XY301V-A-5.0-2P](https://www.flux.ai/jharwinbarrozo/xy301v-a-50-2p~u6.md)
- Manufacturer Name: Ningbo Xinlaiya Elec.
- Manufacturer Part Number: XY301V-A-5.0-2P
**Pins:**
- PIN1 [pin 1]
- PIN2 [pin 2]
### LED1 — [LTST-C190KRKT](https://www.flux.ai/adrian95/ltst-c190krkt~3pw.md)
- Datasheet URL: https://optoelectronics.liteon.com/upload/download/DS-22-99-0151/LTST-C190KRKT.pdf
- Manufacturer Name: Lite-On Inc.
- Manufacturer Part Number: LTST-C190KRKT
- License: https://creativecommons.org/licenses/by/4.0/
- Part Type: LED
**Pins:**
- A [pin 2]
- K [pin 1]
### LED2 — [LTST-C190KRKT](https://www.flux.ai/adrian95/ltst-c190krkt~3pw.md)
- License: https://creativecommons.org/licenses/by/4.0/
- Part Type: LED
- Manufacturer Part Number: LTST-C190KRKT
- Manufacturer Name: Lite-On Inc.
- Datasheet URL: https://optoelectronics.liteon.com/upload/download/DS-22-99-0151/LTST-C190KRKT.pdf
**Pins:**
- A [pin 2]
- K [pin 1]
### LED3 — [LTST-C190KRKT](https://www.flux.ai/adrian95/ltst-c190krkt~3pw.md)
- Part Type: LED
- License: https://creativecommons.org/licenses/by/4.0/
- Manufacturer Part Number: LTST-C190KRKT
- Manufacturer Name: Lite-On Inc.
- Datasheet URL: https://optoelectronics.liteon.com/upload/download/DS-22-99-0151/LTST-C190KRKT.pdf
**Pins:**
- A [pin 2]
- K [pin 1]
### LED4 — [WS2812B-B](https://www.flux.ai/vasyl/ws2812b-b~vet.md)
- Manufacturer Part Number: WS2812B-B
- Manufacturer Name: Worldsemi
- Part Type: LED
- Datasheet URL: https://datasheet.lcsc.com/lcsc/2006151006_Worldsemi-WS2812B-B_C114586.pdf
**Pins:**
- DIN [pin 4]
- DOUT [pin 2]
- VDD [pin 1]
- VSS [pin 3]
### OTHER — [Pin Header 01x04 2.54mm Vertical](https://www.flux.ai/adrian95/pin-header-01x04-254mm-vertical~l97.md)
- Part Type: Connector
- License: https://creativecommons.org/licenses/by/4.0/
**Pins:**
- Pin_1 [pin 1]
- Pin_2 [pin 2]
- Pin_3 [pin 3]
- Pin_4 [pin 4]
### PIR — [HC-SR501](https://www.flux.ai/vasyl/hc-sr501~he9.md)
- Datasheet URL: https://www.mpja.com/download/31227sc.pdf
- License: https://creativecommons.org/licenses/by/4.0/
- Manufacturer Part Number: HC-SR501
- Manufacturer Name: MPJA
- Part Type: Sensor
**Pins:**
- Data [pin 5]
- GND [pin 6]
- VCC [pin 4]
### Q1 — [2N2222](https://www.flux.ai/jecstronic/2n2222~sac.md)
- License: https://creativecommons.org/licenses/by/4.0/
- Manufacturer Part Number: 2N2222
- Manufacturer Name: Solid State Inc.
- Part Type: Transistor
- Datasheet URL: http://www.solidstateinc.us/specsearch/specs/2N2221A-ssi.pdf
**Pins:**
- B [pin 2]
- C [pin 3]
- E [pin 1]
### Q2 — [2N2222](https://www.flux.ai/jecstronic/2n2222~sac.md)
- License: https://creativecommons.org/licenses/by/4.0/
- Manufacturer Part Number: 2N2222
- Part Type: Transistor
- Manufacturer Name: Solid State Inc.
- Datasheet URL: http://www.solidstateinc.us/specsearch/specs/2N2221A-ssi.pdf
**Pins:**
- B [pin 2]
- C [pin 3]
- E [pin 1]
### Q3 — [2N2222](https://www.flux.ai/jecstronic/2n2222~sac.md)
- Datasheet URL: http://www.solidstateinc.us/specsearch/specs/2N2221A-ssi.pdf
- Manufacturer Name: Solid State Inc.
- Part Type: Transistor
- License: https://creativecommons.org/licenses/by/4.0/
- Manufacturer Part Number: 2N2222
**Pins:**
- B [pin 2]
- C [pin 3]
- E [pin 1]
### RLY1 — [SRD-12VDC-SL-C](https://www.flux.ai/jecstronic/srd-12vdc-sl-c~ofu.md)
- Manufacturer Part Number: SRD-12VDC-SL-C
- Manufacturer Name: Ningbo Songle Relay
- Datasheet URL: https://datasheet.lcsc.com/lcsc/2304140030_Ningbo-Songle-Relay-SRD-12VDC-SL-C_C30431.pdf
- License: https://creativecommons.org/licenses/by/4.0/
- Part Type: Relay
**Pins:**
- ~ [pin NC]
- ~ [pin NO]
- ~ [pin COIL1]
- ~ [pin COM]
- ~ [pin COIL2]
### RLY2 — [SRD-12VDC-SL-C](https://www.flux.ai/jecstronic/srd-12vdc-sl-c~ofu.md)
- Manufacturer Part Number: SRD-12VDC-SL-C
- Manufacturer Name: Ningbo Songle Relay
- Datasheet URL: https://datasheet.lcsc.com/lcsc/2304140030_Ningbo-Songle-Relay-SRD-12VDC-SL-C_C30431.pdf
- Part Type: Relay
- License: https://creativecommons.org/licenses/by/4.0/
**Pins:**
- ~ [pin NC]
- ~ [pin NO]
- ~ [pin COIL1]
- ~ [pin COM]
- ~ [pin COIL2]
### RLY3 — [SRD-12VDC-SL-C](https://www.flux.ai/jecstronic/srd-12vdc-sl-c~ofu.md)
- Manufacturer Part Number: SRD-12VDC-SL-C
- Manufacturer Name: Ningbo Songle Relay
- Datasheet URL: https://datasheet.lcsc.com/lcsc/2304140030_Ningbo-Songle-Relay-SRD-12VDC-SL-C_C30431.pdf
- Part Type: Relay
- License: https://creativecommons.org/licenses/by/4.0/
**Pins:**
- ~ [pin NC]
- ~ [pin NO]
- ~ [pin COIL1]
- ~ [pin COM]
- ~ [pin COIL2]
### S1 — [B3F-1020](https://www.flux.ai/adrian95/b3f-1020~wrk.md)
- Datasheet URL: https://omronfs.omron.com/en_US/ecb/products/pdf/en-b3f.pdf
- Manufacturer Name: Omron Electronics Inc-EMC Div
- License: https://creativecommons.org/licenses/by/4.0/
- Part Type: Switch
- Manufacturer Part Number: B3F-1020
**Pins:**
- 1 [pin 1]
- 2 [pin 2]
- 3 [pin 3]
- 4 [pin 4]
### S2 — [B3F-1020](https://www.flux.ai/adrian95/b3f-1020~wrk.md)
- Manufacturer Name: Omron Electronics Inc-EMC Div
- Datasheet URL: https://omronfs.omron.com/en_US/ecb/products/pdf/en-b3f.pdf
- License: https://creativecommons.org/licenses/by/4.0/
- Part Type: Switch
- Manufacturer Part Number: B3F-1020
**Pins:**
- 1 [pin 1]
- 2 [pin 2]
- 3 [pin 3]
- 4 [pin 4]
### S3 — [B3F-1020](https://www.flux.ai/adrian95/b3f-1020~wrk.md)
- Part Type: Switch
- Manufacturer Part Number: B3F-1020
- Manufacturer Name: Omron Electronics Inc-EMC Div
- Datasheet URL: https://omronfs.omron.com/en_US/ecb/products/pdf/en-b3f.pdf
- License: https://creativecommons.org/licenses/by/4.0/
**Pins:**
- 1 [pin 1]
- 2 [pin 2]
- 3 [pin 3]
- 4 [pin 4]
### TEMP — [DHT22](https://www.flux.ai/vasy_skral/dht22~ju8.md)
- Symbol Style: Parametric
- Manufacturer Name: Asair
- Manufacturer Part Number: DHT22
- Datasheet URL: https://cdn-shop.adafruit.com/datasheets/Digital+humidity+and+temperature+sensor+AM2302.pdf
- License: https://creativecommons.org/licenses/by/4.0/
- Part Type: Sensor
- Package or Case Code: Module
**Pins:**
- DATA [pin 2]
- GND [pin 4]
- NULL [pin 3]
- VDD [pin 1]
### U3 — [ESP32-DEVKIT-V1](https://www.flux.ai/jharwinbarrozo/esp32-devkit-v1~7xd.md)
- Part Type: Module
- Symbol Style: Parametric
- Manufacturer Part Number: ESP32-DEVKIT-V1
- Datasheet URL: https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf
- Manufacturer Name: Espressif Systems
**Pins:**
- 3V3 [pin 1]
- D12 [pin 27]
- D13 [pin 28]
- D14 [pin 26]
- D15 [pin 3]
- D18 [pin 9]
- D19 [pin 10]
- D2 [pin 4]
- D21 [pin 11]
- D22 [pin 14]
- D23 [pin 15]
- D25 [pin 23]
- D26 [pin 24]
- D27 [pin 25]
- D32 [pin 21]
- D33 [pin 22]
- D34 [pin 19]
- D35 [pin 20]
- D4 [pin 5]
- D5 [pin 8]
- EN [pin 16]
- GND [pin 2]
- GND_1 [pin 29]
- RX0 [pin 12]
- RX2 [pin 6]
- TX0 [pin 13]
- TX2 [pin 7]
- VIN [pin 30]
- VN [pin 18]
- VP [pin 17]
*The full schematic, PCB layout, bill of materials, and interactive design are available at [https://www.flux.ai/kaustubhd/the-smart-switch-board-v1~f9](https://www.flux.ai/kaustubhd/the-smart-switch-board-v1~f9).*
---
*Generated from [https://www.flux.ai/kaustubhd/the-smart-switch-board-v1~f9](https://www.flux.ai/kaustubhd/the-smart-switch-board-v1~f9)*