Relay Dry Contact Modification

The replacement step did complete for the priority BOM parts.
Updated parts

Table


DesignatorNew partStatus
R1AC0603FR-071KLreplaced
R2AC0603FR-0710KLreplaced
C1RZW101M1VBK-0811replaced
C2RZW101M1VBK-0811replaced
L1SRR1260-680Mreplaced
Also reconnected
  • R1: U2 IO23 -> R1 -> base net
  • R2: base pull-down to GND
  • C1: on VIN
  • C2: on 5V
  • L1: between BUCK_SW and 5V
Important note
I only finished the priority replacements. I have not yet confirmed the entire BOM is fully JLC-matched for every remaining part like:
So the answer is:
  • priority BOM fixed: yes
  • full JLC assembly BOM fully verified: not yet
If you want, I can do the final BOM audit summary next and tell you exactly which remaining rows are still risky for JLCPCB.
Final BOM audit
Check remaining parts
Verify assembly parts
Run ERC/DRC review
U2
R1
Resistance
1kΩ
L1 2 - U1 FEEDBACK
U6 IN- - K1 A1
L1 1 - U1 OUTPUT
U6 VS - U2 3V3
L1 2 - U1 FEEDBACK
U6 VS - U2 3V3
K1 NO - RELAY_OUT P2
L1 2 - U1 FEEDBACK
U6 VS - U2 3V3
C1 1 - J1 P1
L1 2 - U1 FEEDBACK
K1 A2 - Q1 C
U6 VS - U2 3V3
U6 SDA - U2 IO21
L1 1 - U1 OUTPUT
K1 A2 - Q1 C
R1 2 - Q1 B
U6 IN- - K1 A1
L1 2 - U1 FEEDBACK
K1 A2 - Q1 C
R1 1 - U2 IO23
L1 1 - U1 OUTPUT
R1 2 - Q1 B
C1 1 - J1 P1
K1 COM - RELAY_OUT P1
U6 SCL - U2 IO22
C1 1 - J1 P1
U6 SDA - U2 IO21
U6 VS - U2 3V3
L1 2 - U1 FEEDBACK
R1 2 - Q1 B
K1 COM - RELAY_OUT P1
C1 1 - J1 P1
K1 NO - RELAY_OUT P2
R1 1 - U2 IO23
L1 2 - U1 FEEDBACK
U6 SDA - U2 IO21
U6 SCL - U2 IO22
U6 SCL - U2 IO22
R3
Resistance
4.7kΩ
U4
C5
Capacitance
100nF
Q1
R4
Resistance
4.7kΩ
U3
R2 2 - Q1 E
U2 GND3 - U6 GND
U1 GND_TAB - U1 ~ON~/OFF
RELAY_OUT
U6 A1 - C1 2
U1 GND_TAB - U1 ~ON~/OFF
D1
U6 A1 - C1 2
U6 A1 - C1 2
U1 GND_TAB - U1 ~ON~/OFF
R2 2 - Q1 E
U6 A1 - C1 2
D2
K1
J1
C3
Capacitance
100nF
L1
Inductance
68uH
U6 A1 - C1 2
U6 A1 - C1 2
C2
Capacitance
100uF
R2 2 - Q1 E
R2 2 - Q1 E
C4
Capacitance
100nF
U6 A1 - C1 2
R2
Resistance
10kΩ
U6 A1 - C1 2
U1
U5
U6
U1 GND_TAB - U1 ~ON~/OFF
C1
Capacitance
100uF

Refine this doc
Ask about this doc
Project Specification
Design Summary
Status: Draft
Manufacturing target: Prototype
Software / firmware: ESP32 firmware with timed relay pulse output

Scope
Purpose
Develop a production-grade prototype PCB for a golf ball dispenser machine. Use the uploaded reference only as architectural guidance while removing unnecessary legacy circuitry. The board accepts 12V-24V DC input, generates 5V locally, hosts an ESP32-WROOM-32 based 38-pin ESP32 development board with native USB, drives a 5V relay from an ESP32 GPIO, and exports a fully isolated dry-contact relay output that emulates a mechanical coin-trigger push-button closure.
In scope
  • 12V-24V DC power input through a screw terminal
  • Reverse-polarity and input filtering protection
  • 12V-24V to 5V buck conversion
  • ESP32 development board interface powered from the 5V rail
  • Relay coil drive using an on-board transistor stage
  • Flyback protection across the relay coil
  • Dedicated dry-contact output terminal using only COM and NO
  • Optional debug connector only if it adds capability beyond the ESP32 onboard USB
Out of scope
  • Using relay NC in the output path
  • Driving external voltage onto the relay contact output
  • Adding separate USB interface circuitry on the PCB

System context
This board acts as a controller interface for a golf ball dispenser machine. The PCB accepts 12V-24V DC from the machine, generates a regulated 5V rail, powers an ESP32 development board, and uses a transistor-switched relay to present an isolated contact closure to the machine coin-trigger input.
Key interfaces
  • Power input: J1 12V-24V DC machine supply
  • 5V buck stage: converts input power to regulated 5V for logic and relay coil
  • Controller: ESP32-WROOM-32 based 38-pin development board mounted on PCB headers
  • Dry contact output: RELAY_OUT routed only to K1 COM and NO
Attach: simple block diagram

Diagram


POWER_IN J1 node_12V to node_24V Input Protection 5V Buck Converter 5V Rail ESP32 DevKitC 38 pin Headers Relay Coil K1 GPIO Relay Control Base Resistor R1 Q1 NPN Driver Flyback Diode D1 Relay COM and NO RELAY_OUT 2 Pin Dry Contact

Requirements
Functional
  • The board shall accept 12V-24V DC from the machine and generate a stable 5V rail.
  • The board shall power an ESP32-WROOM-32 based 38-pin development board from the 5V rail while still allowing native USB use on the dev board.
  • The board shall allow an ESP32 GPIO to drive the relay transistor stage.
  • The board shall expose only relay COM and NO on the dry-contact output terminal.
  • The board shall leave relay NC unused.
  • The board shall emulate a momentary mechanical push-button closure for the machine coin-trigger input.
Electrical
  • Input power: 12V-24V DC on J1
  • Key rails: VIN, 5V, and GND on PCB side only
  • Relay coil supply: 5V rail
  • Coil protection: flyback diode across K1 coil
  • Isolation requirement: RELAY_OUT must not connect to VIN, GND, or any powered PCB rail
Mechanical / environmental
  • Through-hole relay, power terminal, dry-contact terminal, and 38-pin ESP32 header interface used for simple assembly and robust field wiring

Key constraints
  • Keep the relay coil driver topology conventional: NPN low-side switch with flyback diode
  • Use an ESP32-WROOM-32 based 38-pin development board with onboard USB instead of a bare ESP32 module
  • Avoid back-power conflicts between the PCB 5V rail and the ESP32 dev board USB input
  • RELAY_OUT must be a true dry contact using only COM and NO
  • No PCB rail may be routed onto the relay contact side

Dependencies and risks
Dependencies
  • External machine provides 12V-24V DC input power
  • External coin pulse input expects a passive contact closure on RELAY_OUT
Key risks
  • ESP32 dev board pinout must match the chosen 38-pin DevKitC footprint in the library
  • USB back-power behavior depends on the chosen dev board implementation and must be handled conservatively

Validation
Success criteria
  • J1 accepts 12V-24V input and the buck stage generates 5V
  • ESP32 dev board receives 5V and GND correctly from the PCB
  • K1 coil is driven from PCB 5V through Q1 and protected by D1
  • RELAY_OUT connects only to K1 COM and K1 NO
  • K1 NC is not connected
  • No PCB supply rail is present on RELAY_OUT
Planned checks
  • Inspect schematic nets for dry-contact isolation
  • Review 5V power distribution and ESP32 header mapping
  • Run ERC and DRC checks before prototype release

Release-facing notes
Expected deliverables
  • Schematic
  • BOM
  • Design notes in project documentation
Special release notes
  • RELAY_OUT is intentionally isolated and must remain free of applied PCB voltage
  • ESP32 onboard USB is the preferred programming and debug interface unless a non-redundant auxiliary header is later justified

Change notes / open questions
Changes in this revision
  • Existing relay driver retained as a starting point for refinement
  • Project scope expanded to full golf ball dispenser controller with power conversion and ESP32 dev board support
  • Controller interface updated from 30-pin ESP32-DEVKIT-V1 to 38-pin ESP32-DEVKITC / ESP32-WROOM-32 based board
  • Relay control remapped to IO23 on the 38-pin controller interface
  • 90 x 70 mm layout checked for fit with the new controller footprint and onboard USB edge access
  • U2 replacement re-validated against the photographed 38-pin ESP32 board family, preserving EXT_5V, 3V3, GND, IO23, IO21, and IO22 connections
Photographed board reference orientation
  • USB connector at the bottom
  • Critical preserved functional mapping used by this project:
    • GPIO23 -> relay control
    • GPIO22 -> INA219 SCL
    • GPIO21 -> INA219 SDA
    • 3V3 -> INA219 supply and I2C pull-ups
    • 5V -> dev-board external power input
    • GND -> common logic and power reference
Open questions
  • Select final buck implementation for prototype versus module strategy if desired
  • Decide whether any auxiliary debug header adds value beyond the dev board USB connection
  • Design Summary

  • Scope

  • System context

  • Requirements

  • Functional

  • Electrical

  • Mechanical / environmental

  • Key constraints

  • Dependencies and risks

  • Validation

  • Release-facing notes

  • Change notes / open questions

Assets

No assets added.

12-24 -> esp controller

12-24 -> esp controller thumbnail
Welcome to your new project. Imagine what you can build here.

Properties

Properties describe core aspects of the project.

Pricing & Availability

Distributor

Qty 1

Arrow

$5.70–$9.05

Digi-Key

$26.04–$31.63

LCSC

$5.61–$5.73

Mouser

$12.06–$12.12

TME

$10.07

Verical

$4.02–$7.91

Controls