(kicad_pcb (version 20231120) (generator "pcbnew") (generator_version "8.0") (general (thickness 0.8) (legacy_teardrops no) ) (paper "A4") (layers (0 "F.Cu" signal "Top") (1 "In1.Cu" signal "GND") (2 "In2.Cu" signal "PWR") (31 "B.Cu" signal "Bottom") (32 "B.Adhes" user "B.Adhesive") (33 "F.Adhes" user "F.Adhesive") (34 "B.Paste" user) (35 "F.Paste" user) (36 "B.SilkS" user "B.Silkscreen") (37 "F.SilkS" user "F.Silkscreen") (38 "B.Mask" user) (39 "F.Mask" user) (40 "Dwgs.User" user "User.Drawings") (41 "Cmts.User" user "User.Comments") (42 "Eco1.User" user "User.Eco1") (43 "Eco2.User" user "User.Eco2") (44 "Edge.Cuts" user) (45 "Margin" user) (46 "B.CrtYd" user "B.Courtyard") (47 "F.CrtYd" user "F.Courtyard") (48 "B.Fab" user) (49 "F.Fab" user) ) (setup (stackup (layer "F.Cu" (type copper) (thickness 0.018)) (layer "dielectric 1" (type core) (thickness 0.075) (material "FR4")) (layer "In1.Cu" (type copper) (thickness 0.018)) (layer "dielectric 2" (type prepreg) (thickness 0.075) (material "FR4")) (layer "In2.Cu" (type copper) (thickness 0.018)) (layer "dielectric 3" (type core) (thickness 0.075) (material "FR4")) (layer "B.Cu" (type copper) (thickness 0.018)) (copper_finish "ENIG") (dielectric_constraints no) ) (pad_to_mask_clearance 0.05) (aux_axis_origin 0 0) (grid_origin 0 0) (pcbplotparams (layerselection 0x00010fc_ffffffff) (plot_on_all_layers_selection 0x0000000_00000000) (disableapertmacros no) (usegerberextensions no) (usegerberattributes yes) (usegerberadvancedattributes yes) (creategerberjobfile yes) (dashed_line_dash_ratio 12.000000) (dashed_line_gap_ratio 3.000000) (svgprecision 4) (plotframeref no) (viasonmask no) (mode 1) (useauxorigin no) (hpglpennumber 1) (hpglpenspeed 20) (hpglpendiameter 15.000000) (pdf_front_fp_property_popups yes) (pdf_back_fp_property_popups yes) (dxfpolygonmode yes) (dxfimperialunits yes) (dxfusepcbnewfont yes) (psnegative no) (psa4output yes) (plotreference yes) (plotvalue yes) (plotfptext yes) (plotinvisibletext no) (sketchpadsonfab no) (subtractmaskfromsilk no) (outputformat 1) (mirror no) (drillshape 1) (scaleselection 1) (outputdirectory "gerbers/") ) ) (net 0 "") (net 1 "VCC") (net 2 "GND") (net 3 "VBAT") (net 4 "VUSB") (net 5 "VSENS") (net 6 "I2C1_SCL") (net 7 "I2C1_SDA") (net 8 "SPI1_SCK") (net 9 "SPI1_MISO") (net 10 "SPI1_MOSI") (net 11 "SPI2_SCK") (net 12 "SPI2_MOSI") (net 13 "SPI4_SCK") (net 14 "SPI4_MISO") (net 15 "SPI4_MOSI") (net 16 "USART2_TX") (net 17 "USART2_RX") (net 18 "USART3_TX") (net 19 "USART3_RX") (net 20 "ADC_H2") (net 21 "ADC_BAT") (net 22 "NRST") (net 23 "BOOT0") (net 24 "SD_CS") (net 25 "DISP_CS") (net 26 "DISP_DC") (net 27 "DISP_RST") (net 28 "FLASH_CS") (net 29 "BLE_RST") (net 30 "CHRG_STAT") (net 31 "SENS_PWR") (net 32 "PUMP_CTL") (net 33 "STATUS_LED") (net 34 "SAMPLE_LED") (net 35 "USB_DM") (net 36 "USB_DP") (net 37 "HSE_IN") (net 38 "HSE_OUT") (net 39 "BTN_ANALYZE") (net 40 "BTN_POWER") (net 41 "unconnected-(U1-Pad34)") ; ======================================================================== ; Board Outline — 72 × 42 mm ; ======================================================================== (gr_line (start 0 0) (end 72 0) (stroke (width 0.1) (type default)) (layer "Edge.Cuts")) (gr_line (start 72 0) (end 72 42) (stroke (width 0.1) (type default)) (layer "Edge.Cuts")) (gr_line (start 72 42) (end 0 42) (stroke (width 0.1) (type default)) (layer "Edge.Cuts")) (gr_line (start 0 42) (end 0 0) (stroke (width 0.1) (type default)) (layer "Edge.Cuts")) ; ======================================================================== ; Silkscreen Text ; ======================================================================== (gr_text "BreathPrint v1.0" (at 36 39 0) (layer "F.SilkS") (effects (font (size 1.5 1.5) (thickness 0.15))) ) (gr_text "Author: jayis1" (at 36 37 0) (layer "F.SilkS") (effects (font (size 1.0 1.0) (thickness 0.1))) ) (gr_text "MIT License (c) 2026" (at 36 35.5 0) (layer "F.SilkS") (effects (font (size 0.8 0.8) (thickness 0.08))) ) (gr_text "Sensor Array" (at 10 5 0) (layer "F.SilkS") (effects (font (size 1.0 1.0) (thickness 0.1))) ) (gr_text "MCU" (at 36 20 0) (layer "F.SilkS") (effects (font (size 1.0 1.0) (thickness 0.1))) ) (gr_text "BLE" (at 62 30 0) (layer "F.SilkS") (effects (font (size 1.0 1.0) (thickness 0.1))) ) (gr_text "USB-C" (at 65 8 0) (layer "F.SilkS") (effects (font (size 1.0 1.0) (thickness 0.1))) ) (gr_text "OLED" (at 36 33 0) (layer "F.SilkS") (effects (font (size 1.0 1.0) (thickness 0.1))) ) (gr_text "BATT" (at 60 38 0) (layer "F.SilkS") (effects (font (size 1.0 1.0) (thickness 0.1))) ) ; ======================================================================== ; Footprints ; ======================================================================== ; --- STM32H733 MCU (LQFP-100) --- (footprint "Package_QFP:LQFP-100_14x14mm_P0.5mm" (layer "F.Cu") (at 36 20) (property "Reference" "U1") (property "Value" "STM32H733VGT6") (property "Author" "jayis1") (attr smd) (pad "1" smd roundrect (at -8 6.5) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 15 "SPI4_MOSI")) (pad "2" smd roundrect (at -8 6) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 0 "")) (pad "3" smd roundrect (at -8 5.5) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 28 "FLASH_CS")) (pad "4" smd roundrect (at -8 5) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 14 "SPI4_MISO")) (pad "5" smd roundrect (at -8 4.5) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 13 "SPI4_SCK")) (pad "6" smd roundrect (at -8 4) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 3 "VBAT")) (pad "7" smd roundrect (at -8 3.5) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 40 "BTN_POWER")) (pad "10" smd roundrect (at -8 2) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 2 "GND")) (pad "11" smd roundrect (at -8 1.5) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 1 "VCC")) (pad "12" smd roundrect (at -8 1) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 37 "HSE_IN")) (pad "13" smd roundrect (at -8 0.5) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 38 "HSE_OUT")) (pad "14" smd roundrect (at -8 0) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 22 "NRST")) (pad "15" smd roundrect (at -8 -0.5) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 20 "ADC_H2")) (pad "16" smd roundrect (at -8 -1) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 21 "ADC_BAT")) (pad "21" smd roundrect (at -8 -3.5) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 2 "GND")) (pad "22" smd roundrect (at -8 -4) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 1 "VCC")) (pad "23" smd roundrect (at -8 -4.5) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 39 "BTN_ANALYZE")) (pad "25" smd roundrect (at -8 -5.5) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 16 "USART2_TX")) (pad "26" smd roundrect (at -8 -6) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 17 "USART2_RX")) (pad "27" smd roundrect (at -8 -6.5) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 2 "GND")) (pad "28" smd roundrect (at -8 -7) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 1 "VCC")) (pad "29" smd roundrect (at -6.5 -8 90) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 24 "SD_CS")) (pad "30" smd roundrect (at -6 -8 90) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 8 "SPI1_SCK")) (pad "31" smd roundrect (at -5.5 -8 90) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 9 "SPI1_MISO")) (pad "32" smd roundrect (at -5 -8 90) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 10 "SPI1_MOSI")) (pad "41" smd roundrect (at -0.5 -8 90) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 29 "BLE_RST")) (pad "42" smd roundrect (at 0 -8 90) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 0 "DBG_TX")) (pad "43" smd roundrect (at 0.5 -8 90) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 0 "DBG_RX")) (pad "44" smd roundrect (at 1 -8 90) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 35 "USB_DM")) (pad "45" smd roundrect (at 1.5 -8 90) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 36 "USB_DP")) (pad "46" smd roundrect (at 2 -8 90) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 33 "STATUS_LED")) (pad "47" smd roundrect (at 2.5 -8 90) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 34 "SAMPLE_LED")) (pad "49" smd roundrect (at 3.5 -8 90) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 2 "GND")) (pad "50" smd roundrect (at 4 -8 90) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 1 "VCC")) (pad "51" smd roundrect (at 4.5 -8 90) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 25 "DISP_CS")) (pad "52" smd roundrect (at 5 -8 90) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 11 "SPI2_SCK")) (pad "54" smd roundrect (at 6 -8 90) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 12 "SPI2_MOSI")) (pad "56" smd roundrect (at 7 -8 90) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 27 "DISP_RST")) (pad "57" smd roundrect (at 7.5 -8 90) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 26 "DISP_DC")) (pad "74" smd roundrect (at 8 -3.5 180) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 2 "GND")) (pad "75" smd roundrect (at 8 -4 180) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 1 "VCC")) (pad "77" smd roundrect (at 8 -5 180) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 30 "CHRG_STAT")) (pad "78" smd roundrect (at 8 -5.5 180) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 18 "USART3_TX")) (pad "79" smd roundrect (at 8 -6 180) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 19 "USART3_RX")) (pad "92" smd roundrect (at 8 0.5 180) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 6 "I2C1_SCL")) (pad "93" smd roundrect (at 8 1 180) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 7 "I2C1_SDA")) (pad "94" smd roundrect (at 8 1.5 180) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 23 "BOOT0")) (pad "95" smd roundrect (at 8 2 180) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 31 "SENS_PWR")) (pad "96" smd roundrect (at 8 2.5 180) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 32 "PUMP_CTL")) (pad "99" smd roundrect (at 8 4 180) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 2 "GND")) (pad "100" smd roundrect (at 8 4.5 180) (size 1.5 0.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 1 "VCC")) ) ; --- BME688 #1 (Acetone) --- (footprint "Package_LCC:Bosch_LCC-8_3.6x4.2mm_P1.2mm" (layer "F.Cu") (at 8 8) (property "Reference" "U2") (property "Value" "BME688") (property "Author" "jayis1") (attr smd) (pad "1" smd roundrect (at -1.2 1.4) (size 0.6 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 1 "VCC")) (pad "2" smd roundrect (at 0 1.4) (size 0.6 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 2 "GND")) (pad "3" smd roundrect (at 1.2 1.4) (size 0.6 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 1 "VCC")) (pad "4" smd roundrect (at 1.2 -1.4) (size 0.6 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 6 "I2C1_SCL")) (pad "5" smd roundrect (at 0 -1.4) (size 0.6 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 7 "I2C1_SDA")) (pad "6" smd roundrect (at -1.2 -1.4) (size 0.6 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 2 "GND")) (pad "7" smd roundrect (at -1.2 0) (size 0.6 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 2 "GND")) (pad "8" smd roundrect (at 1.2 0) (size 0.6 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 1 "VCC")) ) ; --- BME688 #2 (Isoprene) --- (footprint "Package_LCC:Bosch_LCC-8_3.6x4.2mm_P1.2mm" (layer "F.Cu") (at 8 14) (property "Reference" "U3") (property "Value" "BME688") (property "Author" "jayis1") (attr smd) (pad "1" smd roundrect (at -1.2 1.4) (size 0.6 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 1 "VCC")) (pad "2" smd roundrect (at 0 1.4) (size 0.6 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 2 "GND")) (pad "3" smd roundrect (at 1.2 1.4) (size 0.6 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 1 "VCC")) (pad "4" smd roundrect (at 1.2 -1.4) (size 0.6 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 6 "I2C1_SCL")) (pad "5" smd roundrect (at 0 -1.4) (size 0.6 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 7 "I2C1_SDA")) (pad "6" smd roundrect (at -1.2 -1.4) (size 0.6 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 1 "VCC")) (pad "7" smd roundrect (at -1.2 0) (size 0.6 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 2 "GND")) (pad "8" smd roundrect (at 1.2 0) (size 0.6 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 1 "VCC")) ) ; --- SCD41 (CO2) --- (footprint "Sensor:Sensirion_SCD41" (layer "F.Cu") (at 8 22) (property "Reference" "U4") (property "Value" "SCD41") (property "Author" "jayis1") (attr smd) (pad "1" smd roundrect (at -3 -1.5) (size 1 1) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 1 "VCC")) (pad "2" smd roundrect (at -3 1.5) (size 1 1) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 2 "GND")) (pad "3" smd roundrect (at 3 -1.5) (size 1 1) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 6 "I2C1_SCL")) (pad "4" smd roundrect (at 3 1.5) (size 1 1) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 7 "I2C1_SDA")) ) ; --- W25Q64 Flash --- (footprint "Package_SO:SOIC-8_5.27x5.27mm_P1.27mm" (layer "F.Cu") (at 58 8) (property "Reference" "U5") (property "Value" "W25Q64JVSIQ") (property "Author" "jayis1") (attr smd) (pad "1" smd roundrect (at -3.81 -1.905) (size 1.5 0.6) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 28 "FLASH_CS")) (pad "2" smd roundrect (at -3.81 -0.635) (size 1.5 0.6) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 14 "SPI4_MISO")) (pad "3" smd roundrect (at -3.81 0.635) (size 1.5 0.6) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 1 "VCC")) (pad "4" smd roundrect (at -3.81 1.905) (size 1.5 0.6) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 2 "GND")) (pad "5" smd roundrect (at 3.81 1.905) (size 1.5 0.6) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 15 "SPI4_MOSI")) (pad "6" smd roundrect (at 3.81 0.635) (size 1.5 0.6) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 13 "SPI4_SCK")) (pad "7" smd roundrect (at 3.81 -0.635) (size 1.5 0.6) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 1 "VCC")) (pad "8" smd roundrect (at 3.81 -1.905) (size 1.5 0.6) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 1 "VCC")) ) ; --- MCP73831 Charger --- (footprint "Package_TO_SOT_SMD:SOT-23-5" (layer "F.Cu") (at 62 30) (property "Reference" "U6") (property "Value" "MCP73831T-2ACI") (property "Author" "jayis1") (attr smd) (pad "1" smd roundrect (at -1.3 -0.95) (size 1.1 0.6) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 30 "CHRG_STAT")) (pad "2" smd roundrect (at -1.3 0) (size 1.1 0.6) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 2 "GND")) (pad "3" smd roundrect (at -1.3 0.95) (size 1.1 0.6) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 3 "VBAT")) (pad "4" smd roundrect (at 1.3 0.95) (size 1.1 0.6) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 4 "VUSB")) (pad "5" smd roundrect (at 1.3 -0.95) (size 1.1 0.6) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 2 "GND")) ) ; --- TPS63031 Buck-Boost --- (footprint "Package_SON:VSON-10-1EP_3x3mm_P0.5mm_EP1.65x2.35mm" (layer "F.Cu") (at 62 36) (property "Reference" "U7") (property "Value" "TPS63031DSKR") (property "Author" "jayis1") (attr smd) (pad "1" smd roundrect (at -1.5 -1) (size 0.6 0.25) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 3 "VBAT")) (pad "2" smd roundrect (at -1.5 -0.5) (size 0.6 0.25) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 3 "VBAT")) (pad "3" smd roundrect (at -1.5 0) (size 0.6 0.25) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 2 "GND")) (pad "4" smd roundrect (at -1.5 0.5) (size 0.6 0.25) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 2 "GND")) (pad "5" smd roundrect (at -1.5 1) (size 0.6 0.25) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 1 "VCC")) (pad "6" smd roundrect (at 1.5 1) (size 0.6 0.25) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 1 "VCC")) (pad "7" smd roundrect (at 1.5 0.5) (size 0.6 0.25) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 2 "GND")) (pad "8" smd roundrect (at 1.5 0) (size 0.6 0.25) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 2 "GND")) (pad "9" smd roundrect (at 1.5 -0.5) (size 0.6 0.25) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 1 "VCC")) (pad "10" smd roundrect (at 1.5 -1) (size 0.6 0.25) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 1 "VCC")) (pad "11" smd roundrect (at 0 0) (size 1.65 2.35) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 2 "GND")) ) ; --- USB-C Connector --- (footprint "Connector_USB:USB_C_Receptacle_GCT_USB4085" (layer "F.Cu") (at 65 5) (property "Reference" "J1") (property "Value" "USB-C") (property "Author" "jayis1") (attr smd) (pad "A1" smd roundrect (at -3.2 -2.6) (size 0.3 1.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 2 "GND")) (pad "A4" smd roundrect (at -2.2 -2.6) (size 0.3 1.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 4 "VUSB")) (pad "A5" smd roundrect (at -1.2 -2.6) (size 0.3 1.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 0 "CC1")) (pad "A6" smd roundrect (at -0.5 -2.6) (size 0.3 1.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 36 "USB_DP")) (pad "A7" smd roundrect (at 0.5 -2.6) (size 0.3 1.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 35 "USB_DM")) (pad "B1" smd roundrect (at 3.2 -2.6) (size 0.3 1.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 2 "GND")) (pad "B4" smd roundrect (at 2.2 -2.6) (size 0.3 1.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 4 "VUSB")) (pad "B5" smd roundrect (at 1.2 -2.6) (size 0.3 1.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 0 "CC2")) ) ; --- Crystal 16 MHz --- (footprint "Crystal:Crystal_SMD_3225-4Pin_3.2x2.5mm" (layer "F.Cu") (at 28 12) (property "Reference" "Y1") (property "Value" "16MHz") (property "Author" "jayis1") (attr smd) (pad "1" smd roundrect (at -1.1 0.8) (size 1.2 1) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 37 "HSE_IN")) (pad "2" smd roundrect (at 1.1 0.8) (size 1.2 1) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 2 "GND")) (pad "3" smd roundrect (at 1.1 -0.8) (size 1.2 1) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 38 "HSE_OUT")) (pad "4" smd roundrect (at -1.1 -0.8) (size 1.2 1) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 2 "GND")) ) ; --- Decoupling Capacitor C1 --- (footprint "Capacitor_SMD:C_0402_1005Metric" (layer "F.Cu") (at 28 20) (property "Reference" "C1") (property "Value" "100nF") (property "Author" "jayis1") (attr smd) (pad "1" smd roundrect (at -0.425 0) (size 0.5 0.55) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 1 "VCC")) (pad "2" smd roundrect (at 0.425 0) (size 0.5 0.55) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 2 "GND")) ) ; --- I2C Pull-up R1 --- (footprint "Resistor_SMD:R_0402_1005Metric" (layer "F.Cu") (at 14 5) (property "Reference" "R1") (property "Value" "4.7k") (property "Author" "jayis1") (attr smd) (pad "1" smd roundrect (at -0.425 0) (size 0.5 0.55) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 1 "VCC")) (pad "2" smd roundrect (at 0.425 0) (size 0.5 0.55) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 6 "I2C1_SCL")) ) ; --- I2C Pull-up R2 --- (footprint "Resistor_SMD:R_0402_1005Metric" (layer "F.Cu") (at 14 7) (property "Reference" "R2") (property "Value" "4.7k") (property "Author" "jayis1") (attr smd) (pad "1" smd roundrect (at -0.425 0) (size 0.5 0.55) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 1 "VCC")) (pad "2" smd roundrect (at 0.425 0) (size 0.5 0.55) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 7 "I2C1_SDA")) ) ; --- Status LED --- (footprint "LED_SMD:LED_0603_1608Metric" (layer "F.Cu") (at 50 28) (property "Reference" "D1") (property "Value" "Status_LED") (property "Author" "jayis1") (attr smd) (pad "1" smd roundrect (at -0.8 0) (size 0.8 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 33 "STATUS_LED")) (pad "2" smd roundrect (at 0.8 0) (size 0.8 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 2 "GND")) ) ; --- Sample LED --- (footprint "LED_SMD:LED_0603_1608Metric" (layer "F.Cu") (at 50 31) (property "Reference" "D2") (property "Value" "Sample_LED") (property "Author" "jayis1") (attr smd) (pad "1" smd roundrect (at -0.8 0) (size 0.8 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 34 "SAMPLE_LED")) (pad "2" smd roundrect (at 0.8 0) (size 0.8 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 2 "GND")) ) ; --- User Button --- (footprint "Button_Switch_SMD:SW_Push_1P1T_NO_6x6mm_H9.5mm" (layer "F.Cu") (at 20 33) (property "Reference" "SW1") (property "Value" "Analyze_BTN") (property "Author" "jayis1") (attr smd) (pad "1" smd roundrect (at -3.5 -2.5) (size 1.5 2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 39 "BTN_ANALYZE")) (pad "2" smd roundrect (at 3.5 -2.5) (size 1.5 2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 2 "GND")) (pad "3" smd roundrect (at -3.5 2.5) (size 1.5 2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 39 "BTN_ANALYZE")) (pad "4" smd roundrect (at 3.5 2.5) (size 1.5 2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 2 "GND")) ) ; --- OLED Display --- (footprint "Display:SSD1306_0.96in_128x64" (layer "F.Cu") (at 36 34) (property "Reference" "U8") (property "Value" "SSD1306_128x64") (property "Author" "jayis1") (attr smd) (pad "1" smd roundrect (at -8 -2) (size 1.5 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 1 "VCC")) (pad "2" smd roundrect (at -8 -1) (size 1.5 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 2 "GND")) (pad "3" smd roundrect (at -8 0) (size 1.5 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 25 "DISP_CS")) (pad "4" smd roundrect (at -8 1) (size 1.5 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 26 "DISP_DC")) (pad "5" smd roundrect (at -8 2) (size 1.5 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 27 "DISP_RST")) (pad "6" smd roundrect (at 8 -2) (size 1.5 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 11 "SPI2_SCK")) (pad "7" smd roundrect (at 8 0) (size 1.5 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (net 12 "SPI2_MOSI")) ) ; ======================================================================== ; Vias (GND stitching) ; ======================================================================== (via (at 5 5) (size 0.6) (drill 0.3) (layers "F.Cu" "B.Cu") (net 2)) (via (at 5 37) (size 0.6) (drill 0.3) (layers "F.Cu" "B.Cu") (net 2)) (via (at 67 5) (size 0.6) (drill 0.3) (layers "F.Cu" "B.Cu") (net 2)) (via (at 67 37) (size 0.6) (drill 0.3) (layers "F.Cu" "B.Cu") (net 2)) (via (at 36 20) (size 0.6) (drill 0.3) (layers "F.Cu" "B.Cu") (net 2)) (via (at 30 25) (size 0.6) (drill 0.3) (layers "F.Cu" "B.Cu") (net 2)) (via (at 42 25) (size 0.6) (drill 0.3) (layers "F.Cu" "B.Cu") (net 2)) (via (at 36 15) (size 0.6) (drill 0.3) (layers "F.Cu" "B.Cu") (net 2)) (via (at 36 25) (size 0.6) (drill 0.3) (layers "F.Cu" "B.Cu") (net 2)) ; ======================================================================== ; Zones (GND pour) ; ======================================================================== (zone (net 2) (net_name "GND") (layer "B.Cu") (tstamp 0) (hatch edge 0.5) (connect_pads (clearance 0.2)) (min_thickness 0.15) (fill yes (thermal_gap 0.2) (thermal_bridge_width 0.3)) (polygon (pts (xy 0 0) (xy 72 0) (xy 72 42) (xy 0 42)) ) ) (zone (net 2) (net_name "GND") (layer "In1.Cu") (tstamp 1) (hatch edge 0.5) (connect_pads (clearance 0.2)) (min_thickness 0.15) (fill yes (thermal_gap 0.2) (thermal_bridge_width 0.3)) (polygon (pts (xy 0 0) (xy 72 0) (xy 72 42) (xy 0 42)) ) ) (zone (net 1) (net_name "VCC") (layer "In2.Cu") (tstamp 2) (hatch edge 0.5) (connect_pads (clearance 0.2)) (min_thickness 0.15) (fill yes (thermal_gap 0.2) (thermal_bridge_width 0.3)) (polygon (pts (xy 1 1) (xy 71 1) (xy 71 41) (xy 1 41)) ) ) ; ======================================================================== ; Design rules ; ======================================================================== (rule "min_track_width" (condition "A.NetClass == 'Default'") (constraint track_width (min 0.15))) (rule "min_clearance" (condition "A.NetClass == 'Default'") (constraint clearance (min 0.15))) )