Modular PCB Design for Smart PBR

reviewed connectivity and routing status

0:36

Checking 8 design areas.
Checking 2 knowledge sources.
Reading schematic details.

fixed obvious power and output nets

3:20

Reading schematic details for U1, U2, Q1 and 49 more.
Checking 12 design areas.
  • Connected U1:FB to ^REG5_FB
  • Connected Q2:S to ^GND
  • Connected J2:2, J4:2 to ^VIN_12V
nets { net GND = GND:GND, Q2:S, J14 Pin_6 - J15 Pin_6:GND, R3:P2, C4 P2 - C5 P2:GND, C3:P2, J9:Pin_1, J1:2, J7:Pin_1, C11:P2, U1:GND, J8:Pin_1, J12:1, J14:Pin_6, J14:Pin_2, C7:P2, C10:P2, Q1:S, C4:P2, C5:P2, J10:Pin_1, R1:P2, U2:GND, C6:P2, C1:P2, J13:1, C9:P2, J15:Pin_6, J11:1; net PUMP_NEG = J4:1, D1:anode; net REG5_SW = C2:P2, U1:SW; net LED_BLUE_NEG = D2:cathode, Q2:D, J3:1; net VIN_12V = J3:2, J4:2, J2:2, C9:P1, C1:P1, J1:1, U1:VIN, R7:P1; net LED_RED_NEG = J2:1, Q1:D, D1:cathode; net PWM_BLUE_GATE = Q2:G, R3:P1, R4:P2; net BUCK_EN = R7:P2, U1:EN; net REG5_CB = U1:CB, C2:P1; net REG5_FB = U1:FB; }
  • Set Layout's traceWidth to "0.20mm"
  • Set Layout's keepOut to "0.20mm"
  • Set Layout's boardInsetMargin to "0.50mm"

Execution stopped due to insufficient credits.

1:26

Getting a layout overview.
Started: setting pcb zoning and routing rules.

Started implementing a plan

#Goal

- Complete the remaining schematic connections and PCB routing of the ESP32 PBR Controller so that the design becomes prototype-ready.

#Implementation plan

1. Complete Schematic Connectivity

1. Review the power/output sections and connect any remaining components, ensuring proper connections between the power supply, regulators, sensors, and actuators.

2. Verify routing connections to test-points, headers, and connectors for complete signal continuity.

2. Organize PCB Zones

1. Divide the board into distinct areas for power, logic (ESP32 and control circuitry), analog sensing, and high-current outputs.

2. Clearly label each zone and review net assignments to avoid cross-zone interference.

3. PCB Routing

1. Apply layout guidelines specific to each zone, ensuring appropriate trace widths and clearance for power, signal, and high-current paths.

2. Use auto-routing to connect nets within each zone while manually reviewing critical paths, especially in power and high-current outputs.

3. Validate connectivity using design rule checks to ensure no unrouted or conflicting connections remain.

4. Final Review

1. Cross-check the schematic against the PCB layout ensuring all components are correctly routed and connected.

2. Update project documentation with the final schematic and board routing changes.

#Success criteria

- All schematic connectivity issues, especially in the power and output sections, are resolved.

- PCB is fully routed with axes segmented into power, logic, analog, and high-current zones.

- Design rule checks confirm a complete connection with no errors, making the design ready for prototype review.

Refine this doc
Ask about this doc
Design Notes
Project
Modular ESP32 Dev-Board Smart Photobioreactor Controller PCB
Architecture Summary
  • 12 V DC input via 2-pin screw terminal
  • Reverse-polarity protection on input
  • Protected 12 V rail feeds 5 V buck converter
  • 5 V rail feeds a 3.3 V LDO for ESP32 and logic peripherals
  • ESP32 dev board mounted on dual headers for beginner-friendly replacement
  • Connectorized sensor interfaces for pH, dissolved oxygen, oxygen concentration, DS18B20, and MH-Z19B
  • Actuator interfaces for two PWM LED channels, 4-channel relay module, pump, and solenoid valve
  • I2C peripherals for LCD and DS3231 RTC
  • SPI connector for SD card module
  • Test points for VIN, 5 V, 3.3 V, GND, I2C, SPI, UART, and PWM signals
Chosen Defaults
  • Reverse-polarity protection: series Schottky diode for simple, robust beginner-friendly input protection
  • 12 V to 5 V conversion: buck regulator IC/module from Flux library sized with margin for relay module plus peripherals
  • 5 V to 3.3 V conversion: LDO regulator for cleaner logic rail and simpler design
  • One continuous common ground across analog, digital, and power sections with physical separation rather than split grounds
  • Single pair of I2C pull-ups for the bus, configurable by population if external modules already include them
Planned GPIO Mapping
  • I2C: ESP32 GPIO21 SDA, GPIO22 SCL
  • SPI SD: GPIO18 SCK, GPIO23 MOSI, GPIO19 MISO, GPIO5 CS
  • MH-Z19B UART: GPIO16 RX2, GPIO17 TX2
  • DS18B20: GPIO4
  • PWM LED Red: GPIO25
  • PWM LED Blue: GPIO26
  • Analog pH: GPIO34
  • Analog DO: GPIO35
  • Analog O2 concentration: GPIO32
  • Relay IN1..IN4: GPIO27, GPIO14, GPIO13, GPIO33
Layout Intent
  • Power entry and buck section near one board edge
  • High-current LED / pump / solenoid / relay connectors grouped away from analog sensor inputs
  • ESP32 centered between low-power interfaces and high-power outputs
  • Analog sensor connectors routed away from buck switching node and PWM current loops
  • Project

  • Architecture Summary

  • Chosen Defaults

  • Planned GPIO Mapping

  • Layout Intent

Assets

Assets are files uploaded to this project which can be used in various ways.

ESP32 PBR Controller thumbnail
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.

Properties

Properties describe core aspects of the project.

Pricing & Availability

Distributor

Qty 1

Arrow

$2.06–$2.95

Digi-Key

$2.74–$4.64

LCSC

$3.07–$3.38

Mouser

$3.42

TME

$0.81

Verical

$0.74–$433.43

Controls