Sensor Wiring Setup

Work done
  • Integrated the two native PC817 homing sensor channels with labeled X/Y sensor terminals, 10kΩ pullups, 100nF filters, 4.7kΩ status LED resistors, Nano D9/D10 outputs, and a single 0Ω star link between GND_24V and GND_LOGIC.
  • Preserved the 100 mm × 152 mm, 2-layer board and placed the new/updated sensor parts in the connector area with no placement overlap or out-of-bounds issues.
  • Applied the required 1.6 mm copper spacing rule conservatively and documented the implementation in Homing Sensor Integration Audit.
Success criteria review
  • ✅ Native X/Y sensor circuitry integrated and connected to +24V_SENSOR / GND_24V.
  • LIMIT_X_NET connects to Nano D9; LIMIT_Y_NET connects to Nano D10.
  • ✅ Sensor terminals are documented as BRN/BLU/BLK and filters/status LEDs are included.
  • ✅ Board size and 2-layer stackup are preserved.
  • ❌ Final layout DRC is not clean: airwires and overlapping copper remain after the stricter spacing rule, so the board is not fabrication-ready yet.
Next steps
Run routing cleanup/autoroute for the updated board, then re-check DRC until the airwire and copper-clearance issues are cleared. I can continue with PCB routing/cleanup guidance next.
Route sensor nets
Review DRC violations
Verify clearance rule
Prepare Gerbers
Update audit doc
ESP32
R5
Resistance
10kΩ
TP1
TP5
R8
Resistance
10kΩ
STUFFER_BASE_R
Resistance
1kΩ
STUFFER_BASE_PD
Resistance
10kΩ
R7
Resistance
10kΩ
TP2
R4
Resistance
10kΩ
R2
Resistance
10kΩ
R11
Resistance
1kΩ
R_PULLUP_Y
Resistance
10kΩ
R1
Resistance
10kΩ
R_STATUS_Y
Resistance
4.7kΩ
TP3
STUFFER_PWR_LED_R
Resistance
1kΩ
R6
Resistance
10kΩ
R14
Resistance
1kΩ
R_STATUS_X
Resistance
4.7kΩ
R_PULLUP_X
Resistance
10kΩ
STUFFER_OPTO_R
Resistance
1kΩ
TP4
R12
Resistance
4.7kΩ
R3
Resistance
10kΩ
R13
Resistance
1kΩ
STUFFER_RELAY_LED_R
Resistance
1kΩ
TP6
R_STAR_GND
Resistance
0 Ω
J_SENSOR_PWR
C8
Capacitance
10µF
H2
BUTTON_BOX_CONN
H1
Q1
LED_STATUS_X
Q4
LED1
Q2
MH1
LED3
LED2
STUFFER_DECOUPLE
Capacitance
100nF
LED_STATUS_Y
C_FILT_Y
Capacitance
100nF
C1
Capacitance
100nF
H3
C_FILT_X
Capacitance
100nF
STUFFER_BULK
Capacitance
10µF
C7
Capacitance
10µF
LED4
Q3
C2
Capacitance
100nF
X_MOTOR_CONNECTOR
STUFFER_CONTACT_CONN
STUFFER_RELAY
ESP32_SOCKET_B
ESP32_SOCKET_A
Y_MOTOR_CONNECTOR
J_SENS_X
J_SENS_Y
NANO_SOCKET_B
5V_RAIL
MICROSD_SOCKET
STUFFER_RELAY_LED
U_SENS_Y
STUFFER_DRIVER
STUFFER_OPTO
STUFFER_FLYBACK
STUFFER_PWR_LED
U_SENS_X
NANO_SOCKET_A
NANO

Refine this doc
Ask about this doc
Stuffer Relay Integration Status
Implemented
  • Removed the old off-the-shelf relay module connector RELAY_MODULE_CONN and old command LED parts R17 / LED7.
  • Added onboard active-high stuffer relay subsystem:
    • STUFFER_OPTO PC817 optocoupler
    • STUFFER_DRIVER S8050 NPN low-side coil driver
    • STUFFER_RELAY SRD-05VDC-SL-C 5V SPDT relay
    • STUFFER_FLYBACK 1N4007 flyback diode
    • STUFFER_RELAY_LED red relay-on LED + STUFFER_RELAY_LED_R 1k resistor
    • STUFFER_PWR_LED green +5V LED + STUFFER_PWR_LED_R 1k resistor
    • STUFFER_DECOUPLE 100nF and STUFFER_BULK 10uF across +5V/GND
    • STUFFER_CONTACT_CONN 3-position 5.08mm pluggable terminal for NO/COM/NC
Logic / Wiring
  • NANO:D11/MOSI drives STUFFER_OPTO_R then the PC817 input LED.
  • PC817 output drives STUFFER_DRIVER:B through STUFFER_BASE_R, with STUFFER_BASE_PD as a 10k pulldown.
  • STUFFER_DRIVER sinks the relay coil through STUFFER_COIL_NEG.
  • STUFFER_FLYBACK is across the relay coil: cathode to +5V / A1, anode to coil negative / A2.
  • Contact terminal mapping: Pin_1 = STUFFER_NO, Pin_2 = STUFFER_COM, Pin_3 = STUFFER_NC.
Safety / Layout Notes
  • Treat the relay contact side as potentially 220VAC until the stuffer load is confirmed.
  • Keep contact-side traces physically separated from logic with >=3.2mm clearance and >=4mm creepage, preferably more where space allows.
  • Place the relay contact terminal at the board edge and orient relay contact pins toward it.
  • Place flyback diode adjacent to relay coil pins.
Current Open Items
  • PCB placement is complete for the relay subsystem: terminal at the right board edge, relay behind it, driver/flyback/decoupling clustered near the coil, and optocoupler/input resistor near Nano D11.
  • Applied available layout rules to the contact-side terminal and relay contact pads: minKeepOut = 3.2 mm at the terminal and traceWidth = 1.27 mm on NO/COM/NC contact pads.
  • ERC floating-pin warnings for unused ESP32 GPIO8/GPIO9 were cleared with no-connect markers.
  • Routing still needs final cleanup: airwires remain because traces have not been fully routed after the relay subsystem was added.
  • The stuffer load type (220VAC vs low-voltage DC) remains the main open clearance decision; if 220VAC is confirmed, manually verify >=3.2mm clearance and >=4mm creepage around all contact copper after routing.
  • Implemented

  • Logic / Wiring

  • Safety / Layout Notes

  • Current Open Items

Jerky Robot V3 Control Board thumbnail
Jerky Robot V3 100 mm × 152 mm 2-layer control board with ESP32-S3 and Arduino Nano sockets, screw-terminal I/O, BSS138 UART level shifting, PC817 sensor isolation, optional HX711 interface, status LEDs, test points, top-side component placement, and bottom GND fill for JLCPCB fabrication.

Properties

Properties describe core aspects of the project.

Pricing & Availability

Distributor

Qty 1

Arrow

$17.38–$18.07

Digi-Key

$56.94–$3,844.24

LCSC

$32.10–$32.16

Mouser

$28.03

TME

$3.43

Verical

$7.32–$19.76

Controls