Refine this doc
Ask about this doc

Last modified 4mo ago

Head V2 Layout Architecture Review
Date: 2026-07-14
Why this review was done
The current board is electrically organized enough to route, but the mechanical product requirements are now more important than raw routing completion:
  • SHT31, BH1750, and SGP30 need environmental exposure.
  • USB-C, the 5-pin base/JST cable, UART header, and camera FFC all need connector clearance and cable bend room.
  • The ESP32-S3-WROOM antenna must stay at an exposed board edge with keepout.
  • The enclosure face/camera/plugs may force the PCB to sit back from the exterior wall, which can make on-board environmental sensors ineffective unless they are deliberately exposed.
Current layout observations
Current board target: 65 mm x 78 mm, 4-layer.
Approximate current block positions:

Table


ItemRoleCurrent position / issue
U1 ESP32-S3-WROOM-1MCU + WiFi/BLETop edge, antenna overhanging. This is good and should remain a primary constraint.
J4 camera FFCCamera cableRight side near ESP32. Electrically logical, but cable exit direction must match enclosure/camera location.
J1 USB-CService/programming/powerLeft edge. Reasonable, but should be grouped intentionally with other service connectors.
J2 5-pin JSTBase/soil probe interfaceBottom edge. Good access, but not grouped with USB/UART.
J3 UART headerDebug/programmingUpper-left edge. May be better grouped with USB/JST or moved to test pads if not user-accessible.
U3 SHT31Temperature/humidityLower-left area near J2. Needs airflow and heat isolation.
U4 BH1750Light sensorMid/lower-left, but small and not clearly aligned to an optical window.
U8 SGP30Gas/VOC sensorLower-left area, but not in a clean exposed/vented row.
Regulators U2/U5/U6/U7Power railsMixed near left/center. Should stay away from SHT31/SGP30 if possible.
Remaining DRC issues are largely tied to imported footprint artifacts and routing cleanup, not the high-level floorplan itself.
Main architecture conclusion
The board should be reorganized around mechanical exposure zones, not just made smaller.
A neat row of sensors is useful only if that row lines up with an enclosure vent/window. The product likely needs either:
  1. Single PCB with an exposed sensor edge, or
  2. Main PCB plus a small sensor tongue/daughterboard.
The second option may be mechanically better if plugs/camera cables force the main board to sit away from the enclosure face.
Use four clear zones:

Text


Top edge:
  ESP32-S3-WROOM antenna edge / RF keepout

Upper-middle:
  ESP32 body, boot/reset, local decoupling, short camera bus

Service edge, preferably one side or bottom:
  USB-C + 5-pin JST + UART/test access grouped together

Exposed environmental edge/tongue:
  SHT31 | SGP30 | BH1750, aligned to enclosure vent/window
A better rectangular layout would likely be:

Text


┌──────────────────────────────┐
│ ESP32 antenna edge            │
│ ESP32 module                  │
├───────────────┬──────────────┤
│ Power/USB     │ Camera FFC    │
│ support       │ short to ESP32│
├───────────────┴──────────────┤
│ USB-C | UART/test | JST       │  service connector edge
├──────────────────────────────┤
│ SHT31   SGP30   BH1750       │  exposed sensor edge/window
└──────────────────────────────┘
This is not necessarily the smallest outline, but it is much more product-realistic.
If the board cannot sit near the enclosure face, use a protruding sensor tab or small daughterboard:

Text


Main PCB:
  ESP32, power, USB, JST, UART, camera FFC

Sensor tab/daughterboard:
  SHT31, SGP30, BH1750
  aligned to external vent/window/light aperture
This is likely the best product architecture if environmental measurements matter. It avoids sensors being recessed behind connectors, cables, plastic, or dead-air pockets.
Sensor-specific placement guidance
SHT31 temperature/humidity
  • Put at an exposed edge or vent.
  • Keep away from ESP32, regulators, USB power path, and SGP30 heat.
  • Consider thermal isolation slots/cutouts around the sensor zone.
  • Avoid large copper pours thermally connecting it to heat sources.
SGP30 gas/VOC
  • Needs air exchange; avoid sealed cavities.
  • Keep away from adhesives, silicone, conformal coating, and outgassing plastics.
  • Avoid direct condensation/drip path.
  • Do not place immediately adjacent to SHT31 if temperature accuracy is important.
BH1750 light
  • Needs optical exposure, not just airflow.
  • Align to a light window/aperture/light pipe.
  • Avoid shadows from cables, camera FFC, JST cable, enclosure ribs, or board overhangs.
  • It may not belong in the same exact row as gas/humidity sensors unless the enclosure aperture supports both airflow and light.
Connector grouping guidance
Group service connectors where possible:
  • USB-C
  • 5-pin JST base/soil connector
  • UART/debug header or test pads
This reduces enclosure cutouts, cable keepout zones, and mechanical strain. Camera FFC is different: place it based on camera module position and cable bend direction, not just connector grouping.
2-layer feasibility
A 2-layer board is plausible, but not automatically better.
It may work because:
  • ESP32 module handles RF internally.
  • Most signals are I2C/UART/low-speed GPIO.
  • USB is short.
  • Camera bus is parallel but can be kept short if J4 is placed well.
Risks of 2-layer:
  • Bottom ground plane may get cut up by routing.
  • Camera bus and USB return paths can become poor.
  • More EMI/debug risk.
  • Could require larger board area than 4-layer.
  • More manual routing effort.
Recommendation: try a 2-layer feasibility branch only after mechanical floorplan is locked. Use success criteria:
  • Bottom layer remains mostly continuous GND.
  • USB D+/D- are short and have a clean return path.
  • Camera bus is short and grouped near ESP32/J4.
  • Sensor row/tongue remains exposed and thermally isolated.
  • Board does not grow significantly.
If these fail, stay 4-layer.
Size expectations
With better organization:

Table


TargetNotes
65 x 78 mmCurrent compact baseline, but not well organized mechanically.
60 x 72 mmPhysically placeable, but routing became conflict-heavy in current layout. Could work after a real floorplan redesign, not just compaction.
55 x 65 mmPossible on 4-layer with a better block layout, but mechanical connector/sensor exposure will dominate.
50 x 60 mmAggressive; likely needs strong compromises or a sensor tongue/daughterboard.
Do not optimize only for rectangle dimensions. A small tab or irregular outline may produce a better product than the smallest rectangle.
Before mutating placement again, answer these mechanical questions:
  1. Which enclosure face contains the camera opening?
  2. Which face should sense light?
  3. Where will airflow vents be?
  4. Do USB-C and JST need user access, or only assembly/service access?
  5. Does UART need a connector, or can it become test pads?
  6. Which direction should the camera FFC exit/bend?
  7. Can the board have a small sensor tongue/protrusion?
  8. Can sensors be on a daughterboard connected by a short cable/FFC?
Once those are answered, do a fresh block placement before routing:
  1. Lock ESP32 antenna edge.
  2. Lock camera FFC relative to camera/cable direction.
  3. Group USB/JST/UART on service edge.
  4. Create exposed sensor edge/tongue and place sensors there.
  5. Place power/regulators away from SHT31/SGP30.
  6. Place passives.
  7. Route camera and USB first, then power, then low-speed nets.
Do not keep iterating the current scattered layout. Redesign the board floorplan around exposure and connector mechanics. My recommended next layout pass is a fresh floorplan, preferably:
  • ESP32 antenna on top edge.
  • Camera FFC on the edge closest to the camera module.
  • USB/JST/UART grouped on one service edge.
  • Sensors in a clean exposed row or, better, on a small sensor tongue/daughterboard.
  • Keep 4-layer for the next pass; evaluate 2-layer only after this floorplan is mechanically coherent.
  • Why this review was done

  • Current layout observations

  • Main architecture conclusion

  • Recommended floorplan: single-PCB version

  • Recommended floorplan: sensor tongue/daughterboard version

  • Sensor-specific placement guidance

  • SHT31 temperature/humidity

  • SGP30 gas/VOC

  • BH1750 light

  • Connector grouping guidance

  • 2-layer feasibility

  • Size expectations

  • Recommended next action

  • Recommended direction