create a new document Build GLECS V4 Motor Controller PCB. Follow these steps in exact order, complete each step fully before moving to next:
STEP 1 — BOARD OUTLINE ONLY:
Create board outline 150x100mm. Add 4 mounting holes 3.2mm NPTH at corners (5,5) (145,5) (5,95) (145,95). Nothing else yet.
STEP 2 — ISOLATION SLOT ONLY:
Draw isolation slot on Edge.Cuts at X=60mm, width 1.5mm, from Y=5mm to Y=95mm. Add keepout rule — absolutely no copper, no traces, no vias within 0.5mm of slot on either side. Confirm slot exists before continuing. This slot divides board into LEFT switching zone (X=0 to X=59mm) and RIGHT logic zone (X=61mm to X=150mm).
STEP 3 — PLACE SWITCHING ZONE COMPONENTS (LEFT SIDE ONLY X=2 to X=58):
Place these components only in left zone:
J2 screw terminal 3P 5mm LCSC C557652 at X=8 Y=78 (12V power input)
R10 330R 0603 LCSC C98220 at X=56 Y=48
Do not place anything in right zone yet.
STEP 4 — PLACE LOGIC ZONE COMPONENTS (RIGHT SIDE ONLY X=62 to X=148):
Place these components only in right zone:
J1 DC barrel jack LCSC C111567 at X=68 Y=92
U1 AMS1117-5V SOT-223 LCSC C6187 at X=82 Y=78
C1 1000uF radial LCSC C503217 at X=93 Y=78
U9 LMR33630 SOIC-8EP LCSC C1355643 at X=110 Y=90
L1 2.2uH inductor SRN6028 LCSC C167118 at X=125 Y=90
U2 STM32 Blue Pill module at X=105 Y=55
U3 A7672S 4G module at X=130 Y=70
J4 SMA edge connector LCSC C1509229 at X=148 Y=72
U6 DS18B20 TO-92 LCSC C376006 at X=130 Y=34
U7 DHT22 module at X=120 Y=20
U8 ACS724 SOIC-8 LCSC C52034468 at X=100 Y=20
SW1 tactile switch LCSC C406160 at X=72 Y=44
J5 4-pin header LCSC C91552 at X=138 Y=45
J6 6-pin SWD header LCSC C2685206 at X=72 Y=55
Star GND copper pad 4x4mm at X=88 Y=48
Place all decoupling caps 100nF 0603 within 2mm of each IC power pin
Place bulk caps 22uF 0805 near U1 and U9 outputs
R1 1k, R2-R3 4.7k, R4-R5 10k, R6 100k, R7-R8 33k all 0603 near STM32
STEP 5 — ROUTE SWITCHING ZONE ONLY:
Route only left zone traces. Stay strictly within X=2 to X=58mm:
12V power rail 1mm trace: J2 pin1 → F1 → D1 → K1 coil pin2
D2 flyback across K1 coil pins
Do not route any trace that crosses X=60mm yet.
STEP 6 — ROUTE LOGIC ZONE ONLY:
Route only right zone traces. Stay strictly within X=62 to X=148mm:
12V rail 1mm: J1 → F1 area → U1 input → U9 input
5V rail 0.8mm: U1 output → C1 → STM32 VIN
Buck rail 0.8mm: U9 output → L1 → U3 power
GND 0.5mm: all logic GND to star ground pad at X=88 Y=48
UART 0.25mm: STM32 PA9 PA10 → U3 RX TX
Sensor 0.25mm: STM32 PA2 → U6, PA3 → U7, PA0 → U8
I2C 0.25mm: STM32 PB6 PB7 → J5
SWD 0.25mm: STM32 PA13 PA14 → J6
RF 1mm 50ohm: U3 antenna → J4 SMA
Do not route any trace that crosses X=60mm yet.
STEP 7 — ROUTE ISOLATION CROSSING LAST:
Only one signal crosses the isolation slot — route it now:
U4 PC817 collector → U5 ULN2003 input (switching side)
These traces enter and exit through the PC817 pins which are the ONLY legal crossing point.
STEP 8 — COPPER POURS:
Bottom layer left zone: solid GND_SW copper pour
Bottom layer right zone: solid GND copper pour
No copper under A7672S antenna area
STEP 9 — DRC AND FIX:
Run full DRC. Fix every single error. Verify isolation slot has 0.5mm clearance. Target 0 errors.
STEP 10 — EXPORT:
Export Gerber ZIP for JLCPCB. Export BOM CSV with Comment Designator Footprint LCSC-Part-Number Qty columns. Export CPL CSV with Designator Mid-X Mid-Y Layer Rotation columns — coordinates as plain numbers no mm units
I’ll create the PCB build document, then apply the board outline, slot/keepout, placement, routing, DRC fixes, and manufacturing exports in the exact order you specified, validating each phase before moving on.
Wirelessly connects nets on schematic. Used to organize schematics and separate functional blocks. To wirelessly connect net portals, give them same designator. #portal
General Purpose Thick Film Standard Power
and High-Power Chip Resistor
47 kOhms ±5% 0.125W, 1/8W Chip Resistor 0805 (2012 Metric) Automotive AEC-Q200 Thick Film
Features:
- RMCF – standard power ratings
- RMCP – high power ratings
- Nickel barrier terminations standard
- Power derating from 100% at 70ºC to zero at +155ºC
- RoHS compliant, REACH compliant, and halogen free
- AEC-Q200 compliant