← Commit history

pin 1: carry the footprint's marker into the .lbr, the viewer and page.json (silk-marker, drawn, top-left)

Ray ·3a4d6266b9 · ·parent 0a0713d
5 files changed +226−3
lm2596r-12.lbr+1−1
@@ -84,7 +84,7 @@   <wire x1="5.6250" y1="-5.0000" x2="4.6250" y2="-5.0000" width="0.1000" layer="51"/>   <text x="0" y="6.300" size="1.27" layer="25" align="bottom-center">&gt;NAME</text>   <text x="0" y="-6.300" size="1.27" layer="27" align="top-center">&gt;VALUE</text>-</package>+<!--adom-pin1--><polygon width="0.0500" layer="21"><vertex x="-7.6500" y="4.2100"/><vertex x="-7.9900" y="4.6800"/><vertex x="-7.3100" y="4.6800"/></polygon></package> </packages> <symbols> <symbol name="LM2596R-12">
package.json+2−1
@@ -24,6 +24,7 @@     "docs/hero.png",     "docs/lm2596r-12-datasheet.pdf",     "viewers/symbol.html",-    "viewers/footprint.html"+    "viewers/footprint.html",+    "pads.json"   ] }\ No newline at end of file
pads.jsonadded+211
@@ -0,0 +1,211 @@+{+ "schema": "adom.pads/1",+ "slug": "lm2596r-12",+ "footprint": "TO-263-5_TabPin6",+ "generated_from": {+  "footprint": "TO-263-5_TabPin6@sha256:77e8ff2d643255fc",+  "pins": "page.json:component.pins",+  "overrides": null+ },+ "pin1": {+  "pad": "1",+  "at": [+   -7.65,+   -3.4+  ],+  "corner": "top-left",+  "source": "silk-marker",+  "derived_from": "TO-263-5_TabPin6@sha256:77e8ff2d643255fc"+ },+ "pad_count": 6,+ "paste_apertures": 4,+ "issues": [+  {+   "kind": "pad-has-no-pin",+   "pad": "6",+   "thermal": false,+   "detail": "footprint pad \"6\" is in copper but no pin claims it"+  }+ ],+ "pads": [+  {+   "pad": "1",+   "kind": "smd",+   "shape": "roundrect",+   "at": [+    -7.65,+    -3.4+   ],+   "rot": 0.0,+   "size": [+    4.6,+    1.1+   ],+   "layers": [+    "F.Cu",+    "F.Mask",+    "F.Paste"+   ],+   "thermal": false,+   "pin": "1",+   "name": "VIN",+   "type": "power_in",+   "description": "Positive input supply for the step-down regulator. Absolute max 45V, operating up to 40V. Requires a suitable input bypass capacitor (typ. 470uF/50V aluminum electrolytic) to minimize voltage transients and supply the switching currents.",+   "is_pin1": true,+   "source": {+    "geometry": "TO-263-5_TabPin6.kicad_mod",+    "meaning": "page.json:component.pins",+    "correspondence": "kicad: symbol pin number == pad name"+   }+  },+  {+   "pad": "2",+   "kind": "smd",+   "shape": "roundrect",+   "at": [+    -7.65,+    -1.7+   ],+   "rot": 0.0,+   "size": [+    4.6,+    1.1+   ],+   "layers": [+    "F.Cu",+    "F.Mask",+    "F.Paste"+   ],+   "thermal": false,+   "pin": "2",+   "name": "VOUT",+   "type": "output",+   "description": "Emitter of the internal 3A NPN switch; connects to the external inductor and catch-diode cathode of the buck power stage. Typical saturation voltage Vsat ~1.16V at 3A. PCB area on this node should be minimized to reduce coupling to sensitive circuitry.",+   "is_pin1": false,+   "source": {+    "geometry": "TO-263-5_TabPin6.kicad_mod",+    "meaning": "page.json:component.pins",+    "correspondence": "kicad: symbol pin number == pad name"+   }+  },+  {+   "pad": "3",+   "kind": "smd",+   "shape": "roundrect",+   "at": [+    -7.65,+    0.0+   ],+   "rot": 0.0,+   "size": [+    4.6,+    1.1+   ],+   "layers": [+    "F.Cu",+    "F.Mask",+    "F.Paste"+   ],+   "thermal": false,+   "pin": "3",+   "name": "GND",+   "type": "power_in",+   "description": "Circuit ground return for the regulator. Should tie to the ground plane via a short, low-inductance path close to the input and output capacitor grounds.",+   "is_pin1": false,+   "source": {+    "geometry": "TO-263-5_TabPin6.kicad_mod",+    "meaning": "page.json:component.pins",+    "correspondence": "kicad: symbol pin number == pad name"+   }+  },+  {+   "pad": "4",+   "kind": "smd",+   "shape": "roundrect",+   "at": [+    -7.65,+    1.7+   ],+   "rot": 0.0,+   "size": [+    4.6,+    1.1+   ],+   "layers": [+    "F.Cu",+    "F.Mask",+    "F.Paste"+   ],+   "thermal": false,+   "pin": "4",+   "name": "FEEDBACK",+   "type": "input",+   "description": "Senses the regulated output voltage to close the control loop. In the fixed 12V version, an internal resistor divider (R2, R1) scales VOUT to the internal 1.23V reference at the error amplifier non-inverting input. Connect this pin directly to the regulated 12V output node. Feedback bias current is typically 12nA.",+   "is_pin1": false,+   "source": {+    "geometry": "TO-263-5_TabPin6.kicad_mod",+    "meaning": "page.json:component.pins",+    "correspondence": "kicad: symbol pin number == pad name"+   }+  },+  {+   "pad": "5",+   "kind": "smd",+   "shape": "roundrect",+   "at": [+    -7.65,+    3.4+   ],+   "rot": 0.0,+   "size": [+    4.6,+    1.1+   ],+   "layers": [+    "F.Cu",+    "F.Mask",+    "F.Paste"+   ],+   "thermal": false,+   "pin": "5",+   "name": "ON/OFF",+   "type": "input",+   "description": "TTL-compatible active-high shutdown input. Threshold ~1.3V typ; VIH >= 2.0V forces the regulator OFF (standby quiescent current typ 80uA), VIL <= 0.6V or left open keeps the regulator ON. Input voltage must be within -0.3V to +Vin. Tie to GND for always-on operation.",+   "is_pin1": false,+   "source": {+    "geometry": "TO-263-5_TabPin6.kicad_mod",+    "meaning": "page.json:component.pins",+    "correspondence": "kicad: symbol pin number == pad name"+   }+  },+  {+   "pad": "6",+   "kind": "smd",+   "shape": "roundrect",+   "at": [+    1.5,+    0.0+   ],+   "rot": 0.0,+   "size": [+    9.4,+    10.8+   ],+   "layers": [+    "F.Cu",+    "F.Mask"+   ],+   "thermal": false,+   "pin": "6",+   "name": null,+   "type": null,+   "description": null,+   "is_pin1": false,+   "source": {+    "geometry": "TO-263-5_TabPin6.kicad_mod",+    "meaning": null,+    "correspondence": "kicad: symbol pin number == pad name"+   }+  }+ ]+}\ No newline at end of file
page.json+11
@@ -78,6 +78,17 @@     "viewers": {       "symbol": "viewers/symbol.html",       "footprint": "viewers/footprint.html"+    },+    "pin1": {+      "pad": "1",+      "at": [+        -7.65,+        -3.4+      ],+      "corner": "top-left",+      "source": "silk-marker",+      "derived_from": "TO-263-5_TabPin6@sha256:77e8ff2d643255fc",+      "mark": "drawn"     }   },   "metadata": {
viewers/footprint.html+1−1
@@ -23,7 +23,7 @@ rect.pad.hi{stroke:var(--hi);stroke-width:.15;paint-order:stroke} #tip .td{font-size:11px;color:var(--ink);margin-top:5px;line-height:1.4} </style></head><body> <div class=bar><span class=h>PCB footprint</span><span class=sp></span><button class="lyrtog on" data-lyr="copper"><span class="d" style="background:#e35d5d"></span>Copper</button><button class="lyrtog on" data-lyr="silk"><span class="d" style="background:#e6edf3"></span>Silkscreen</button><button class="lyrtog" data-lyr="fab"><span class="d" style="background:#8b949e"></span>Fab</button><button class="lyrtog" data-lyr="courtyard"><span class="d" style="background:#bc8cff"></span>Courtyard</button></div>-<div class=stage id=stage><svg xmlns='http://www.w3.org/2000/svg' viewBox='-10.600 -6.050 17.450 12.100' style='width:100%;height:100%'><line class='ly-silk' x1='-4.825' y1='-5.200' x2='-4.825' y2='-3.390' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='-4.825' y1='5.200' x2='-4.825' y2='3.390' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='-3.460' y1='-5.200' x2='-4.825' y2='-5.200' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='-3.460' y1='5.200' x2='-4.825' y2='5.200' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-fab' x1='-9.325' y1='-3.040' x2='-9.325' y2='-2.040' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='-9.325' y1='-2.040' x2='-4.625' y2='-2.040' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='-9.325' y1='2.040' x2='-9.325' y2='3.040' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='-9.325' y1='3.040' x2='-4.625' y2='3.040' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='-4.625' y1='-3.040' x2='-9.325' y2='-3.040' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='-4.625' y1='2.040' x2='-9.325' y2='2.040' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='4.625' y1='-5.000' x2='5.625' y2='-5.000' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='5.625' y1='-5.000' x2='5.625' y2='5.000' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='5.625' y1='5.000' x2='4.625' y2='5.000' stroke='#f472b6' stroke-width='0.100'/><rect class='ly-courtyard' x='-10.200' y='-5.650' width='16.650' height='11.300' fill='none' stroke='#4ade80' stroke-width='0.050'/><rect class='ly-copper pad' data-num='' data-name='' x='-3.200' y='-5.400' width='4.550' height='5.250' rx='1.137' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-0.925' y='-2.775' font-size='1.100' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'></text><rect class='ly-copper pad' data-num='' data-name='' x='-3.200' y='0.150' width='4.550' height='5.250' rx='1.137' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-0.925' y='2.775' font-size='1.100' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'></text><rect class='ly-copper pad' data-num='' data-name='' x='1.650' y='-5.400' width='4.550' height='5.250' rx='1.137' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='3.925' y='-2.775' font-size='1.100' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'></text><rect class='ly-copper pad' data-num='' data-name='' x='1.650' y='0.150' width='4.550' height='5.250' rx='1.137' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='3.925' y='2.775' font-size='1.100' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'></text><rect class='ly-copper pad' data-num='1' data-name='VIN' x='-9.950' y='-3.090' width='4.600' height='1.100' rx='0.275' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-7.650' y='-2.540' font-size='0.660' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>1</text><rect class='ly-copper pad' data-num='2' data-name='VOUT' x='-3.200' y='-5.400' width='9.400' height='10.800' rx='2.350' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='1.500' y='0.000' font-size='1.100' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>2</text><rect class='ly-copper pad' data-num='3' data-name='GND' x='-9.950' y='1.990' width='4.600' height='1.100' rx='0.275' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-7.650' y='2.540' font-size='0.660' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>3</text></svg></div>+<div class=stage id=stage><svg xmlns='http://www.w3.org/2000/svg' viewBox='-10.600 -6.050 17.450 12.100' style='width:100%;height:100%'><line class='ly-silk' x1='-4.825' y1='-5.200' x2='-4.825' y2='-3.390' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='-4.825' y1='5.200' x2='-4.825' y2='3.390' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='-3.460' y1='-5.200' x2='-4.825' y2='-5.200' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='-3.460' y1='5.200' x2='-4.825' y2='5.200' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-fab' x1='-9.325' y1='-3.040' x2='-9.325' y2='-2.040' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='-9.325' y1='-2.040' x2='-4.625' y2='-2.040' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='-9.325' y1='2.040' x2='-9.325' y2='3.040' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='-9.325' y1='3.040' x2='-4.625' y2='3.040' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='-4.625' y1='-3.040' x2='-9.325' y2='-3.040' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='-4.625' y1='2.040' x2='-9.325' y2='2.040' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='4.625' y1='-5.000' x2='5.625' y2='-5.000' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='5.625' y1='-5.000' x2='5.625' y2='5.000' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='5.625' y1='5.000' x2='4.625' y2='5.000' stroke='#f472b6' stroke-width='0.100'/><rect class='ly-courtyard' x='-10.200' y='-5.650' width='16.650' height='11.300' fill='none' stroke='#4ade80' stroke-width='0.050'/><rect class='ly-copper pad' data-num='' data-name='' x='-3.200' y='-5.400' width='4.550' height='5.250' rx='1.137' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-0.925' y='-2.775' font-size='1.100' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'></text><rect class='ly-copper pad' data-num='' data-name='' x='-3.200' y='0.150' width='4.550' height='5.250' rx='1.137' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-0.925' y='2.775' font-size='1.100' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'></text><rect class='ly-copper pad' data-num='' data-name='' x='1.650' y='-5.400' width='4.550' height='5.250' rx='1.137' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='3.925' y='-2.775' font-size='1.100' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'></text><rect class='ly-copper pad' data-num='' data-name='' x='1.650' y='0.150' width='4.550' height='5.250' rx='1.137' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='3.925' y='2.775' font-size='1.100' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'></text><rect class='ly-copper pad' data-num='1' data-name='VIN' x='-9.950' y='-3.090' width='4.600' height='1.100' rx='0.275' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-7.650' y='-2.540' font-size='0.660' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>1</text><rect class='ly-copper pad' data-num='2' data-name='VOUT' x='-3.200' y='-5.400' width='9.400' height='10.800' rx='2.350' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='1.500' y='0.000' font-size='1.100' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>2</text><rect class='ly-copper pad' data-num='3' data-name='GND' x='-9.950' y='1.990' width='4.600' height='1.100' rx='0.275' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-7.650' y='2.540' font-size='0.660' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>3</text><polygon class='ly-silk adom-pin1' points='-7.650,-4.210 -7.990,-4.680 -7.310,-4.680' fill='#d8b4fe' stroke='none'><title>pin 1</title></polygon></svg></div> <div id=tip></div> <script> var KIND="footprint", MPN="RAY/LM2596R-12", PINS=[{"desc":"","name":"VIN","number":"1","type":""},{"desc":"","name":"VOUT","number":"2","type":""},{"desc":"","name":"GND","number":"3","type":""},{"desc":"","name":"ON/OFF","number":"5","type":""},{"desc":"","name":"FEEDBACK","number":"4","type":""}];