# [2-layer] JLCPCB Constraints
## Description
Use this template if you're planning to get your 1 to 2-layer board manufactured in JLCPCB. It has the via min/max and trace width constraints already baked as global rules. #project-template #template #manufacturer-design-rules
## Project Details
- **Owner:** gonu
- **Created:** 7/18/2025
- **Last Updated:** 7/18/2025
- **Visibility:** Public
## Key Components
### D1 — [IN4148WS](https://www.flux.ai/lcsc/in4148ws~h8zq.md)
- LCSC Part Number: C417545
- Package or Case Code: SOD-323_L1.8-W1.3-LS2.5-RD
- Manufacturer Name: LRC(乐山无线电)
- Product Info Url: https://lcsc.com/product-detail/Switching-Diode_Leshan-Radio-IN4148WS_C417545.html
- Manufacturer Part Number: IN4148WS
- Datasheet URL: https://assets.lcsc.com/datasheet/szlcsc/Download-ISO9001-Certification.pdf
- Part Type: Switching Diode
- JLCPCB Part Class: Extended Part
**Pins:**
- A [pin 2]
- C [pin 1]
### J1 — [TerminalBlock_Phoenix_PT-1,5-4-3.5-H_1x04_P3.50mm_Horizontal](https://www.flux.ai/adrian95/terminalblockphoenixpt-15-4-35-h1x04p350mmhorizontal~xed.md)
- Part Type: Connector
**Pins:**
- Pin_1
- Pin_2
- Pin_3
- Pin_4
### J2 — [TerminalBlock-01x02P-5.00mm](https://www.flux.ai/vasy_skral/terminalblock-01x02p-500mm~h4.md)
- Part Type: Connector
**Pins:**
- P1 [pin 2]
- P2 [pin 1]
### J3 — [USB-C 2.0 Receptacle](https://www.flux.ai/corynrobinson/usb-c-20-receptacle~cf.md)
- Manufacturer Name: GTC
- Purchase Url: https://www.digikey.com/en/products/detail/gct/USB4105-GF-A/11198441
- Part Type: USB C
- Datasheet URL: https://gct.co/files/drawings/usb4105.pdf
- Manufacturer Part Number: USB4105-GF-A
**Pins:**
- CC1 [pin 6]
- CC2 [pin 12]
- D- [pin 7]
- D- [pin 9]
- D+ [pin 10]
- D+ [pin 8]
- GND [pin 1]
- GND [pin 16]
- GND [pin 15]
- GND [pin 2]
- SBU1 [pin 11]
- SBU2 [pin 5]
- VBUS [pin 3]
- VBUS [pin 14]
- VBUS [pin 4]
- VBUS [pin 13]
### Q1 — [BC547CTA](https://www.flux.ai/adrian95/bc547cta~fu7.md)
- Part Type: Transistor
- Datasheet URL: https://mm.digikey.com/Volume0/opasdata/d220001/medias/docus/944/BC546-50.pdf
- Manufacturer Name: onsemi
- Manufacturer Part Number: BC547CTA
- License: https://creativecommons.org/licenses/by/4.0/
**Pins:**
- B [pin 2]
- C [pin 1]
- E [pin 3]
### Q2 — [BC547CTA](https://www.flux.ai/adrian95/bc547cta~fu7.md)
- License: https://creativecommons.org/licenses/by/4.0/
- Manufacturer Part Number: BC547CTA
- Manufacturer Name: onsemi
- Part Type: Transistor
- Datasheet URL: https://mm.digikey.com/Volume0/opasdata/d220001/medias/docus/944/BC546-50.pdf
**Pins:**
- B [pin 2]
- C [pin 1]
- E [pin 3]
### SW1 — [Push Button](https://www.flux.ai/jharwinbarrozo/push-button~eqk.md)
- Manufacturer Part Number: B3FS-1050P
- Part Type: Switch
- Manufacturer Name: OMRON
- Datasheet URL: https://datasheet.lcsc.com/lcsc/1809271215_Omron-Electronics-B3FS-1050P_C231326.pdf
**Pins:**
- P1 [pin 1]
- P2 [pin 3]
### U1 — [ATMEGA16U2-MU](https://www.flux.ai/adrian95/atmega16u2-mu~wp1.md)
- License: https://creativecommons.org/licenses/by/4.0/
- Part Type: Microcontroller
- Manufacturer Part Number: ATMEGA16U2-MU
- Datasheet URL: https://ww1.microchip.com/downloads/en/DeviceDoc/doc7799.pdf
- Manufacturer Name: Microchip
**Pins:**
- ~HWB~/PD7 [pin 13]
- AVCC [pin 32]
- D- [pin 30]
- D+ [pin 29]
- GND [pin 33]
- GND [pin 3]
- PB0 [pin 14]
- PB1 [pin 15]
- PB2 [pin 16]
- PB3 [pin 17]
- PB4 [pin 18]
- PB5 [pin 19]
- PB6 [pin 20]
- PB7 [pin 21]
- PC0/XTAL2 [pin 2]
- PC1/~RESET [pin 24]
- PC2 [pin 5]
- PC4 [pin 26]
- PC5 [pin 25]
- PC6 [pin 23]
- PC7 [pin 22]
- PD0 [pin 6]
- PD1 [pin 7]
- PD2 [pin 8]
- PD3 [pin 9]
- PD4 [pin 10]
- PD5 [pin 11]
- PD6 [pin 12]
- UCAP [pin 27]
- UGND [pin 28]
- UVCC [pin 31]
- VCC [pin 4]
- XTAL1 [pin 1]
### U2 — [ATMEGA328P-PU V2](https://www.flux.ai/adrian95/atmega328p-pu-v2~rlb.md)
- Manufacturer Part Number: ATMEGA328P-PU
- Part Type: Microcontroller
- Datasheet URL: https://ww1.microchip.com/downloads/en/DeviceDoc/ATmega48A-PA-88A-PA-168A-PA-328-P-DS-DS40002061B.pdf
- License: https://creativecommons.org/licenses/by/4.0/
- Manufacturer Name: Microchip Technology Inc.
**Pins:**
- ~SS~/OC1B/PCINT2/PB2 [pin 16]
- ADC0/PCINT8/PC0 [pin 23]
- ADC1/PCINT9/PC1 [pin 24]
- ADC2/PCINT10/PC2 [pin 25]
- ADC3/PCINT11/PC3 [pin 26]
- ADC4/SDA/PCINT12/PC4 [pin 27]
- ADC5/SCL/PCINT13/PC5 [pin 28]
- AIN0/OC0A/PCINT22/PD6 [pin 12]
- AIN1/PCINT23/PD7 [pin 13]
- AREF [pin 21]
- AVCC [pin 20]
- GND_1 [pin 8]
- GND_2 [pin 22]
- ICP1/CLKO/PCINT0/PB0 [pin 14]
- INT0/PCINT18/PD2 [pin 4]
- INT1/OC2B/PCINT19/PD3 [pin 5]
- MISO/PCINT4/PB4 [pin 18]
- MOSI/OC2A/PCINT3/PB3 [pin 17]
- OC1A/PCINT1/PB1 [pin 15]
- PB6/PCINT6/XTAL1/TOSC1 [pin 9]
- PB7/PCINT7/XTAL2/TOSC2 [pin 10]
- PC6/PCINT14/~RESET~ [pin 1]
- RXD/PCINT16/PD0 [pin 2]
- SCK/PCINT5/PB5 [pin 19]
- T0/XCK/PCINT20/PD4 [pin 6]
- T1/OC0B/PCINT21/PD5 [pin 11]
- TXD/PCINT17/PD1 [pin 3]
- VCC [pin 7]
### X1 — [XSHEELNANF-16MHZ](https://www.flux.ai/lcsc/xsheelnanf-16mhz~fkfw.md)
- Manufacturer Name: TAITIEN(泰艺电子)
- Package or Case Code: OSC-SMD_2P-L5.0-W3.2
- JLCPCB Part Class: Extended Part
- Part Type: Crystals
- Product Info Url: https://lcsc.com/product-detail/Others_TAITIEN-Elec-SMD-5032-2P_C242221.html
- Manufacturer Part Number: XSHEELNANF-16MHZ
- Datasheet URL: https://storage.googleapis.com/graviton-electric-symbols/document_assets/lcsc/1811052123_TAITIEN-Elec-XSHEELNANF-16MHZ_C242221.pdf
- LCSC Part Number: C242221
**Pins:**
- OSC1 [pin 1]
- OSC2 [pin 2]
### X2 — [XSHEELNANF-16MHZ](https://www.flux.ai/lcsc/xsheelnanf-16mhz~fkfw.md)
- JLCPCB Part Class: Extended Part
- Package or Case Code: OSC-SMD_2P-L5.0-W3.2
- Manufacturer Name: TAITIEN(泰艺电子)
- Product Info Url: https://lcsc.com/product-detail/Others_TAITIEN-Elec-SMD-5032-2P_C242221.html
- Part Type: Crystals
- Manufacturer Part Number: XSHEELNANF-16MHZ
- Datasheet URL: https://storage.googleapis.com/graviton-electric-symbols/document_assets/lcsc/1811052123_TAITIEN-Elec-XSHEELNANF-16MHZ_C242221.pdf
- LCSC Part Number: C242221
**Pins:**
- OSC1 [pin 1]
- OSC2 [pin 2]
### Z1 — [CG0603MLC-05E](https://www.flux.ai/vasyl/cg0603mlc-05e~n98.md)
- Manufacturer Name: CG0603MLC-05E
- Manufacturer Name: Bourns Inc.
- Part Type: TVS - Varistors, MOVs
- Datasheet URL: https://www.bourns.com/docs/product-datasheets/cga-mlc.pdf
**Pins:**
- ~ [pin 2]
- ~ [pin 1]
### Z2 — [CG0603MLC-05E](https://www.flux.ai/vasyl/cg0603mlc-05e~n98.md)
- Datasheet URL: https://www.bourns.com/docs/product-datasheets/cga-mlc.pdf
- Manufacturer Name: CG0603MLC-05E
- Part Type: TVS - Varistors, MOVs
- Manufacturer Name: Bourns Inc.
**Pins:**
- ~ [pin 2]
- ~ [pin 1]
*The full schematic, PCB layout, bill of materials, and interactive design are available at [https://www.flux.ai/gonu/2-layer-jlcpcb-constraints~l3](https://www.flux.ai/gonu/2-layer-jlcpcb-constraints~l3).*
---
*Generated from [https://www.flux.ai/gonu/2-layer-jlcpcb-constraints~l3](https://www.flux.ai/gonu/2-layer-jlcpcb-constraints~l3)*