← Commit history

footprint: the datasheet shows TO220-5L - 5 leads at 1.71mm pitch, matching the symbol's 5 pins - on a 3-pad TO-220-3 footprint. Chosen from this part's OWN datasheet, not inferred from a sibling - the Richtek SOP-8-EP parts alone carry three different exposed-pad sizes, so family inference would have been wrong. Rebuilds the .lbr, re-derives pin 1 and pads.json.

Ray ·df9280490e ·1mo ago ·parent 8bfee5a
3 files changed +326−259
pads.json+68−27
@@ -1,9 +1,9 @@ {  "schema": "adom.pads/1",  "slug": "xl4016e1",- "footprint": "TO-220-3_Vertical",+ "footprint": "TO-220-5_Vertical",  "generated_from": {-  "footprint": "TO-220-3_Vertical@sha256:0c6681bb273696ad",+  "footprint": "TO-220-5_Vertical@sha256:a737451a2d5a5179",   "pins": "page.json:component.pins",   "overrides": null  },@@ -15,9 +15,9 @@   ],   "corner": "bottom-right",   "source": "pad-position",-  "derived_from": "TO-220-3_Vertical@sha256:0c6681bb273696ad"+  "derived_from": "TO-220-5_Vertical@sha256:a737451a2d5a5179"  },- "pad_count": 3,+ "pad_count": 5,  "symbol_pins": [   "1",   "2",@@ -26,18 +26,7 @@   "5"  ],  "paste_apertures": 0,- "issues": [-  {-   "kind": "pin-has-no-pad",-   "pin": "4",-   "detail": "the symbol declares pin \"4\" but the footprint has no such pad"-  },-  {-   "kind": "pin-has-no-pad",-   "pin": "5",-   "detail": "the symbol declares pin \"5\" but the footprint has no such pad"-  }- ],+ "issues": [],  "pads": [   {    "pad": "1",@@ -49,8 +38,8 @@    ],    "rot": 0.0,    "size": [-    1.905,-    2.0+    1.275,+    1.8    ],    "layers": [],    "thermal": false,@@ -60,7 +49,7 @@    "description": "Ground reference pin for the device (0V return).",    "is_pin1": true,    "source": {-    "geometry": "TO-220-3_Vertical.kicad_mod",+    "geometry": "TO-220-5_Vertical.kicad_mod",     "meaning": "page.json:component.pins",     "correspondence": "kicad: symbol pin number == pad name"    }@@ -70,13 +59,13 @@    "kind": "thru_hole",    "shape": "oval",    "at": [-    2.54,+    1.7,     0.0    ],    "rot": 0.0,    "size": [-    1.905,-    2.0+    1.275,+    1.8    ],    "layers": [],    "thermal": false,@@ -86,7 +75,7 @@    "description": "Feedback input for output voltage regulation. An external resistor divider from VOUT sets the output; internal reference is 1.25V. VOUT = 1.25 * (1 + R2/R1). Absolute max 7V.",    "is_pin1": false,    "source": {-    "geometry": "TO-220-3_Vertical.kicad_mod",+    "geometry": "TO-220-5_Vertical.kicad_mod",     "meaning": "page.json:component.pins",     "correspondence": "kicad: symbol pin number == pad name"    }@@ -96,13 +85,13 @@    "kind": "thru_hole",    "shape": "oval",    "at": [-    5.08,+    3.4,     0.0    ],    "rot": 0.0,    "size": [-    1.905,-    2.0+    1.275,+    1.8    ],    "layers": [],    "thermal": false,@@ -112,7 +101,59 @@    "description": "Power switch output node (drain of internal PMOS). Connects to the external inductor and freewheeling Schottky diode. Also connected internally to the exposed metal tab. Peak switch current up to 12A (14A typ limit).",    "is_pin1": false,    "source": {-    "geometry": "TO-220-3_Vertical.kicad_mod",+    "geometry": "TO-220-5_Vertical.kicad_mod",+    "meaning": "page.json:component.pins",+    "correspondence": "kicad: symbol pin number == pad name"+   }+  },+  {+   "pad": "4",+   "kind": "thru_hole",+   "shape": "oval",+   "at": [+    5.1,+    0.0+   ],+   "rot": 0.0,+   "size": [+    1.275,+    1.8+   ],+   "layers": [],+   "thermal": false,+   "pin": "4",+   "name": "VC",+   "type": "passive",+   "description": "Internal voltage regulator bypass pin. Connect a 1uF ceramic capacitor between VIN and VC.",+   "is_pin1": false,+   "source": {+    "geometry": "TO-220-5_Vertical.kicad_mod",+    "meaning": "page.json:component.pins",+    "correspondence": "kicad: symbol pin number == pad name"+   }+  },+  {+   "pad": "5",+   "kind": "thru_hole",+   "shape": "oval",+   "at": [+    6.8,+    0.0+   ],+   "rot": 0.0,+   "size": [+    1.275,+    1.8+   ],+   "layers": [],+   "thermal": false,+   "pin": "5",+   "name": "VIN",+   "type": "power_in",+   "description": "Power supply input, DC 8V to 36V recommended operating range (40V absolute max). Requires a bulk electrolytic capacitor to GND (e.g. 470uF/50V) to reduce input noise.",+   "is_pin1": false,+   "source": {+    "geometry": "TO-220-5_Vertical.kicad_mod",     "meaning": "page.json:component.pins",     "correspondence": "kicad: symbol pin number == pad name"    }
xl4016e1.kicad_mod+207−193
@@ -1,193 +1,207 @@-(footprint "TO-220-3_Vertical"-	(version 20260206)-	(generator "kicad-footprint-generator")-	(layer "F.Cu")-	(descr "TO-220-3, Vertical, RM 2.54mm, see https://www.vishay.com/docs/66542/to-220-1.pdf")-	(tags "TO-220-3 Vertical RM 2.54mm")-	(property "Reference" "REF**"-		(at 2.54 -4.1 0)-		(layer "F.SilkS")-		(effects-			(font-				(size 1 1)-				(thickness 0.15)-			)-		)-	)-	(property "Value" "TO-220-3_Vertical"-		(at 2.54 2.2 0)-		(layer "F.Fab")-		(effects-			(font-				(size 1 1)-				(thickness 0.15)-			)-		)-	)-	(property "KiLib_Generator" "package/TO_SOT/THT"-		(at 0 0 0)-		(layer "F.SilkS")-		(hide yes)-		(effects-			(font-				(size 1 1)-				(thickness 0.15)-			)-		)-	)-	(attr through_hole)-	(duplicate_pad_numbers_are_jumpers no)-	(fp_line-		(start -2.57 -3.26)-		(end 7.65 -3.26)-		(stroke-			(width 0.12)-			(type solid)-		)-		(layer "F.SilkS")-	)-	(fp_line-		(start -2.57 -1.88)-		(end 7.65 -1.88)-		(stroke-			(width 0.12)-			(type solid)-		)-		(layer "F.SilkS")-	)-	(fp_line-		(start -2.57 1.36)-		(end -2.57 -3.26)-		(stroke-			(width 0.12)-			(type solid)-		)-		(layer "F.SilkS")-	)-	(fp_line-		(start 0.69 -3.26)-		(end 0.69 -1.88)-		(stroke-			(width 0.12)-			(type solid)-		)-		(layer "F.SilkS")-	)-	(fp_line-		(start 4.39 -3.26)-		(end 4.39 -1.88)-		(stroke-			(width 0.12)-			(type solid)-		)-		(layer "F.SilkS")-	)-	(fp_line-		(start 7.65 -3.26)-		(end 7.65 1.36)-		(stroke-			(width 0.12)-			(type solid)-		)-		(layer "F.SilkS")-	)-	(fp_line-		(start 7.65 1.36)-		(end -2.57 1.36)-		(stroke-			(width 0.12)-			(type solid)-		)-		(layer "F.SilkS")-	)-	(fp_rect-		(start -2.71 -3.4)-		(end 7.79 1.5)-		(stroke-			(width 0.05)-			(type solid)-		)-		(fill no)-		(layer "F.CrtYd")-	)-	(fp_line-		(start -2.46 -1.88)-		(end 7.54 -1.88)-		(stroke-			(width 0.1)-			(type solid)-		)-		(layer "F.Fab")-	)-	(fp_line-		(start 0.69 -3.15)-		(end 0.69 -1.88)-		(stroke-			(width 0.1)-			(type solid)-		)-		(layer "F.Fab")-	)-	(fp_line-		(start 4.39 -3.15)-		(end 4.39 -1.88)-		(stroke-			(width 0.1)-			(type solid)-		)-		(layer "F.Fab")-	)-	(fp_rect-		(start -2.46 -3.15)-		(end 7.54 1.25)-		(stroke-			(width 0.1)-			(type solid)-		)-		(fill no)-		(layer "F.Fab")-	)-	(fp_text user "${REFERENCE}"-		(at 2.54 -0.95 0)-		(layer "F.Fab")-		(effects-			(font-				(size 1 1)-				(thickness 0.15)-			)-		)-	)-	(pad "1" thru_hole rect-		(at 0 0)-		(size 1.905 2)-		(drill 1.1)-		(layers "*.Cu" "*.Mask")-		(remove_unused_layers no)-	)-	(pad "2" thru_hole oval-		(at 2.54 0)-		(size 1.905 2)-		(drill 1.1)-		(layers "*.Cu" "*.Mask")-		(remove_unused_layers no)-	)-	(pad "3" thru_hole oval-		(at 5.08 0)-		(size 1.905 2)-		(drill 1.1)-		(layers "*.Cu" "*.Mask")-		(remove_unused_layers no)-	)-	(embedded_fonts no)-	(model "${KICAD10_3DMODEL_DIR}/Package_TO_SOT_THT.3dshapes/TO-220-3_Vertical.step"-		(offset-			(xyz 0 0 0)-		)-		(scale-			(xyz 1 1 1)-		)-		(rotate-			(xyz 0 0 0)-		)-	)-)+(footprint "TO-220-5_Vertical"
+	(version 20260206)
+	(generator "kicad-footprint-generator")
+	(layer "F.Cu")
+	(descr "TO-220-5, Vertical, RM 1.7mm, Pentawatt, see http://www.analog.com/media/en/package-pcb-resources/package/pkg_pdf/ltc-legacy-to-220/to-220_5_05-08-1421_straight_lead.pdf")
+	(tags "TO-220-5 Vertical RM 1.7mm Pentawatt")
+	(property "Reference" "REF**"
+		(at 3.4 -4.1 0)
+		(layer "F.SilkS")
+		(effects
+			(font
+				(size 1 1)
+				(thickness 0.15)
+			)
+		)
+	)
+	(property "Value" "TO-220-5_Vertical"
+		(at 3.4 2.2 0)
+		(layer "F.Fab")
+		(effects
+			(font
+				(size 1 1)
+				(thickness 0.15)
+			)
+		)
+	)
+	(property "KiLib_Generator" "package/TO_SOT/THT"
+		(at 0 0 0)
+		(layer "F.SilkS")
+		(hide yes)
+		(effects
+			(font
+				(size 1 1)
+				(thickness 0.15)
+			)
+		)
+	)
+	(attr through_hole)
+	(duplicate_pad_numbers_are_jumpers no)
+	(fp_line
+		(start -1.71 -3.26)
+		(end 8.51 -3.26)
+		(stroke
+			(width 0.12)
+			(type solid)
+		)
+		(layer "F.SilkS")
+	)
+	(fp_line
+		(start -1.71 -1.88)
+		(end 8.51 -1.88)
+		(stroke
+			(width 0.12)
+			(type solid)
+		)
+		(layer "F.SilkS")
+	)
+	(fp_line
+		(start -1.71 1.36)
+		(end -1.71 -3.26)
+		(stroke
+			(width 0.12)
+			(type solid)
+		)
+		(layer "F.SilkS")
+	)
+	(fp_line
+		(start 1.55 -3.26)
+		(end 1.55 -1.88)
+		(stroke
+			(width 0.12)
+			(type solid)
+		)
+		(layer "F.SilkS")
+	)
+	(fp_line
+		(start 5.25 -3.26)
+		(end 5.25 -1.88)
+		(stroke
+			(width 0.12)
+			(type solid)
+		)
+		(layer "F.SilkS")
+	)
+	(fp_line
+		(start 8.51 -3.26)
+		(end 8.51 1.36)
+		(stroke
+			(width 0.12)
+			(type solid)
+		)
+		(layer "F.SilkS")
+	)
+	(fp_line
+		(start 8.51 1.36)
+		(end -1.71 1.36)
+		(stroke
+			(width 0.12)
+			(type solid)
+		)
+		(layer "F.SilkS")
+	)
+	(fp_rect
+		(start -1.85 -3.4)
+		(end 8.65 1.5)
+		(stroke
+			(width 0.05)
+			(type solid)
+		)
+		(fill no)
+		(layer "F.CrtYd")
+	)
+	(fp_line
+		(start -1.6 -1.88)
+		(end 8.4 -1.88)
+		(stroke
+			(width 0.1)
+			(type solid)
+		)
+		(layer "F.Fab")
+	)
+	(fp_line
+		(start 1.55 -3.15)
+		(end 1.55 -1.88)
+		(stroke
+			(width 0.1)
+			(type solid)
+		)
+		(layer "F.Fab")
+	)
+	(fp_line
+		(start 5.25 -3.15)
+		(end 5.25 -1.88)
+		(stroke
+			(width 0.1)
+			(type solid)
+		)
+		(layer "F.Fab")
+	)
+	(fp_rect
+		(start -1.6 -3.15)
+		(end 8.4 1.25)
+		(stroke
+			(width 0.1)
+			(type solid)
+		)
+		(fill no)
+		(layer "F.Fab")
+	)
+	(fp_text user "${REFERENCE}"
+		(at 3.4 -0.95 0)
+		(layer "F.Fab")
+		(effects
+			(font
+				(size 1 1)
+				(thickness 0.15)
+			)
+		)
+	)
+	(pad "1" thru_hole rect
+		(at 0 0)
+		(size 1.275 1.8)
+		(drill 1.1)
+		(layers "*.Cu" "*.Mask")
+		(remove_unused_layers no)
+	)
+	(pad "2" thru_hole oval
+		(at 1.7 0)
+		(size 1.275 1.8)
+		(drill 1.1)
+		(layers "*.Cu" "*.Mask")
+		(remove_unused_layers no)
+	)
+	(pad "3" thru_hole oval
+		(at 3.4 0)
+		(size 1.275 1.8)
+		(drill 1.1)
+		(layers "*.Cu" "*.Mask")
+		(remove_unused_layers no)
+	)
+	(pad "4" thru_hole oval
+		(at 5.1 0)
+		(size 1.275 1.8)
+		(drill 1.1)
+		(layers "*.Cu" "*.Mask")
+		(remove_unused_layers no)
+	)
+	(pad "5" thru_hole oval
+		(at 6.8 0)
+		(size 1.275 1.8)
+		(drill 1.1)
+		(layers "*.Cu" "*.Mask")
+		(remove_unused_layers no)
+	)
+	(embedded_fonts no)
+	(model "${KICAD10_3DMODEL_DIR}/Package_TO_SOT_THT.3dshapes/TO-220-5_Vertical.step"
+		(offset
+			(xyz 0 0 0)
+		)
+		(scale
+			(xyz 1 1 1)
+		)
+		(rotate
+			(xyz 0 0 0)
+		)
+	)
+)
xl4016e1.lbr+51−39
@@ -50,58 +50,70 @@ <layer number="98" name="Guide" color="6" fill="1" visible="yes" active="yes"/> </layers> <library>-<description>TO-220-3_Vertical (symbol synthesized from footprint pads)</description>+<description></description> <packages>-<package name="TO-220-3_Vertical">-  <description>TO-220-3_Vertical</description>-  <pad name="1" x="0.0000" y="-0.0000" drill="1.1000" diameter="2.0000" shape="square"/>-  <pad name="2" x="2.5400" y="-0.0000" drill="1.1000" diameter="2.0000" shape="long"/>-  <pad name="3" x="5.0800" y="-0.0000" drill="1.1000" diameter="2.0000" shape="long"/>-  <wire x1="-2.4600" y1="3.1500" x2="7.5400" y2="3.1500" width="0.1000" layer="51"/>-  <wire x1="7.5400" y1="3.1500" x2="7.5400" y2="-1.2500" width="0.1000" layer="51"/>-  <wire x1="7.5400" y1="-1.2500" x2="-2.4600" y2="-1.2500" width="0.1000" layer="51"/>-  <wire x1="-2.4600" y1="-1.2500" x2="-2.4600" y2="3.1500" width="0.1000" layer="51"/>-  <wire x1="-2.5700" y1="3.2600" x2="7.6500" y2="3.2600" width="0.1200" layer="21"/>-  <wire x1="-2.5700" y1="1.8800" x2="7.6500" y2="1.8800" width="0.1200" layer="21"/>-  <wire x1="-2.5700" y1="-1.3600" x2="-2.5700" y2="3.2600" width="0.1200" layer="21"/>-  <wire x1="0.6900" y1="3.2600" x2="0.6900" y2="1.8800" width="0.1200" layer="21"/>-  <wire x1="4.3900" y1="3.2600" x2="4.3900" y2="1.8800" width="0.1200" layer="21"/>-  <wire x1="7.6500" y1="3.2600" x2="7.6500" y2="-1.3600" width="0.1200" layer="21"/>-  <wire x1="7.6500" y1="-1.3600" x2="-2.5700" y2="-1.3600" width="0.1200" layer="21"/>-  <wire x1="-2.4600" y1="1.8800" x2="7.5400" y2="1.8800" width="0.1000" layer="51"/>-  <wire x1="0.6900" y1="3.1500" x2="0.6900" y2="1.8800" width="0.1000" layer="51"/>-  <wire x1="4.3900" y1="3.1500" x2="4.3900" y2="1.8800" width="0.1000" layer="51"/>+<package name="XL4016E1">+  <description>XL4016E1</description>+  <pad name="1" x="0.0000" y="-0.0000" drill="1.1000" diameter="1.8000" shape="square"/>+  <pad name="2" x="1.7000" y="-0.0000" drill="1.1000" diameter="1.8000" shape="long"/>+  <pad name="3" x="3.4000" y="-0.0000" drill="1.1000" diameter="1.8000" shape="long"/>+  <pad name="4" x="5.1000" y="-0.0000" drill="1.1000" diameter="1.8000" shape="long"/>+  <pad name="5" x="6.8000" y="-0.0000" drill="1.1000" diameter="1.8000" shape="long"/>+  <wire x1="-1.6000" y1="3.1500" x2="8.4000" y2="3.1500" width="0.1000" layer="51"/>+  <wire x1="8.4000" y1="3.1500" x2="8.4000" y2="-1.2500" width="0.1000" layer="51"/>+  <wire x1="8.4000" y1="-1.2500" x2="-1.6000" y2="-1.2500" width="0.1000" layer="51"/>+  <wire x1="-1.6000" y1="-1.2500" x2="-1.6000" y2="3.1500" width="0.1000" layer="51"/>+  <wire x1="-1.7100" y1="3.2600" x2="8.5100" y2="3.2600" width="0.1200" layer="21"/>+  <wire x1="-1.7100" y1="1.8800" x2="8.5100" y2="1.8800" width="0.1200" layer="21"/>+  <wire x1="-1.7100" y1="-1.3600" x2="-1.7100" y2="3.2600" width="0.1200" layer="21"/>+  <wire x1="1.5500" y1="3.2600" x2="1.5500" y2="1.8800" width="0.1200" layer="21"/>+  <wire x1="5.2500" y1="3.2600" x2="5.2500" y2="1.8800" width="0.1200" layer="21"/>+  <wire x1="8.5100" y1="3.2600" x2="8.5100" y2="-1.3600" width="0.1200" layer="21"/>+  <wire x1="8.5100" y1="-1.3600" x2="-1.7100" y2="-1.3600" width="0.1200" layer="21"/>+  <wire x1="-1.6000" y1="1.8800" x2="8.4000" y2="1.8800" width="0.1000" layer="51"/>+  <wire x1="1.5500" y1="3.1500" x2="1.5500" y2="1.8800" width="0.1000" layer="51"/>+  <wire x1="5.2500" y1="3.1500" x2="5.2500" y2="1.8800" width="0.1000" layer="51"/>   <text x="0" y="3.860" size="1.27" layer="25" align="bottom-center">&gt;NAME</text>   <text x="0" y="-1.960" size="1.27" layer="27" align="top-center">&gt;VALUE</text>-<!--adom-pin1--><polygon width="0.0500" layer="21"><vertex x="-0.6667" y="-1.5334"/><vertex x="0.6667" y="-1.5334"/><vertex x="0.0000" y="-2.8669"/></polygon></package>+<!--adom-pin1--><polygon width="0.0500" layer="21"><vertex x="-0.4462" y="-1.2570"/><vertex x="0.4462" y="-1.2570"/><vertex x="0.0000" y="-2.1495"/></polygon></package> </packages> <symbols>-<symbol name="TO-220-3_Vertical">-  <wire x1="-7.62" y1="3.81" x2="7.62" y2="3.81" width="0.254" layer="94"/>-  <wire x1="7.62" y1="3.81" x2="7.62" y2="-3.81" width="0.254" layer="94"/>-  <wire x1="7.62" y1="-3.81" x2="-7.62" y2="-3.81" width="0.254" layer="94"/>-  <wire x1="-7.62" y1="-3.81" x2="-7.62" y2="3.81" width="0.254" layer="94"/>-  <text x="0" y="6.35" size="1.27" layer="95" align="bottom-center">&gt;NAME</text>-  <text x="0" y="-6.35" size="1.27" layer="96" align="top-center">&gt;VALUE</text>-  <pin name="1" x="-12.7" y="2.54" length="short" direction="pas"/>-  <pin name="2" x="-12.7" y="0" length="short" direction="pas"/>-  <pin name="3" x="12.7" y="2.54" length="short" direction="pas" rot="R180"/>+<symbol name="XL4016E1">+  <wire x1="-12.7" y1="5.08" x2="12.7" y2="5.08" width="0.254" layer="94"/>+  <wire x1="12.7" y1="5.08" x2="12.7" y2="-5.08" width="0.254" layer="94"/>+  <wire x1="12.7" y1="-5.08" x2="-12.7" y2="-5.08" width="0.254" layer="94"/>+  <wire x1="-12.7" y1="-5.08" x2="-12.7" y2="5.08" width="0.254" layer="94"/>+  <text x="0" y="7.62" size="1.27" layer="95" align="bottom-center">&gt;NAME</text>+  <text x="0" y="-7.62" size="1.27" layer="96" align="top-center">&gt;VALUE</text>+  <pin name="GND" x="-17.78" y="2.54" length="middle" direction="pwr"/>+  <pin name="FB" x="-17.78" y="0" length="middle" direction="in"/>+  <pin name="SW" x="-17.78" y="-2.54" length="middle" direction="out"/>+  <pin name="VIN" x="17.78" y="0" length="middle" direction="pwr" rot="R180"/>+  <pin name="VC" x="17.78" y="-2.54" length="middle" direction="pas" rot="R180"/> </symbol> </symbols> <devicesets>-<deviceset name="TO-220-3_Vertical" prefix="U">-  <description>TO-220-3_Vertical (symbol synthesized from footprint pads)</description>+<deviceset name="XL4016E1" prefix="U">+  <description></description>   <gates>-    <gate name="G$1" symbol="TO-220-3_Vertical" x="0" y="0"/>+    <gate name="G$1" symbol="XL4016E1" x="0" y="0"/>   </gates>   <devices>-    <device name="" package="TO-220-3_Vertical">+    <device name="" package="XL4016E1">       <connects>-        <connect gate="G$1" pin="1" pad="1"/>-        <connect gate="G$1" pin="2" pad="2"/>-        <connect gate="G$1" pin="3" pad="3"/>+        <connect gate="G$1" pin="GND" pad="1"/>+        <connect gate="G$1" pin="FB" pad="2"/>+        <connect gate="G$1" pin="SW" pad="3"/>+        <connect gate="G$1" pin="VIN" pad="5"/>+        <connect gate="G$1" pin="VC" pad="4"/>       </connects>-      <technologies><technology name=""/></technologies>+      <technologies>+        <technology name="">+          <attribute name="MPN" value="XL4016E1" constant="no"/>+          <attribute name="MANUFACTURER" value="XLSEMI" constant="no"/>+          <attribute name="LCSC_PN" value="C55881" constant="no"/>+        </technology>+      </technologies>     </device>   </devices> </deviceset>