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
J_SENSOR_PWR
TP5
C8
Capacitance
10µF
R8
Resistance
10kΩ
H2
STUFFER_BASE_R
Resistance
1kΩ
STUFFER_BASE_PD
Resistance
10kΩ
BUTTON_BOX_CONN
H1
Q1
LED_STATUS_X
Q4
R7
Resistance
10kΩ
TP2
R4
Resistance
10kΩ
R2
Resistance
10kΩ
R11
Resistance
1kΩ
R_PULLUP_Y
Resistance
10kΩ
LED1
Q2
R1
Resistance
10kΩ
MH1
LED3
R_STATUS_Y
Resistance
4.7kΩ
TP3
STUFFER_PWR_LED_R
Resistance
1kΩ
R6
Resistance
10kΩ
LED2
STUFFER_DECOUPLE
Capacitance
100nF
LED_STATUS_Y
R14
Resistance
1kΩ
C_FILT_Y
Capacitance
100nF
R_STATUS_X
Resistance
4.7kΩ
C1
Capacitance
100nF
R_PULLUP_X
Resistance
10kΩ
STUFFER_OPTO_R
Resistance
1kΩ
H3
TP4
C_FILT_X
Capacitance
100nF
STUFFER_BULK
Capacitance
10µF
C7
Capacitance
10µF
LED4
Q3
C2
Capacitance
100nF
R12
Resistance
4.7kΩ
R3
Resistance
10kΩ
R13
Resistance
1kΩ
STUFFER_RELAY_LED_R
Resistance
1kΩ
TP6
R_STAR_GND
Resistance
0 Ω
X_MOTOR_CONNECTOR
STUFFER_CONTACT_CONN
STUFFER_RELAY
ESP32_SOCKET_B
NANO_SOCKET_B
ESP32_SOCKET_A
5V_RAIL
MICROSD_SOCKET
STUFFER_RELAY_LED
Y_MOTOR_CONNECTOR
U_SENS_Y
STUFFER_DRIVER
STUFFER_OPTO
STUFFER_FLYBACK
STUFFER_PWR_LED
J_SENS_X
U_SENS_X
NANO_SOCKET_A
NANO
J_SENS_Y

Refine this doc
Ask about this doc
Homing Sensor Integration Audit
Summary
Two native PC817 homing sensor channels are integrated on the PCB for X and Y using shared +24V_SENSOR and GND_24V rails, with Nano limit outputs on D9 and D10.
Schematic implementation
  • X channel:
    • Connector: J_SENS_X, 3-position 5.08 mm terminal
    • Pin mapping: Pin 1 BRN = +24V_SENSOR, Pin 2 BLU = GND_24V, Pin 3 BLK = SENSOR_BLACK_X
    • Optocoupler: U_SENS_X, PC817 DIP-4
    • Pullup: R_PULLUP_X = 10 kΩ, 0.25 W from +24V_SENSOR to SENSOR_BLACK_X
    • Filter: C_FILT_X = 100 nF from SENSOR_BLACK_X to GND_24V
    • Status LED: LED_STATUS_X with R_STATUS_X = 4.7 kΩ from SENSOR_BLACK_X to GND_24V
    • Logic output: LIMIT_X_NET connects U_SENS_X pin 4 to Nano D9 and NANO_SOCKET_A pin 12
  • Y channel:
    • Connector: J_SENS_Y, 3-position 5.08 mm terminal
    • Pin mapping: Pin 1 BRN = +24V_SENSOR, Pin 2 BLU = GND_24V, Pin 3 BLK = SENSOR_BLACK_Y
    • Optocoupler: U_SENS_Y, PC817 DIP-4
    • Pullup: R_PULLUP_Y = 10 kΩ, 0.25 W from +24V_SENSOR to SENSOR_BLACK_Y
    • Filter: C_FILT_Y = 100 nF from SENSOR_BLACK_Y to GND_24V
    • Status LED: LED_STATUS_Y with R_STATUS_Y = 4.7 kΩ from SENSOR_BLACK_Y to GND_24V
    • Logic output: LIMIT_Y_NET connects U_SENS_Y pin 4 to Nano D10 and NANO_SOCKET_A pin 13
Grounding and power
  • J_SENSOR_PWR pin 1 is +24V_SENSOR.
  • J_SENSOR_PWR pin 2 is GND_24V.
  • PC817 input cathodes, sensor blue terminals, filter returns, and status LED cathodes use GND_24V.
  • PC817 output emitters use GND_LOGIC.
  • R_STAR_GND is a 0 Ω 0805 star link between GND_24V and GND_LOGIC.
  • J_SENSOR_PWR role notes specify direct PSU sensor power, not the LC1-D09BD switched output.
Polarity
The Nano input nets are collector outputs: LIMIT_X_NET to D9 and LIMIT_Y_NET to D10. The sensor black/input node is separate from the Nano logic output node for both channels. This supports active-high firmware behavior when the optocoupler transistor is off and the Nano input is pulled high by the existing input configuration.
PCB/layout updates
  • Board remains 100 mm x 152 mm rectangular.
  • Stackup remains Standard 2 Layer.
  • Sensor terminals, optocouplers, filters, pullups, status LEDs, and R_STAR_GND were placed in the existing connector area.
  • Universal copper keepout was updated to 1.6 mm to enforce the specified spacing conservatively.
Verification snapshot
  • ERC checks reviewed: floating pin, single-pin net, missing power, and driver conflicts all pass.
  • Manufacturing MPN check passes.
  • Missing footprint check passes.
  • DRC still reports route/copper issues after the stricter 1.6 mm clearance rule: overlapping copper and airwires remain. These require routing cleanup/autoroute rerun or manual trace edits before fabrication.
Remaining action before fabrication
Reroute/clean the PCB so the 1.6 mm clearance rule is satisfied and all airwires/overlapping copper DRC errors are cleared. The schematic-level homing sensor integration is complete, but the board is not fabrication-ready until layout DRC is clean.
  • Summary

  • Schematic implementation

  • Grounding and power

  • Polarity

  • PCB/layout updates

  • Verification snapshot

  • Remaining action before fabrication

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