master
John Lauer
3D model from KiCad's own package generator at the datasheet's values: radiused gull-wing leads in matte tin, reviewed…
ee7a939
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
{
"schema": "adom/3d-model-provenance@1",
"mpn": "AP2112K-3.3TRG1",
"date": "2026-10-21",
"classification": "Generated: KiCad's own package generator at the datasheet's values, with the datasheet's real marking, produced by Claude (AI) for John Lauer; not manufacturer CAD and not a manufacturer certification",
"datasheet": {
"doc": "Diodes DS39724 Rev. 2-2 (June 2017), AP2112 datasheet",
"file": "docs/ap2112k-3-3trg1-datasheet.pdf",
"url": "https://www.diodes.com/assets/Datasheets/AP2112.pdf",
"marking_pages": "p.12 (Ordering Information: AP2112K-3.3TRG1 Marking ID G3P) and p.13 (Marking Information (1) SOT25)",
"drawing_pages": "p.14 (Package Outline Dimensions SOT25)",
"figures": [
"docs/figures/ap2112k-3-3trg1-ds-p1.png",
"docs/figures/ap2112k-3-3trg1-ds-p2.png",
"docs/figures/ap2112k-3-3trg1-ds-p12.png",
"docs/figures/ap2112k-3-3trg1-ds-p13.png",
"docs/figures/ap2112k-3-3trg1-ds-p14.png"
],
"sha256": "ef8d376f2ec356e29172eb9e053819a0ebdcc576dba7fc9ab0505c568427920f"
},
"marking": {
"lines": [
"G3P"
],
"description": "G3P (Diodes Marking ID for AP2112K-3.3TRG1), read with the three-pin side (pins 1 to 3) at the bottom as Diodes draws it, which is the standard pose (pin 1 lower left). Not rendered: the Diodes logo glyph Diodes prints to the left of the Marking ID (a trademark, not text). The SOT25 marking has no date code field.",
"layout_note": "Diodes prints the logo left of G3P; with the logo omitted the planner centres G3P in the band.",
"placeholders": "none",
"surface": "top face, flat light mark 5 um above the face (coplanar), in the Adom.LaserEtch group",
"font": "service-step2glb /laser-etch single-stroke outline font (not the manufacturer's font)",
"etch": "G3P",
"gate": {
"tool": "adom-aiflow-etch check (adom/adom-aiflow 0.2.5)",
"status": "PASS",
"checks": {
"axis": "PASS",
"upright": "PASS",
"size": "PASS",
"band": "PASS",
"flat": "PASS",
"group": "PASS",
"colour": "PASS",
"widget": "PASS"
}
}
},
"model": {
"file": "ap2112k-3-3trg1.step",
"sha256": "8442c0a225169bb0319c55b984151d4deea81d7dc2617ec51d18f2972106485b",
"builder": "kicad-packages3D-generator (gitlab.com/kicad/libraries/kicad-packages3D-generator, commit e272fcc, GW_QFP_SOIC_SSOP_TSSOP_SOT/make_gw, CadQuery 2.8.0)",
"generator_key": "SOT-23-5",
"params": "provenance/tools/kicad-generator/params.json",
"how": "provenance/tools/kicad-generator/kgen.py runs KiCad's make_gw on the datasheet values; the generator's flat-foot length is tuned until the measured gauge-plane foot equals the datasheet value",
"values": "Diodes DS39724 p.14 (SOT25) typical values: H 3.00 body length, B 1.60 body width, C 2.80 tip to tip, K 1.10 body + J 0.05 standoff (top 1.15), A 0.38 lead width, M 0.15 lead thickness, L 0.40 flat foot, D 0.95 pitch, N 0.75 parting line above the body bottom; KiCad's bend radii 0.10 and body draft 8 deg. N needed a one-line generator patch (provenance/tools/kicad-generator/kicad-generator-A2_b.patch): the stock generator always centres the leads on the body (N would be 0.55).",
"cad_kernel": "CadQuery 2.8.0 (OpenCascade)",
"frame": "Z up, seated on z = 0, centred on the KiCad footprint origin, pin 1 on footprint pad 1, binds with zero offset and rotation",
"dimensions_mm": [
{
"item": "H body length",
"datasheet_min_typ_max": "2.90 / 3.00 / 3.10",
"model": "3.000"
},
{
"item": "B body width",
"datasheet_min_typ_max": "1.50 / 1.60 / 1.70",
"model": "1.600"
},
{
"item": "C lead tip to tip",
"datasheet_min_typ_max": "2.70 / 2.80 / 3.00",
"model": "2.800"
},
{
"item": "K body thickness",
"datasheet_min_typ_max": "1.00 / 1.10 / 1.30",
"model": "1.100"
},
{
"item": "J standoff",
"datasheet_min_typ_max": "0.013 / 0.05 / 0.10",
"model": "0.050"
},
{
"item": "Overall height J + K",
"datasheet_min_typ_max": "max 1.40",
"model": "1.150"
},
{
"item": "A lead width",
"datasheet_min_typ_max": "0.35 / 0.38 / 0.50",
"model": "0.380"
},
{
"item": "M lead thickness",
"datasheet_min_typ_max": "0.10 / 0.15 / 0.20",
"model": "0.150"
},
{
"item": "L foot (flat)",
"datasheet_min_typ_max": "0.35 / 0.40 / 0.55",
"model": "0.400"
},
{
"item": "D pitch",
"datasheet_min_typ_max": "0.95",
"model": "0.950"
},
{
"item": "N parting line above body bottom",
"datasheet_min_typ_max": "0.70 / 0.75 / 0.80",
"model": "0.750 (measured)"
},
{
"item": "Bend radii (not printed)",
"datasheet_min_typ_max": "-",
"model": "0.10, 0.10"
}
],
"kicad_library_check": {
"model": "KiCad packages3D SOT-23-5.step (CC-BY-SA 4.0)",
"file": "provenance/previous/ap2112k-3-3trg1-kicad-generic.step",
"measured": "overall height (J + K)",
"datasheet": "max 1.40 (K 1.00 / 1.10 / 1.30)",
"kicad_library": "1.55",
"regenerated": "1.15",
"method": "section through one lead's centre line (plane y = lead centre), cut at the 0.25 mm gauge plane (z = 0.25); L = distance from the lead tip to where the lead's lower outer surface crosses the gauge plane (JEDEC definition), provenance/tools/kicad-generator/measure.py",
"verdict": "No KiCad library model fits: SOT-23-5 is 1.55 mm tall (0.15 over Diodes' 1.40 maximum) and TSOT-23-5 0.95 mm (under the 1.00 minimum body). KiCad's generator was run with Diodes' printed typical values."
},
"pin1_mark": "KiCad's small pin-1 dimple (generator default for SOT-23-5); Diodes' SOT25 drawing shows no pin-1 mark",
"leads": "KiCad's radiused gull-wing leads; GLB material 'Adom.Leads (matte tin)': metallic 1.0, roughness 0.35",
"overlay_proof": "docs/proof/ap2112k-3-3trg1-overlay-ds39724-p14.png",
"before_after": "docs/proof/ap2112k-3-3trg1-leads-before-after.png",
"previous": [
{
"file": "provenance/previous/ap2112k-3-3trg1-kicad-generic.step",
"what": "KiCad packages3D SOT-23-5.step (CC-BY-SA 4.0), the page's previous plain model",
"why": "1.55 mm tall against Diodes' 1.40 mm maximum (J + K) and body 2.90 mm (Diodes typical 3.00). Rebuilt from DS39724 p.14 typical values.",
"sha256": "720a6eab0024069bbee68e7cb4c3ff1149468a34611225cdc852662c5d0ec2b7"
},
{
"file": "provenance/previous/ap2112k-3-3trg1-cadquery-square-fold.step",
"sha256": "3c40b414bfd8fd66f4e06cd2948034654ad47d9f1f9f29ba8d749c2798697ab0",
"what": "hand-built CadQuery model (provenance/tools/build_sot25.py), square lead folds, 2026-10-19 to 2026-10-21",
"why": "square 90 degree lead folds and flat grey leads looked fake; it had replaced KiCad's model over a foot-length miss that KiCad's own generator fixes"
}
]
},
"etched": {
"file": "ap2112k-3-3trg1-etched.step",
"sha256": "8ec71bdc0b4d82878e4473b1623dd50e3089419bcef8afb0fd3ee6168c53aa6c",
"note": "etched with the same inputs as before (line G3P, planner layout); gate PASS",
"check_image": "docs/proof/ap2112k-3-3trg1-etched.check.png",
"plan": "docs/proof/ap2112k-3-3trg1-etched.mark-plan.json"
},
"glb": {
"ap2112k-3-3trg1.glb": "938f802afc360da33efe346fe61dfcd49b14182f4a8659b933a08246756342ec",
"ap2112k-3-3trg1-etched.glb": "8c0929d9058f1748bf2b55fe72925170f1bbbd7ea002197897e99cb6656614f6",
"ap2112k-3-3trg1-hero.glb": "e3d730f8e496f92660f20e0d09763a34383e84b2efc7517b793c6f5ff14ad536"
},
"hero": {
"file": "ap2112k-3-3trg1-hero.glb",
"generator": "adom/component-hero hero_glb.py (adom-hero 1.4)",
"board_use": false,
"preview": "docs/proof/ap2112k-3-3trg1-hero-preview.png"
},
"outline": {
"file": "artwork/AP2112K-3.3TRG1-3d-outline-dark-named.svg",
"sha256": "97979592234ac3ba0a65b222e8b4e6bf6dc12312d48393c65c34ca04adec218e",
"tool": "adom-aiflow-etch outline (composed single-stroke name)",
"gate": "PASS",
"note": "kept from 2026-10-19: the symbol's chip outline is a top view, and the top view is unchanged apart from the pin-1 dimple's size and place"
},
"page_hero_image": "docs/hero.png: the previous billboard with its chip render replaced by a render of ap2112k-3-3trg1-etched.glb",
"removed_superseded": [
{
"path": "ap2112k-3-3trg1-mpn.step",
"sha256": "07ddad58ede2d8513daf0a5d6368f6893282ffcf55c09c364b12a215d630c498"
},
{
"path": "ap2112k-3-3trg1-mpn-overlay.step",
"sha256": "a82c6904b0646cd55b706213137f6acdad6e5a05e2cf4ed7731faa60db2773d8"
},
{
"path": "ap2112k-3-3trg1-mpn.glb",
"sha256": "bf656f71ae1d349a976e0825e6f8452338ff4d6975f343531c09e8683ea22d5a"
},
{
"path": "ap2112k-3-3trg1-mpn.png",
"sha256": "c7a764213bf14537c3a06d867a58d7d6bc34ec9edd1892bb83289abe7d17ac62"
},
{
"path": "ap2112k-3-3trg1-hero-mpn.glb",
"sha256": "d4c01b1c6d551300822ea13b2c5afa7fad304470cbd7c151ba1a470b423c55b2"
},
{
"path": "ap2112k-3-3trg1-hero-footprint.glb",
"sha256": "99bf9438fa1bcaa5d325e26a1f84399bd6a7484561bff062693f761386b411a1"
},
{
"path": "ap2112k-3-3trg1-hero-footprint.overlay.json",
"sha256": "0e93cfc1b6c2bd51bb8a5755d106f8b801a080313e197f01a9592985559c26d4"
},
{
"path": "MPN-MARKING.md",
"sha256": "1897f78b29bc76ecc17e64dde2c7d07af7e58a6629404b4abf617b59e9881a6f"
},
{
"path": "mpn-marking.json",
"sha256": "02967204a44fc2efc50b00f51f34b9994baf689b6049faaeb2f2783abbd93476"
},
{
"path": "fit-mpn-surface.py",
"sha256": "791563f83b56cbc9bb2885ca5ad7134cb8b3ecf54c1724e8338df570d5e6492f"
},
{
"path": "hero-binding.json",
"sha256": "7f4441d4cff43ac5abd6004f95065960648763473bbb1c26b6ad406d41ee4f25"
},
{
"path": "hero-pin-map.json",
"sha256": "2b4429d0eac2b52a3be08b22b3131db4ccf2dca8bff10fee9d9da2047f5ea4f6"
},
{
"path": "MPN-SOURCE-LICENSE.md",
"sha256": "285b027a721577d0bc0198f36e948c6c282ddaa4b58fef8ed826749576eb0aef"
},
{
"path": "screenshots/hero.png",
"sha256": "ee0cb3de04635f7655429668c34fd4f5c32222c4f7fcc56f4d2dbb9db521d34f"
}
],
"tools": {
"adom-aiflow-etch": "adom/adom-aiflow (installed)",
"step2glb": "0.13.2",
"adom-symbol": "1.2.6",
"adom-lbr": "2.47.5",
"cadquery": "2.8.0",
"kicad-packages3D-generator": "e272fcc (archived repo; Adom A2_b patch)",
"gltf-transform": "3.10.1",
"meshoptimizer": "0.20.0"
},
"license": "Model generated with KiCad's package generator (GPL-2.0 scripts; KiCad 3D models CC-BY-SA 4.0 with the KiCad libraries' exception); Adom marking and artwork CC-BY-4.0."
}