← Commit history

revert footprint to SOT-23-5: the symbol pin count that justified the swap disagrees with the package, so the symbol is what needs fixing (.lbr now fails to validate - that is the symbol defect surfacing, not a footprint problem)

Ray ·d1c0c7bf09 ·2mo ago ·parent 3f4a9e2
4 files changed +135−184
ad24c02.kicad_mod+82−55
@@ -1,8 +1,8 @@-(footprint "SOT-23-8"+(footprint "SOT-23-5" 	(version 20260206) 	(generator "kicad-footprint-generator") 	(layer "F.Cu")-	(descr "SOT, 8 Pin (JEDEC MO-178 Var BA https://www.jedec.org/document_search?search_api_views_fulltext=MO-178)")+	(descr "SOT, 5 Pin (JEDEC MO-178 Var AA https://www.jedec.org/document_search?search_api_views_fulltext=MO-178)") 	(tags "SOT TO_SOT_SMD") 	(property "Reference" "REF**" 		(at 0 -2.4 0)@@ -14,7 +14,7 @@ 			) 		) 	)-	(property "Value" "SOT-23-8"+	(property "Value" "SOT-23-5" 		(at 0 2.4 0) 		(layer "F.Fab") 		(effects@@ -47,7 +47,7 @@ 		(layer "F.SilkS") 	) 	(fp_line-		(start -0.91 -1.485)+		(start -0.91 -1.51) 		(end -0.91 -1.56) 		(stroke 			(width 0.12)@@ -57,7 +57,7 @@ 	) 	(fp_line 		(start -0.91 1.56)-		(end -0.91 1.485)+		(end -0.91 1.51) 		(stroke 			(width 0.12) 			(type solid)@@ -66,7 +66,7 @@ 	) 	(fp_line 		(start 0.91 -1.56)-		(end 0.91 -1.485)+		(end 0.91 -1.51) 		(stroke 			(width 0.12) 			(type solid)@@ -74,7 +74,16 @@ 		(layer "F.SilkS") 	) 	(fp_line-		(start 0.91 1.485)+		(start 0.91 -0.39)+		(end 0.91 0.39)+		(stroke+			(width 0.12)+			(type solid)+		)+		(layer "F.SilkS")+	)+	(fp_line+		(start 0.91 1.51) 		(end 0.91 1.56) 		(stroke 			(width 0.12)@@ -93,9 +102,9 @@ 	) 	(fp_poly 		(pts-			(xy -1.45 -1.49)-			(xy -1.69 -1.82)-			(xy -1.21 -1.82)+			(xy -1.45 -1.51)+			(xy -1.69 -1.84)+			(xy -1.21 -1.84) 		) 		(stroke 			(width 0.12)@@ -105,8 +114,8 @@ 		(layer "F.SilkS") 	) 	(fp_line-		(start -2.05 -1.48)-		(end -1.05 -1.48)+		(start -2.05 -1.5)+		(end -1.05 -1.5) 		(stroke 			(width 0.05) 			(type solid)@@ -114,8 +123,8 @@ 		(layer "F.CrtYd") 	) 	(fp_line-		(start -2.05 1.48)-		(end -2.05 -1.48)+		(start -2.05 1.5)+		(end -2.05 -1.5) 		(stroke 			(width 0.05) 			(type solid)@@ -132,7 +141,7 @@ 		(layer "F.CrtYd") 	) 	(fp_line-		(start -1.05 -1.48)+		(start -1.05 -1.5) 		(end -1.05 -1.7) 		(stroke 			(width 0.05)@@ -141,8 +150,8 @@ 		(layer "F.CrtYd") 	) 	(fp_line-		(start -1.05 1.48)-		(end -2.05 1.48)+		(start -1.05 1.5)+		(end -2.05 1.5) 		(stroke 			(width 0.05) 			(type solid)@@ -151,7 +160,7 @@ 	) 	(fp_line 		(start -1.05 1.7)-		(end -1.05 1.48)+		(end -1.05 1.5) 		(stroke 			(width 0.05) 			(type solid)@@ -160,7 +169,16 @@ 	) 	(fp_line 		(start 1.05 -1.7)-		(end 1.05 -1.48)+		(end 1.05 -1.5)+		(stroke+			(width 0.05)+			(type solid)+		)+		(layer "F.CrtYd")+	)+	(fp_line+		(start 1.05 -1.5)+		(end 2.05 -1.5) 		(stroke 			(width 0.05) 			(type solid)@@ -168,8 +186,8 @@ 		(layer "F.CrtYd") 	) 	(fp_line-		(start 1.05 -1.48)-		(end 2.05 -1.48)+		(start 1.05 -0.39)+		(end 1.05 0.39) 		(stroke 			(width 0.05) 			(type solid)@@ -177,7 +195,16 @@ 		(layer "F.CrtYd") 	) 	(fp_line-		(start 1.05 1.48)+		(start 1.05 0.39)+		(end 2.05 0.39)+		(stroke+			(width 0.05)+			(type solid)+		)+		(layer "F.CrtYd")+	)+	(fp_line+		(start 1.05 1.5) 		(end 1.05 1.7) 		(stroke 			(width 0.05)@@ -195,8 +222,26 @@ 		(layer "F.CrtYd") 	) 	(fp_line-		(start 2.05 -1.48)-		(end 2.05 1.48)+		(start 2.05 -1.5)+		(end 2.05 -0.39)+		(stroke+			(width 0.05)+			(type solid)+		)+		(layer "F.CrtYd")+	)+	(fp_line+		(start 2.05 -0.39)+		(end 1.05 -0.39)+		(stroke+			(width 0.05)+			(type solid)+		)+		(layer "F.CrtYd")+	)+	(fp_line+		(start 2.05 0.39)+		(end 2.05 1.5) 		(stroke 			(width 0.05) 			(type solid)@@ -204,8 +249,8 @@ 		(layer "F.CrtYd") 	) 	(fp_line-		(start 2.05 1.48)-		(end 1.05 1.48)+		(start 2.05 1.5)+		(end 1.05 1.5) 		(stroke 			(width 0.05) 			(type solid)@@ -238,55 +283,37 @@ 		) 	) 	(pad "1" smd roundrect-		(at -1.1375 -0.975)-		(size 1.325 0.5)+		(at -1.1375 -0.95)+		(size 1.325 0.6) 		(layers "F.Cu" "F.Mask" "F.Paste") 		(roundrect_rratio 0.25) 	) 	(pad "2" smd roundrect-		(at -1.1375 -0.325)-		(size 1.325 0.5)+		(at -1.1375 0)+		(size 1.325 0.6) 		(layers "F.Cu" "F.Mask" "F.Paste") 		(roundrect_rratio 0.25) 	) 	(pad "3" smd roundrect-		(at -1.1375 0.325)-		(size 1.325 0.5)+		(at -1.1375 0.95)+		(size 1.325 0.6) 		(layers "F.Cu" "F.Mask" "F.Paste") 		(roundrect_rratio 0.25) 	) 	(pad "4" smd roundrect-		(at -1.1375 0.975)-		(size 1.325 0.5)+		(at 1.1375 0.95)+		(size 1.325 0.6) 		(layers "F.Cu" "F.Mask" "F.Paste") 		(roundrect_rratio 0.25) 	) 	(pad "5" smd roundrect-		(at 1.1375 0.975)-		(size 1.325 0.5)-		(layers "F.Cu" "F.Mask" "F.Paste")-		(roundrect_rratio 0.25)-	)-	(pad "6" smd roundrect-		(at 1.1375 0.325)-		(size 1.325 0.5)-		(layers "F.Cu" "F.Mask" "F.Paste")-		(roundrect_rratio 0.25)-	)-	(pad "7" smd roundrect-		(at 1.1375 -0.325)-		(size 1.325 0.5)-		(layers "F.Cu" "F.Mask" "F.Paste")-		(roundrect_rratio 0.25)-	)-	(pad "8" smd roundrect-		(at 1.1375 -0.975)-		(size 1.325 0.5)+		(at 1.1375 -0.95)+		(size 1.325 0.6) 		(layers "F.Cu" "F.Mask" "F.Paste") 		(roundrect_rratio 0.25) 	) 	(embedded_fonts no)-	(model "${KICAD10_3DMODEL_DIR}/Package_TO_SOT_SMD.3dshapes/SOT-23-8.step"+	(model "${KICAD10_3DMODEL_DIR}/Package_TO_SOT_SMD.3dshapes/SOT-23-5.step" 		(offset 			(xyz 0 0 0) 		)
ad24c02.lbr+13−15
@@ -54,23 +54,21 @@ <packages> <package name="AD24C02">   <description>AD24C02</description>-  <smd name="1" x="-1.1375" y="0.9750" dx="1.3250" dy="0.5000" layer="1"/>-  <smd name="2" x="-1.1375" y="0.3250" dx="1.3250" dy="0.5000" layer="1"/>-  <smd name="3" x="-1.1375" y="-0.3250" dx="1.3250" dy="0.5000" layer="1"/>-  <smd name="4" x="-1.1375" y="-0.9750" dx="1.3250" dy="0.5000" layer="1"/>-  <smd name="5" x="1.1375" y="-0.9750" dx="1.3250" dy="0.5000" layer="1"/>-  <smd name="6" x="1.1375" y="-0.3250" dx="1.3250" dy="0.5000" layer="1"/>-  <smd name="7" x="1.1375" y="0.3250" dx="1.3250" dy="0.5000" layer="1"/>-  <smd name="8" x="1.1375" y="0.9750" dx="1.3250" dy="0.5000" layer="1"/>+  <smd name="1" x="-1.1375" y="0.9500" dx="1.3250" dy="0.6000" layer="1"/>+  <smd name="2" x="-1.1375" y="-0.0000" dx="1.3250" dy="0.6000" layer="1"/>+  <smd name="3" x="-1.1375" y="-0.9500" dx="1.3250" dy="0.6000" layer="1"/>+  <smd name="4" x="1.1375" y="-0.9500" dx="1.3250" dy="0.6000" layer="1"/>+  <smd name="5" x="1.1375" y="0.9500" dx="1.3250" dy="0.6000" layer="1"/>   <wire x1="-0.9100" y1="1.5600" x2="0.9100" y2="1.5600" width="0.1200" layer="21"/>-  <wire x1="-0.9100" y1="1.4850" x2="-0.9100" y2="1.5600" width="0.1200" layer="21"/>-  <wire x1="-0.9100" y1="-1.5600" x2="-0.9100" y2="-1.4850" width="0.1200" layer="21"/>-  <wire x1="0.9100" y1="1.5600" x2="0.9100" y2="1.4850" width="0.1200" layer="21"/>-  <wire x1="0.9100" y1="-1.4850" x2="0.9100" y2="-1.5600" width="0.1200" layer="21"/>+  <wire x1="-0.9100" y1="1.5100" x2="-0.9100" y2="1.5600" width="0.1200" layer="21"/>+  <wire x1="-0.9100" y1="-1.5600" x2="-0.9100" y2="-1.5100" width="0.1200" layer="21"/>+  <wire x1="0.9100" y1="1.5600" x2="0.9100" y2="1.5100" width="0.1200" layer="21"/>+  <wire x1="0.9100" y1="0.3900" x2="0.9100" y2="-0.3900" width="0.1200" layer="21"/>+  <wire x1="0.9100" y1="-1.5100" x2="0.9100" y2="-1.5600" width="0.1200" layer="21"/>   <wire x1="0.9100" y1="-1.5600" x2="-0.9100" y2="-1.5600" width="0.1200" layer="21"/>-  <text x="0" y="2.237" size="1.27" layer="25" align="bottom-center">&gt;NAME</text>-  <text x="0" y="-2.237" size="1.27" layer="27" align="top-center">&gt;VALUE</text>-<!--adom-pin1--><polygon width="0.0500" layer="21"><vertex x="-1.4500" y="1.4900"/><vertex x="-1.6900" y="1.8200"/><vertex x="-1.2100" y="1.8200"/></polygon></package>+  <text x="0" y="2.212" size="1.27" layer="25" align="bottom-center">&gt;NAME</text>+  <text x="0" y="-2.212" size="1.27" layer="27" align="top-center">&gt;VALUE</text>+<!--adom-pin1--><polygon width="0.0500" layer="21"><vertex x="-1.4500" y="1.5100"/><vertex x="-1.6900" y="1.8400"/><vertex x="-1.2100" y="1.8400"/></polygon></package> </packages> <symbols> <symbol name="AD24C02">
pads.json+38−112
@@ -1,9 +1,9 @@ {  "schema": "adom.pads/1",  "slug": "ad24c02",- "footprint": "SOT-23-8",+ "footprint": "SOT-23-5",  "generated_from": {-  "footprint": "SOT-23-8@sha256:275a1c87693f8053",+  "footprint": "SOT-23-5@sha256:455a3f7c3e5eb5b8",   "pins": "page.json:component.pins",   "overrides": null  },@@ -11,15 +11,31 @@   "pad": "1",   "at": [    -1.1375,-   -0.975+   -0.95   ],   "corner": "top-left",   "source": "silk-marker",-  "derived_from": "SOT-23-8@sha256:275a1c87693f8053"+  "derived_from": "SOT-23-5@sha256:455a3f7c3e5eb5b8"  },- "pad_count": 8,+ "pad_count": 5,  "paste_apertures": 0,- "issues": [],+ "issues": [+  {+   "kind": "pin-has-no-pad",+   "pin": "6",+   "detail": "page.json declares pin \"6\" but the footprint has no such pad"+  },+  {+   "kind": "pin-has-no-pad",+   "pin": "7",+   "detail": "page.json declares pin \"7\" but the footprint has no such pad"+  },+  {+   "kind": "pin-has-no-pad",+   "pin": "8",+   "detail": "page.json declares pin \"8\" but the footprint has no such pad"+  }+ ],  "pads": [   {    "pad": "1",@@ -27,12 +43,12 @@    "shape": "roundrect",    "at": [     -1.1375,-    -0.975+    -0.95    ],    "rot": 0.0,    "size": [     1.325,-    0.5+    0.6    ],    "layers": [     "F.Cu",@@ -46,7 +62,7 @@    "description": "Device address input bit 0. Tied high or low to set bit1 of the 7-bit I2C slave address (device address high nibble is fixed 1010, followed by A2/A1/A0). Allows up to 8 AD24C02 devices on the same I2C bus.",    "is_pin1": true,    "source": {-    "geometry": "SOT-23-8.kicad_mod",+    "geometry": "SOT-23-5.kicad_mod",     "meaning": "page.json:component.pins",     "correspondence": "kicad: symbol pin number == pad name"    }@@ -57,12 +73,12 @@    "shape": "roundrect",    "at": [     -1.1375,-    -0.325+    0.0    ],    "rot": 0.0,    "size": [     1.325,-    0.5+    0.6    ],    "layers": [     "F.Cu",@@ -76,7 +92,7 @@    "description": "Device address input bit 1. Selects the I2C slave address together with A0 and A2.",    "is_pin1": false,    "source": {-    "geometry": "SOT-23-8.kicad_mod",+    "geometry": "SOT-23-5.kicad_mod",     "meaning": "page.json:component.pins",     "correspondence": "kicad: symbol pin number == pad name"    }@@ -87,12 +103,12 @@    "shape": "roundrect",    "at": [     -1.1375,-    0.325+    0.95    ],    "rot": 0.0,    "size": [     1.325,-    0.5+    0.6    ],    "layers": [     "F.Cu",@@ -106,7 +122,7 @@    "description": "Device address input bit 2. Selects the I2C slave address together with A0 and A1.",    "is_pin1": false,    "source": {-    "geometry": "SOT-23-8.kicad_mod",+    "geometry": "SOT-23-5.kicad_mod",     "meaning": "page.json:component.pins",     "correspondence": "kicad: symbol pin number == pad name"    }@@ -116,13 +132,13 @@    "kind": "smd",    "shape": "roundrect",    "at": [-    -1.1375,-    0.975+    1.1375,+    0.95    ],    "rot": 0.0,    "size": [     1.325,-    0.5+    0.6    ],    "layers": [     "F.Cu",@@ -136,7 +152,7 @@    "description": "Ground / power negative reference.",    "is_pin1": false,    "source": {-    "geometry": "SOT-23-8.kicad_mod",+    "geometry": "SOT-23-5.kicad_mod",     "meaning": "page.json:component.pins",     "correspondence": "kicad: symbol pin number == pad name"    }@@ -147,12 +163,12 @@    "shape": "roundrect",    "at": [     1.1375,-    0.975+    -0.95    ],    "rot": 0.0,    "size": [     1.325,-    0.5+    0.6    ],    "layers": [     "F.Cu",@@ -166,97 +182,7 @@    "description": "I2C serial data line. Open-drain bidirectional data pin; requires an external pull-up resistor to VCC (typ. 10 kΩ).",    "is_pin1": false,    "source": {-    "geometry": "SOT-23-8.kicad_mod",-    "meaning": "page.json:component.pins",-    "correspondence": "kicad: symbol pin number == pad name"-   }-  },-  {-   "pad": "6",-   "kind": "smd",-   "shape": "roundrect",-   "at": [-    1.1375,-    0.325-   ],-   "rot": 0.0,-   "size": [-    1.325,-    0.5-   ],-   "layers": [-    "F.Cu",-    "F.Mask",-    "F.Paste"-   ],-   "thermal": false,-   "pin": "6",-   "name": "SCL",-   "type": "input",-   "description": "I2C serial clock input. Drives the address/data timing; supports up to 400 kHz at 1.8V/2.5V/2.7V and 1 MHz at 5V. External pull-up to VCC required (typ. 10 kΩ).",-   "is_pin1": false,-   "source": {-    "geometry": "SOT-23-8.kicad_mod",-    "meaning": "page.json:component.pins",-    "correspondence": "kicad: symbol pin number == pad name"-   }-  },-  {-   "pad": "7",-   "kind": "smd",-   "shape": "roundrect",-   "at": [-    1.1375,-    -0.325-   ],-   "rot": 0.0,-   "size": [-    1.325,-    0.5-   ],-   "layers": [-    "F.Cu",-    "F.Mask",-    "F.Paste"-   ],-   "thermal": false,-   "pin": "7",-   "name": "WP",-   "type": "input",-   "description": "Hardware write-protect input. When tied high, memory-array writes are inhibited; when tied low (or left connected to GND), normal read/write operation is allowed.",-   "is_pin1": false,-   "source": {-    "geometry": "SOT-23-8.kicad_mod",-    "meaning": "page.json:component.pins",-    "correspondence": "kicad: symbol pin number == pad name"-   }-  },-  {-   "pad": "8",-   "kind": "smd",-   "shape": "roundrect",-   "at": [-    1.1375,-    -0.975-   ],-   "rot": 0.0,-   "size": [-    1.325,-    0.5-   ],-   "layers": [-    "F.Cu",-    "F.Mask",-    "F.Paste"-   ],-   "thermal": false,-   "pin": "8",-   "name": "VCC",-   "type": "power_in",-   "description": "Positive supply voltage, 1.8V to 5.5V (absolute max 5.5V). Recommend a 1 µF decoupling capacitor close to the pin.",-   "is_pin1": false,-   "source": {-    "geometry": "SOT-23-8.kicad_mod",+    "geometry": "SOT-23-5.kicad_mod",     "meaning": "page.json:component.pins",     "correspondence": "kicad: symbol pin number == pad name"    }
page.json+2−2
@@ -101,11 +101,11 @@       "pad": "1",       "at": [         -1.1375,-        -0.975+        -0.95       ],       "corner": "top-left",       "source": "silk-marker",-      "derived_from": "SOT-23-8@sha256:275a1c87693f8053",+      "derived_from": "SOT-23-5@sha256:455a3f7c3e5eb5b8",       "mark": "drawn"     }   },