← Commit history

symbol: the part is a 3-lead SOT-89 - the shipped footprint has 3 pads and LCSC stocks this MPN in SOT-89-3 - but the symbol carried the 8-pin SOP-8 pinout. Pinout taken from this part's datasheet for its own ordering suffix. The library failed validate because the symbol declared pins the footprint has no pad for (connect-pad-unresolved), which also blocked its orderable attributes. Rebuilds the .lbr, re-derives pin 1 and pads.json.

Ray ·7fb09a4802 ·2mo ago ·parent 46c878f
4 files changed +52−118
bl78l05d.kicad_sym+4−24
@@ -1,14 +1,14 @@ (kicad_symbol_lib (version 20211014) (generator ds2sf_rect)   (symbol "BL78L05D" (in_bom yes) (on_board yes)     (property "Reference" "U" (at 0 7.62 0) (effects (font (size 1.27 1.27))))-    (property "Value" "BL78L05D" (at 0 -10.16 0) (effects (font (size 1.27 1.27))))+    (property "Value" "BL78L05D" (at 0 -5.08 0) (effects (font (size 1.27 1.27))))     (property "Footprint" "" (at 0 0 0) (effects (font (size 1.27 1.27)) hide))     (symbol "BL78L05D_0_1"-    (rectangle (start -12.70 5.08) (end 12.70 -7.62)+    (rectangle (start -12.70 5.08) (end 12.70 -2.54)       (stroke (width 0.254) (type default)) (fill (type background)))     )     (symbol "BL78L05D_1_1"-    (pin power_out line (at -17.78 2.54 0) (length 5.08)+    (pin output line (at -17.78 2.54 0) (length 5.08)       (name "OUT" (effects (font (size 1.27 1.27))))       (number "1" (effects (font (size 1.27 1.27))))     )@@ -16,29 +16,9 @@       (name "GND" (effects (font (size 1.27 1.27))))       (number "2" (effects (font (size 1.27 1.27))))     )-    (pin power_in line (at -17.78 -2.54 0) (length 5.08)-      (name "GND" (effects (font (size 1.27 1.27))))-      (number "3" (effects (font (size 1.27 1.27))))-    )-    (pin no_connect line (at -17.78 -5.08 0) (length 5.08)-      (name "NC" (effects (font (size 1.27 1.27))))-      (number "4" (effects (font (size 1.27 1.27))))-    )     (pin power_in line (at 17.78 2.54 180) (length 5.08)       (name "IN" (effects (font (size 1.27 1.27))))-      (number "8" (effects (font (size 1.27 1.27))))-    )-    (pin power_in line (at 17.78 0.00 180) (length 5.08)-      (name "GND" (effects (font (size 1.27 1.27))))-      (number "7" (effects (font (size 1.27 1.27))))-    )-    (pin power_in line (at 17.78 -2.54 180) (length 5.08)-      (name "GND" (effects (font (size 1.27 1.27))))-      (number "6" (effects (font (size 1.27 1.27))))-    )-    (pin no_connect line (at 17.78 -5.08 180) (length 5.08)-      (name "NC" (effects (font (size 1.27 1.27))))-      (number "5" (effects (font (size 1.27 1.27))))+      (number "3" (effects (font (size 1.27 1.27))))     )     )   )
bl78l05d.lbr+33−21
@@ -50,13 +50,19 @@ <layer number="98" name="Guide" color="6" fill="1" visible="yes" active="yes"/> </layers> <library>-<description>SOT-89-3 (symbol synthesized from footprint pads)</description>+<description></description> <packages>-<package name="SOT-89-3">-  <description>SOT-89-3</description>+<package name="BL78L05D">+  <description>BL78L05D</description>   <smd name="1" x="-1.9500" y="1.5000" dx="1.3000" dy="0.9000" layer="1"/>   <smd name="2" x="-1.8625" y="-0.0000" dx="1.4750" dy="0.9000" layer="1"/>   <smd name="3" x="-1.9500" y="-1.5000" dx="1.3000" dy="0.9000" layer="1"/>+  <polygon width="0.1200" layer="21">+    <vertex x="-1.7700" y="2.2100"/>+    <vertex x="-2.0100" y="2.5400"/>+    <vertex x="-1.5300" y="2.5400"/>+    <vertex x="-1.7700" y="2.2100"/>+  </polygon>   <wire x1="-1.2200" y1="2.3600" x2="1.3600" y2="2.3600" width="0.1200" layer="21"/>   <wire x1="1.3600" y1="1.3800" x2="1.3600" y2="2.3600" width="0.1200" layer="21"/>   <wire x1="1.3600" y1="-1.3800" x2="1.3600" y2="-2.3600" width="0.1200" layer="21"/>@@ -71,32 +77,38 @@ <!--adom-pin1--><polygon width="0.0500" layer="21"><vertex x="-1.7700" y="2.2100"/><vertex x="-2.0100" y="2.5400"/><vertex x="-1.5300" y="2.5400"/><vertex x="-1.7700" y="2.2100"/></polygon></package> </packages> <symbols>-<symbol name="SOT-89-3">-  <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="BL78L05D">+  <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="-2.54" width="0.254" layer="94"/>+  <wire x1="12.7" y1="-2.54" x2="-12.7" y2="-2.54" width="0.254" layer="94"/>+  <wire x1="-12.7" y1="-2.54" 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="-5.08" size="1.27" layer="96" align="top-center">&gt;VALUE</text>+  <pin name="OUT" x="-17.78" y="2.54" length="middle" direction="out"/>+  <pin name="GND" x="-17.78" y="0" length="middle" direction="pwr"/>+  <pin name="IN" x="17.78" y="2.54" length="middle" direction="pwr" rot="R180"/> </symbol> </symbols> <devicesets>-<deviceset name="SOT-89-3" prefix="U">-  <description>SOT-89-3 (symbol synthesized from footprint pads)</description>+<deviceset name="BL78L05D" prefix="U">+  <description></description>   <gates>-    <gate name="G$1" symbol="SOT-89-3" x="0" y="0"/>+    <gate name="G$1" symbol="BL78L05D" x="0" y="0"/>   </gates>   <devices>-    <device name="" package="SOT-89-3">+    <device name="" package="BL78L05D">       <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="OUT" pad="1"/>+        <connect gate="G$1" pin="GND" pad="2"/>+        <connect gate="G$1" pin="IN" pad="3"/>       </connects>-      <technologies><technology name=""/></technologies>+      <technologies>+        <technology name="">+          <attribute name="MPN" value="BL78L05D" constant="no"/>+          <attribute name="MANUFACTURER" value="BL Shanghai Belling" constant="no"/>+          <attribute name="LCSC_PN" value="C128020" constant="no"/>+        </technology>+      </technologies>     </device>   </devices> </deviceset>
pads.json+7−38
@@ -21,41 +21,10 @@  "symbol_pins": [   "1",   "2",-  "3",-  "4",-  "5",-  "6",-  "7",-  "8"+  "3"  ],  "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"-  },-  {-   "kind": "pin-has-no-pad",-   "pin": "6",-   "detail": "the symbol declares pin \"6\" but the footprint has no such pad"-  },-  {-   "kind": "pin-has-no-pad",-   "pin": "7",-   "detail": "the symbol declares pin \"7\" but the footprint has no such pad"-  },-  {-   "kind": "pin-has-no-pad",-   "pin": "8",-   "detail": "the symbol declares pin \"8\" but the footprint has no such pad"-  }- ],+ "issues": [],  "pads": [   {    "pad": "1",@@ -78,8 +47,8 @@    "thermal": false,    "pin": "1",    "name": "OUT",-   "type": "power_out",-   "description": "Regulated +5V output. Typical 5.0V (min 4.8V, max 5.2V) at Io = 1mA-70mA over 7V ≤ Vi ≤ Vmax. Maximum continuous output current 100mA. Requires ≥0.1µF ceramic bypass to GND close to the pin for stability.",+   "type": "output",+   "description": "Regulated +5V output. Typical Vo = 5.0V (±2%, 4.9V-5.1V at Tj=25°C). Output current up to 100 mA (limited by SOT-89 package power dissipation of 350 mW). A 0.1 µF bypass capacitor to GND is recommended close to the pin for stability and transient response.",    "is_pin1": true,    "source": {     "geometry": "SOT-89-3.kicad_mod",@@ -109,7 +78,7 @@    "pin": "2",    "name": "GND",    "type": "power_in",-   "description": "Ground/common reference for the regulator. Tie to system ground plane; internally connected to pins 3, 6, and 7 in the SOP8 package.",+   "description": "Ground/common reference for the regulator. Also serves as the thermal path through the SOT-89 tab.",    "is_pin1": false,    "source": {     "geometry": "SOT-89-3.kicad_mod",@@ -137,9 +106,9 @@    ],    "thermal": false,    "pin": "3",-   "name": "GND",+   "name": "IN",    "type": "power_in",-   "description": "Ground/common reference (internally tied to pins 2, 6, 7). Additional GND pins improve thermal dissipation via the PCB.",+   "description": "Unregulated input supply. Recommended operating range 7V ≤ Vi ≤ 20V; absolute maximum 35V. Dropout voltage is typically 1.7V. A 0.33 µF input bypass capacitor to GND is recommended close to the pin.",    "is_pin1": false,    "source": {     "geometry": "SOT-89-3.kicad_mod",
page.json+8−35
@@ -15,7 +15,7 @@     "mpn": "BL78L05D",     "manufacturer": "BL Shanghai Belling",     "package": "SOT-89-3",-    "pin_count": 8,+    "pin_count": 3,     "category": "PMIC",     "subcategory": "Voltage Regulators - Linear, Low Drop Out (LDO) Regulators",     "datasheet": "https://datasheet.lcsc.com/datasheet/pdf/75ea63eb73784cf7921a4348de24e58e.pdf",@@ -33,50 +33,23 @@       {         "number": "1",         "name": "OUT",-        "type": "power_out",-        "description": "Regulated +5V output. Typical 5.0V (min 4.8V, max 5.2V) at Io = 1mA-70mA over 7V \u2264 Vi \u2264 Vmax. Maximum continuous output current 100mA. Requires \u22650.1\u00b5F ceramic bypass to GND close to the pin for stability."+        "type": "output",+        "description": "Regulated +5V output. Typical Vo = 5.0V (\u00b12%, 4.9V-5.1V at Tj=25\u00b0C). Output current up to 100 mA (limited by SOT-89 package power dissipation of 350 mW). A 0.1 \u00b5F bypass capacitor to GND is recommended close to the pin for stability and transient response.",+        "group": "POWER"       },       {         "number": "2",         "name": "GND",         "type": "power_in",-        "description": "Ground/common reference for the regulator. Tie to system ground plane; internally connected to pins 3, 6, and 7 in the SOP8 package."+        "description": "Ground/common reference for the regulator. Also serves as the thermal path through the SOT-89 tab.",+        "group": "GROUND"       },       {         "number": "3",-        "name": "GND",-        "type": "power_in",-        "description": "Ground/common reference (internally tied to pins 2, 6, 7). Additional GND pins improve thermal dissipation via the PCB."-      },-      {-        "number": "4",-        "name": "NC",-        "type": "unconnected",-        "description": "No internal connection. Leave floating or tie to GND; do not use as a signal node."-      },-      {-        "number": "5",-        "name": "NC",-        "type": "unconnected",-        "description": "No internal connection. Leave floating or tie to GND; do not use as a signal node."-      },-      {-        "number": "6",-        "name": "GND",-        "type": "power_in",-        "description": "Ground/common reference (internally tied to pins 2, 3, 7). Additional GND pins improve thermal dissipation via the PCB."-      },-      {-        "number": "7",-        "name": "GND",-        "type": "power_in",-        "description": "Ground/common reference (internally tied to pins 2, 3, 6). Additional GND pins improve thermal dissipation via the PCB."-      },-      {-        "number": "8",         "name": "IN",         "type": "power_in",-        "description": "Unregulated DC input. Absolute maximum 35V; recommended operating range approximately 7V to 20V (must be at least Vout + ~1.7V dropout). Requires \u22650.33\u00b5F bypass capacitor close to the pin for input stability."+        "description": "Unregulated input supply. Recommended operating range 7V \u2264 Vi \u2264 20V; absolute maximum 35V. Dropout voltage is typically 1.7V. A 0.33 \u00b5F input bypass capacitor to GND is recommended close to the pin.",+        "group": "POWER"       }     ],     "provenance": {