# ESP32 PBR Controller ## Description Modular ESP32 dev-board smart photobioreactor controller with 12 V input protection, 5 V buck conversion, 3.3 V regulation, connectorized sensors and actuators, I2C LCD and RTC, SPI SD logging, GPIO breakout, test points, and prototype-friendly high-power/low-power partitioning. ## Project Details - **Owner:** srinidhi2611 - **Created:** 4/10/2026 - **Last Updated:** 4/10/2026 - **Visibility:** Public ## Key Components ### D1 — [1N4007RLG](https://www.flux.ai/jecstronic/1n4007rlg.md) - Role: Flyback Protection - Part Type: Diode - Manufacturer Name: onsemi - Manufacturer Part Number: 1N4007RLG - Role Details: Reverse-biased flyback diode across external inductive load connector - License: https://creativecommons.org/licenses/by/4.0/ - Datasheet URL: https://www.onsemi.com/pdf/datasheet/1n4001-d.pdf - Package: DO-41 **Pins:** - anode [pin 2] - cathode [pin 1] ### D2 — [1N4007RLG](https://www.flux.ai/jecstronic/1n4007rlg.md) - Manufacturer Part Number: 1N4007RLG - License: https://creativecommons.org/licenses/by/4.0/ - Datasheet URL: https://www.onsemi.com/pdf/datasheet/1n4001-d.pdf - Role: Flyback Protection - Part Type: Diode - Manufacturer Name: onsemi - Package: DO-41 - Role Details: Reverse-biased flyback diode across external inductive load connector **Pins:** - anode [pin 2] - cathode [pin 1] ### J1 — [WJ500V-5.08-2P](https://www.flux.ai/adrian95/wj500v-5p08-2p.md) - Manufacturer Name: Ningbo Kangnex - Package: THT - Role: Power Connector - Connector Type: Terminal Blocks - Manufacturer Part Number: WJ500V-5.08-2P - Part Type: Connector - Role Details: 12V input and high-current actuator/load connectors - Datasheet URL: https://datasheet.lcsc.com/szlcsc/1912251636_Ningbo-Kangnex-Elec-WJ500V-5-08-2P_C8465.pdf **Pins:** - 1 [pin 1] - 2 [pin 2] ### J10 — [B3B-XH-A(LF)(SN)](https://www.flux.ai/adrian95/b3b-xh-alfsn.md) - Datasheet URL: https://www.jst-mfg.com/product/pdf/eng/eXH.pdf - Package: JST-XH THT - Manufacturer Part Number: B3B-XH-A(LF)(SN) - Role Details: 3-pin connector for analog or 1-wire sensor interfaces - Manufacturer Name: JST Sales America Inc. - License: https://creativecommons.org/licenses/by/4.0/ - Part Type: Connector - Role: Sensor Connector **Pins:** - Pin_1 [pin 1] - Pin_2 [pin 2] - Pin_3 [pin 3] ### J11 — [B4B-XH-A(LF)(SN)](https://www.flux.ai/adrian95/b4b-xh-alfsn.md) - Role Details: 4-pin interface connector for I2C peripherals and breakout - Manufacturer Part Number: B4B-XH-A(LF)(SN) - Datasheet URL: https://www.jst-mfg.com/product/pdf/eng/eXH.pdf - Part Type: Connector - Manufacturer Name: JST Sales America Inc. - Role: Interface Connector - License: https://creativecommons.org/licenses/by/4.0/ - Package: JST-XH THT **Pins:** - 1 [pin 1] - 2 [pin 2] - 3 [pin 3] - 4 [pin 4] ### J12 — [B4B-XH-A(LF)(SN)](https://www.flux.ai/adrian95/b4b-xh-alfsn.md) - Manufacturer Name: JST Sales America Inc. - License: https://creativecommons.org/licenses/by/4.0/ - Role Details: 4-pin interface connector for I2C peripherals and breakout - Datasheet URL: https://www.jst-mfg.com/product/pdf/eng/eXH.pdf - Manufacturer Part Number: B4B-XH-A(LF)(SN) - Package: JST-XH THT - Part Type: Connector - Role: Interface Connector **Pins:** - 1 [pin 1] - 2 [pin 2] - 3 [pin 3] - 4 [pin 4] ### J13 — [B4B-XH-A(LF)(SN)](https://www.flux.ai/adrian95/b4b-xh-alfsn.md) - Package: JST-XH THT - Part Type: Connector - Datasheet URL: https://www.jst-mfg.com/product/pdf/eng/eXH.pdf - Manufacturer Part Number: B4B-XH-A(LF)(SN) - Role Details: 4-pin interface connector for I2C peripherals and breakout - Role: Interface Connector - License: https://creativecommons.org/licenses/by/4.0/ - Manufacturer Name: JST Sales America Inc. **Pins:** - 1 [pin 1] - 2 [pin 2] - 3 [pin 3] - 4 [pin 4] ### J14 — [B6B-XH-A(LF)(SN)](https://www.flux.ai/adrian95/b6b-xh-alfsn.md) - Manufacturer Name: JST Sales America Inc. - License: https://creativecommons.org/licenses/by/4.0/ - Datasheet URL: https://www.phoenixcontact.com/en-us/products/pcb-header-mstba-25-3-g-508-1757255?type=pdf - Manufacturer Part Number: B6B-XH-A(LF)(SN) - Role: Interface Connector - Part Type: Connector - Role Details: 6-pin interface connector for relay or SPI module connections - Package: JST-XH THT **Pins:** - Pin_1 [pin 1] - Pin_2 [pin 2] - Pin_3 [pin 3] - Pin_4 [pin 4] - Pin_5 [pin 5] - Pin_6 [pin 6] ### J15 — [B6B-XH-A(LF)(SN)](https://www.flux.ai/adrian95/b6b-xh-alfsn.md) - Part Type: Connector - Role Details: 6-pin interface connector for relay or SPI module connections - Role: Interface Connector - Package: JST-XH THT - Manufacturer Name: JST Sales America Inc. - License: https://creativecommons.org/licenses/by/4.0/ - Datasheet URL: https://www.phoenixcontact.com/en-us/products/pcb-header-mstba-25-3-g-508-1757255?type=pdf - Manufacturer Part Number: B6B-XH-A(LF)(SN) **Pins:** - Pin_1 [pin 1] - Pin_2 [pin 2] - Pin_3 [pin 3] - Pin_4 [pin 4] - Pin_5 [pin 5] - Pin_6 [pin 6] ### J2 — [WJ500V-5.08-2P](https://www.flux.ai/adrian95/wj500v-5p08-2p.md) - Role: Power Connector - Connector Type: Terminal Blocks - Manufacturer Part Number: WJ500V-5.08-2P - Part Type: Connector - Datasheet URL: https://datasheet.lcsc.com/szlcsc/1912251636_Ningbo-Kangnex-Elec-WJ500V-5-08-2P_C8465.pdf - Package: THT - Manufacturer Name: Ningbo Kangnex - Role Details: 12V input and high-current actuator/load connectors **Pins:** - 1 [pin 1] - 2 [pin 2] ### J3 — [WJ500V-5.08-2P](https://www.flux.ai/adrian95/wj500v-5p08-2p.md) - Role: Power Connector - Package: THT - Role Details: 12V input and high-current actuator/load connectors - Manufacturer Name: Ningbo Kangnex - Manufacturer Part Number: WJ500V-5.08-2P - Connector Type: Terminal Blocks - Datasheet URL: https://datasheet.lcsc.com/szlcsc/1912251636_Ningbo-Kangnex-Elec-WJ500V-5-08-2P_C8465.pdf - Part Type: Connector **Pins:** - 1 [pin 1] - 2 [pin 2] ### J4 — [WJ500V-5.08-2P](https://www.flux.ai/adrian95/wj500v-5p08-2p.md) - Datasheet URL: https://datasheet.lcsc.com/szlcsc/1912251636_Ningbo-Kangnex-Elec-WJ500V-5-08-2P_C8465.pdf - Package: THT - Part Type: Connector - Manufacturer Part Number: WJ500V-5.08-2P - Connector Type: Terminal Blocks - Manufacturer Name: Ningbo Kangnex - Role Details: 12V input and high-current actuator/load connectors - Role: Power Connector **Pins:** - 1 [pin 1] - 2 [pin 2] ### J5 — [Pin Header 01x19 2.54mm Vertical](https://www.flux.ai/adrian95/pin-header-01x19-254mm-vertical.md) - Role: Module Header - Part Type: Connector - License: https://creativecommons.org/licenses/by/4.0/ - Role Details: ESP32 dev board side-row header mount - Package: THT 1x19 2.54mm **Pins:** - Pin_1 [pin 1] - Pin_10 [pin 10] - Pin_11 [pin 11] - Pin_12 [pin 12] - Pin_13 [pin 13] - Pin_14 [pin 14] - Pin_15 [pin 15] - Pin_16 [pin 16] - Pin_17 [pin 17] - Pin_18 [pin 18] - Pin_19 [pin 19] - Pin_2 [pin 2] - Pin_3 [pin 3] - Pin_4 [pin 4] - Pin_5 [pin 5] - Pin_6 [pin 6] - Pin_7 [pin 7] - Pin_8 [pin 8] - Pin_9 [pin 9] ### J6 — [Pin Header 01x19 2.54mm Vertical](https://www.flux.ai/adrian95/pin-header-01x19-254mm-vertical.md) - Role: Module Header - License: https://creativecommons.org/licenses/by/4.0/ - Part Type: Connector - Role Details: ESP32 dev board side-row header mount - Package: THT 1x19 2.54mm **Pins:** - Pin_1 [pin 1] - Pin_10 [pin 10] - Pin_11 [pin 11] - Pin_12 [pin 12] - Pin_13 [pin 13] - Pin_14 [pin 14] - Pin_15 [pin 15] - Pin_16 [pin 16] - Pin_17 [pin 17] - Pin_18 [pin 18] - Pin_19 [pin 19] - Pin_2 [pin 2] - Pin_3 [pin 3] - Pin_4 [pin 4] - Pin_5 [pin 5] - Pin_6 [pin 6] - Pin_7 [pin 7] - Pin_8 [pin 8] - Pin_9 [pin 9] ### J7 — [B3B-XH-A(LF)(SN)](https://www.flux.ai/adrian95/b3b-xh-alfsn.md) - Package: JST-XH THT - Manufacturer Part Number: B3B-XH-A(LF)(SN) - Datasheet URL: https://www.jst-mfg.com/product/pdf/eng/eXH.pdf - Role Details: 3-pin connector for analog or 1-wire sensor interfaces - Manufacturer Name: JST Sales America Inc. - Role: Sensor Connector - Part Type: Connector - License: https://creativecommons.org/licenses/by/4.0/ **Pins:** - Pin_1 [pin 1] - Pin_2 [pin 2] - Pin_3 [pin 3] ### J8 — [B3B-XH-A(LF)(SN)](https://www.flux.ai/adrian95/b3b-xh-alfsn.md) - Manufacturer Part Number: B3B-XH-A(LF)(SN) - Role: Sensor Connector - Datasheet URL: https://www.jst-mfg.com/product/pdf/eng/eXH.pdf - Role Details: 3-pin connector for analog or 1-wire sensor interfaces - Package: JST-XH THT - Manufacturer Name: JST Sales America Inc. - License: https://creativecommons.org/licenses/by/4.0/ - Part Type: Connector **Pins:** - Pin_1 [pin 1] - Pin_2 [pin 2] - Pin_3 [pin 3] ### J9 — [B3B-XH-A(LF)(SN)](https://www.flux.ai/adrian95/b3b-xh-alfsn.md) - Manufacturer Name: JST Sales America Inc. - License: https://creativecommons.org/licenses/by/4.0/ - Part Type: Connector - Role: Sensor Connector - Role Details: 3-pin connector for analog or 1-wire sensor interfaces - Datasheet URL: https://www.jst-mfg.com/product/pdf/eng/eXH.pdf - Package: JST-XH THT - Manufacturer Part Number: B3B-XH-A(LF)(SN) **Pins:** - Pin_1 [pin 1] - Pin_2 [pin 2] - Pin_3 [pin 3] ### Q1 — [AO3400A](https://www.flux.ai/lcsc/ao3400a.md) - Continuous Drain Current: 5.7A - Transistor Type: N-channel MOSFET - Package or Case Code: SOT-23-3_L2.9-W1.3-P1.90-LS2.4-BR - LCSC Part Number: C347475 - Role Details: Low-side PWM switch for LED grow-light channels - Operating Temperature: -55 ~ +150℃ - Package: SOT-23-3 - Datasheet URL: https://storage.googleapis.com/graviton-electric-symbols/document_assets/lcsc/2410010301_UMW-Youtai-Semiconductor-Co---Ltd--AO3400A_C347475.pdf - Product Info Url: https://lcsc.com/product-detail/Others_Youtai-Semiconductor-Co-Ltd-AO3400A-5-8A_C347475.html - Drain to Source Voltage: 30V - Manufacturer Name: UMW(友台半导体) - Role: MOSFET Switch - JLCPCB Part Class: Extended Part - Manufacturer Part Number: AO3400A - Power: 1.4W - Part Type: MOSFETs **Pins:** - D [pin 3] - G [pin 1] - S [pin 2] ### Q2 — [AO3400A](https://www.flux.ai/lcsc/ao3400a.md) - Manufacturer Name: UMW(友台半导体) - Drain to Source Voltage: 30V - Role Details: Low-side PWM switch for LED grow-light channels - Datasheet URL: https://storage.googleapis.com/graviton-electric-symbols/document_assets/lcsc/2410010301_UMW-Youtai-Semiconductor-Co---Ltd--AO3400A_C347475.pdf - Role: MOSFET Switch - Product Info Url: https://lcsc.com/product-detail/Others_Youtai-Semiconductor-Co-Ltd-AO3400A-5-8A_C347475.html - JLCPCB Part Class: Extended Part - Power: 1.4W - Manufacturer Part Number: AO3400A - Part Type: MOSFETs - Package: SOT-23-3 - LCSC Part Number: C347475 - Package or Case Code: SOT-23-3_L2.9-W1.3-P1.90-LS2.4-BR - Continuous Drain Current: 5.7A - Transistor Type: N-channel MOSFET - Operating Temperature: -55 ~ +150℃ **Pins:** - D [pin 3] - G [pin 1] - S [pin 2] ### U1 — [LMR50410Y5FQDBVRQ1](https://www.flux.ai/adrian95/lmr50410y5fqdbvrq1.md) - Manufacturer Name: Texas Instruments - License: https://creativecommons.org/licenses/by/4.0/ - Package: SOT-23-6 - Role: Buck Regulator - Role Details: Converts protected 12V input rail to regulated 5V rail - Manufacturer Part Number: LMR50410Y5FQDBVRQ1 - Part Type: Integrated Circuit - Datasheet URL: https://www.ti.com/lit/ds/symlink/lmr50410-q1.pdf **Pins:** - CB [pin 1] - EN [pin 4] - FB [pin 3] - GND [pin 2] - SW [pin 6] - VIN [pin 5] ### U2 — [AMS1117-3.3](https://www.flux.ai/vasy_skral/ams1117-33.md) - Role Details: Derives 3.3V rail for ESP32 logic and sensors from 5V rail - Manufacturer Name: AMS - Manufacturer Part Number: AMS1117-3.3 - Symbol Style: Parametric - Package: SOT-223 - Role: LDO Regulator - Datasheet URL: http://www.advanced-monolithic.com/pdf/ds1117.pdf - License: https://creativecommons.org/licenses/by/4.0/ - Part Type: Integrated Circuit **Pins:** - GND [pin 1] - TAB(VOUT) [pin 4] - VIN [pin 3] - VOUT [pin 2] *The full schematic, PCB layout, bill of materials, and interactive design are available at [https://www.flux.ai/srinidhi2611/esp32-pbr-controller](https://www.flux.ai/srinidhi2611/esp32-pbr-controller).* --- *Generated from [https://www.flux.ai/srinidhi2611/esp32-pbr-controller](https://www.flux.ai/srinidhi2611/esp32-pbr-controller)*