← Commit history

orderable attributes: rebuild .lbr with adom-lbr 2.18.0 so MPN, MANUFACTURER and the distributor part numbers reach <technology> (LCSC_PN C725791). The published library carried no attributes at all, so a BOM had nothing to buy from. Distributor PNs matched on exact MPN AND corroborating manufacturer.

Ray ·9868fefe0e ·1mo ago ·parent 8491f97
2 files changed +30−10
page.json+6−4
@@ -26,7 +26,9 @@       "model_3d_step": "tp4057.step",       "lbr": "tp4057.lbr"     },-    "distributor_links": {},+    "distributor_links": {+      "lcsc": "C725791"+    },     "pins": [       {         "number": "1",@@ -44,13 +46,13 @@         "number": "3",         "name": "BAT",         "type": "power_out",-        "description": "Battery terminal. Connects to the positive terminal of the single-cell Li-ion battery; regulates to V_FLOAT = 4.24 V (±1%) at up to 500 mA charge current. Absolute max -0.3 V to 6.5 V; max sink current 600 mA."+        "description": "Battery terminal. Connects to the positive terminal of the single-cell Li-ion battery; regulates to V_FLOAT = 4.24 V (\u00b11%) at up to 500 mA charge current. Absolute max -0.3 V to 6.5 V; max sink current 600 mA."       },       {         "number": "4",         "name": "VCC",         "type": "power_in",-        "description": "Input supply pin. Operating range 4.0 V to 6.5 V (absolute max -0.3 V to 6.5 V). Undervoltage lockout at ~3.8 V rising with ~200 mV hysteresis. Bypass with 4.7-10 µF to GND."+        "description": "Input supply pin. Operating range 4.0 V to 6.5 V (absolute max -0.3 V to 6.5 V). Undervoltage lockout at ~3.8 V rising with ~200 mV hysteresis. Bypass with 4.7-10 \u00b5F to GND."       },       {         "number": "5",@@ -62,7 +64,7 @@         "number": "6",         "name": "PROG",         "type": "input",-        "description": "Charge current program pin. Connect a resistor R_PROG from PROG to GND to set the constant-current charge current (R_PROG=10 kΩ → 100 mA typ; R_PROG=2 kΩ → 500 mA typ). Also serves as manual shutdown when pulled above V_MSD ≈ 1.21 V open-circuit. Pin voltage in CC mode ≈ 1.0 V; internal pull-up ≈ 2 µA."+        "description": "Charge current program pin. Connect a resistor R_PROG from PROG to GND to set the constant-current charge current (R_PROG=10 k\u03a9 \u2192 100 mA typ; R_PROG=2 k\u03a9 \u2192 500 mA typ). Also serves as manual shutdown when pulled above V_MSD \u2248 1.21 V open-circuit. Pin voltage in CC mode \u2248 1.0 V; internal pull-up \u2248 2 \u00b5A."       }     ],     "provenance": {
tp4057.lbr+24−6
@@ -60,6 +60,18 @@   <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.0000" dx="1.3250" dy="0.6000" layer="1"/>   <smd name="6" x="1.1375" y="0.9500" dx="1.3250" dy="0.6000" layer="1"/>+  <polygon width="0.1200" layer="21">+    <vertex x="-1.4500" y="1.5100"/>+    <vertex x="-1.6900" y="1.8400"/>+    <vertex x="-1.2100" y="1.8400"/>+  </polygon>+  <polygon width="0.1000" layer="51">+    <vertex x="-0.4000" y="1.4500"/>+    <vertex x="0.8000" y="1.4500"/>+    <vertex x="0.8000" y="-1.4500"/>+    <vertex x="-0.8000" y="-1.4500"/>+    <vertex x="-0.8000" y="1.0500"/>+  </polygon>   <wire x1="-0.9100" y1="1.5600" 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"/>@@ -68,7 +80,7 @@   <wire x1="0.9100" y1="-1.5600" x2="-0.9100" y2="-1.5600" width="0.1200" layer="21"/>   <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>+</package> </packages> <symbols> <symbol name="TP4057">@@ -78,10 +90,10 @@   <wire x1="-13.97" y1="-7.62" x2="-13.97" y2="7.62" width="0.254" layer="94"/>   <text x="0" y="10.16" size="1.27" layer="95" align="bottom-center">&gt;NAME</text>   <text x="0" y="-10.16" size="1.27" layer="96" align="top-center">&gt;VALUE</text>-  <pin name="~{CHRG}" x="19.05" y="2.54" length="middle" direction="oc" rot="R180"/>+  <pin name="CHRG" x="19.05" y="2.54" length="middle" direction="oc" rot="R180"/>   <pin name="GND" x="-19.05" y="-2.54" length="middle" direction="pwr"/>   <pin name="BAT" x="-19.05" y="0" length="middle" direction="out"/>-  <pin name="V_{CC}" x="-19.05" y="-5.08" length="middle" direction="pwr"/>+  <pin name="V__CC" x="-19.05" y="-5.08" length="middle" direction="pwr"/>   <pin name="STDBY" x="19.05" y="5.08" length="middle" direction="oc" rot="R180"/>   <pin name="PROG" x="-19.05" y="5.08" length="middle" direction="pas"/> </symbol>@@ -95,14 +107,20 @@   <devices>     <device name="" package="TP4057">       <connects>-        <connect gate="G$1" pin="~{CHRG}" pad="1"/>+        <connect gate="G$1" pin="CHRG" pad="1"/>         <connect gate="G$1" pin="GND" pad="2"/>         <connect gate="G$1" pin="BAT" pad="3"/>-        <connect gate="G$1" pin="V_{CC}" pad="4"/>+        <connect gate="G$1" pin="V__CC" pad="4"/>         <connect gate="G$1" pin="STDBY" pad="5"/>         <connect gate="G$1" pin="PROG" pad="6"/>       </connects>-      <technologies><technology name=""/></technologies>+      <technologies>+        <technology name="">+          <attribute name="MPN" value="TP4057" constant="no"/>+          <attribute name="MANUFACTURER" value="UMW" constant="no"/>+          <attribute name="LCSC_PN" value="C725791" constant="no"/>+        </technology>+      </technologies>     </device>   </devices> </deviceset>