← Commit history

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

Ray ·45e5770b5b ·1mo ago ·parent 83ce443
5 files changed +234−3
package.json+2−1
@@ -24,6 +24,7 @@     "docs/hero.png",     "docs/xl2596s-5-0e1-datasheet.pdf",     "viewers/symbol.html",-    "viewers/footprint.html"+    "viewers/footprint.html",+    "pads.json"   ] }\ No newline at end of file
pads.jsonadded+219
@@ -0,0 +1,219 @@+{+ "schema": "adom.pads/1",+ "slug": "xl2596s-5-0e1",+ "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,+ "symbol_pins": [+  "1",+  "2",+  "3",+  "4",+  "5"+ ],+ "paste_apertures": 4,+ "issues": [+  {+   "kind": "pad-has-no-pin",+   "pad": "6",+   "thermal": false,+   "described_in_page": false,+   "detail": "footprint pad \"6\" is in copper but the SYMBOL has no pin for 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": "Supply voltage input. Operates from 4.5V to 40V DC. Bypass to GND with a suitably large capacitor (e.g. 470uF/35V in the typical app) to eliminate noise on the input. Absolute maximum -0.3 to 45V.",+   "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": "OUTPUT",+   "type": "output",+   "description": "Power switch output (SW). Internal NPN power transistor emitter/switch node that drives the external inductor and catch (Schottky) diode. Rated for 3A continuous load current with duty cycle up to 100%.",+   "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": "Ground pin. Layout critical: route outside of the Schottky diode-to-output-capacitor ground path to prevent switching current spikes from injecting voltage noise into the XL2596. Metal tab is also tied to GND.",+   "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": "Feedback pin (FB). Senses the output voltage through an external resistor divider and regulates it to the internal 1.23V reference. For the fixed-5.0V version this pin is tied directly to VOUT (no divider needed).",+   "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": "Enable pin with hysteresis. Drive LOW (or float, default low) to turn the device ON; drive HIGH to shut it down (TTL shutdown capable). Absolute max -0.3V to VIN.",+   "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='OUTPUT' 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='OUTPUT' 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/XL2596S-5-0E1", PINS=[{"desc":"","name":"VIN","number":"1","type":""},{"desc":"","name":"OUTPUT","number":"2","type":""},{"desc":"","name":"GND","number":"3","type":""},{"desc":"","name":"ON/OFF","number":"5","type":""},{"desc":"","name":"FEEDBACK","number":"4","type":""}];
xl2596s-5-0e1.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="XL2596S-5.0E1">