Refine this doc
Ask about this doc

Last modified 6mo ago

ESP32-S3 Servo Load Controller - Project Specification
Scope
Robust ESP32-S3 N16R8 44-pin DevKit/baseboard for 3x MG90S servos, SPI ILI9341 TFT, I2C OLED, 3x INA226 plug-in modules, COM2 UART, active buzzer, normal 12 V MOSFET outputs, and 3x special 12 V two-core LC/RC filter relay channels.
Critical assumptions to verify before manufacturing
  1. Exact ESP32-S3 N16R8 44-pin DevKit pinout and mechanical footprint must be confirmed from the purchased board.
  2. TFT module must accept 3.3 V SPI logic when powered from 5 V.
  3. OLED and INA226 modules must not pull SDA/SCL to 5 V. Preferred board pull-ups are to 3.3 V only.
  4. Special filter relay switching behavior must be bench-tested on one channel: the provided topology is a filtered shunt/bridge between A and B after L1/L2, not a series interruption of one conductor.
  5. Main 5 V source is an external regulated 5 V DC adapter/module supplied by user. No onboard 5 V regulator is used for the main rail.
  6. Main power switching uses an external high-current panel-mount switch wired to a PCB connector labeled MAIN_POWER_SWITCH. Do not use a small low-current PCB slide switch in series with servo current.
  7. 5 V input path, switch loop, and servo branch must be sized for at least 5 A, preferably 6 A or more.
  8. Normal MOSFET output count is assumed as 4 channels unless revised; GPIOs planned: GPIO16, GPIO35, GPIO36, GPIO37.
  9. Use 2-layer PCB, 1 oz minimum, 2 oz preferred for servo/load current. Bottom layer is continuous GND plane with antenna copper keepout.
Functional blocks
  • Power input/protection: external regulated 5 V screw input, P-channel MOSFET reverse-polarity protection, external MAIN_POWER_SWITCH loop, protected/switched 5 V rails.
  • Servo power: separate high-current 5 V branch with 1000 uF bulk capacitor and local 100 nF capacitors.
  • Logic/module power: ESP32 VIN/5V, TFT/OLED/INA226/UART/buzzer/MOSFET gate pull-ups, 100 uF and local 10 uF/100 nF decoupling.
  • ESP32-S3 DevKit interface: 44-pin footprint/header with GPIO silkscreen labels and boot-sensitive pin restrictions.
  • Peripherals: SPI TFT, I2C OLED + 3x INA226, COM2 UART, buzzer driver.
  • Outputs: normal low-side MOSFET channels with inverted NPN gate drive and status LEDs.
  • Special filter relay channels: 3 identical LC/RC channels with A/B screw terminals, 2x 100 uH inductors >=2 A, 100 nF/50 V, 1 uF/50 V, 100 kOhm, MOSFET relay element, status LED.
GPIO allocation

Table


FunctionGPIO
Servo 1 PWMGPIO4
Servo 2 PWMGPIO5
Servo 3 external PWMGPIO6
TFT MOSIGPIO11
TFT SCLKGPIO12
TFT CSGPIO10
TFT DCGPIO9
TFT RSTGPIO8
I2C SDAGPIO21
I2C SCLGPIO47
COM2 TXGPIO17
COM2 RXGPIO18
BuzzerGPIO3
Filter relay CH1GPIO13
Filter relay CH2GPIO14
Filter relay CH3GPIO15
Normal MOSFET OUT1GPIO16
Normal MOSFET OUT2GPIO35
Normal MOSFET OUT3GPIO36
Normal MOSFET OUT4GPIO37
Layout rules to enforce later
  • ESP32 antenna at board edge with no copper/traces under antenna region on any layer.
  • Servo/high-current returns route back to power entry, not through ESP32/TFT/I2C/INA226 areas.
  • SPI SCLK short and away from MOSFET drains, filter channels, servo PWM, and high-current loops.
  • I2C and INA226 sense wiring away from 12 V switching/filter loops.
  • Servo +5 V traces/copper: preferred >=2 mm, absolute minimum 1.5 mm.
  • Logic 5 V traces >=0.5 mm; signals >=0.25 mm.
  • 12 V/load/filter/sense traces sized for real current; use copper pours where needed.
  • Scope

  • Critical assumptions to verify before manufacturing

  • Functional blocks

  • GPIO allocation

  • Layout rules to enforce later