Robot Safety Kill Switch Design


Design a 2-layer PCB and schematic for a robot safety kill switch system called "SafeBot Switch™".
Components:
  • ESP32-DevKitC (microcontroller)
  • Quectel BG95 LTE module (Armor 4 / Cat M1)
  • NC emergency stop button (twist-release, industrial-grade)
  • Tamper detection switch (SPST)
  • DPDT relay module (motor power cutoff)
  • SD card module (SPI-based for logging)
  • 2x 10kΩ pull-down resistors
  • UART debug header (TX, RX, EN, GND, IO0)
  • 3.3V and 5V power rails
Key Signals and Routing:
  • GPIO23 (ESP32) → Relay coil (+)
  • GPIO15 (ESP32) ← E-stop signal (active LOW)
  • GPIO4 (ESP32) ← Tamper switch (active LOW)
  • UART (ESP32) ↔ UART (BG95) via TXD/RXD
  • SPI bus (ESP32) ↔ SD card (MISO, MOSI, SCK, CS)
  • Use 10 mil traces for logic, 20+ mil for relay power
  • Add 0.1μF decoupling capacitors on all VCC pins
PCB Specs:
  • Size: 100mm x 80mm
  • Layers: 2
  • Mounting: 3mm holes in each corner
  • GND pour (bottom layer), 3.3V pour (top layer)
Placement:
  • ESP32: top-left
  • BG95 LTE: top-right
  • SD card: top-center
  • Relay: bottom-right
  • E-stop & tamper connectors: bottom-center
  • Debug header: top edge
Additional Design Requirements:
  • Add test points for: GPIO_KILL, ESTOP_SIG, TAMPER_SIG
  • Add status LED (kill active), power LED (VIN present)
  • Label all signal nets clearly (e.g., ESTOP_SIG, GPIO_KILL, LTE_KILL)
  • Include decoupling and isolation where necessary
  • Ensure SD card and LTE UART don’t share conflicting pins
Deliverables:
  • Schematic (Flux-native)
  • PCB layout (2-layer, ready for Gerber export)
  • BOM with common part numbers
  • Pick-and-place file (optional)
Here’s the list of the discrete parts to add for the SafeBot Switch™ (excluding decoupling caps – need quantity):

Table


Part NameManufacturer Part NumberQtyFootprintDatasheet linkManufacturer
ESP32-DevKitCESP32-DevKitC1BULETM-SMD_ESP32-DEVKITC___Espressif
BG95 LTE moduleBG95M3LA64-SGNS1Surface MountPDFQuectel
E-stop buttonPV1F240SS1Panel Mount___PV1F240SS
Tamper switchKMR421NGLFS1Tactile SMD (4-lead)___C&K Components
DPDT relayJW2SN-DC5V1Through-hole (8-pin)PDFPanasonic
SD card module468219-pin ModulePDFAdafruit
10 kΩ resistorCRM2010-FX-1002ELF22010 (0805)PDFBourns
UART header220520511HDR-TH_5P-2.54mm___Molex
For the 0.1 μF decoupling capacitors, could you please confirm how many you’d like to add? Once we have that, I can include them and apply these additions for you.
applied changes.

Schematic of ESPRSSO32 Smart Scale AI Auto Layout [Example]

ESPRSSO32 Smart Scale AI Auto Layout [Example]