steve/seven-segment-display
Kingbright through-hole 7-segment LED displays: CA56-12, CC56-12, DA56-11, DA04-11 and SBC18-11, by part number.
Kingbright surface-mount chip LEDs: APHHS1005 (0402), APT1608 (0603), APT2012 (0805), APT3216 (1206) and side-view APA1606.
| 1 | """Kingbright surface-mount chip LEDs: a laminate substrate with a terminal at each end and a clear moulded lens on top. Top-view |
| 2 | packages APHHS1005 (EIA 0402), APT1608 (0603), APT2012 (0805) and APT3216 (1206), and the side-view APA1606, which lies with its lens |
| 3 | facing +Y. The part is centred on the origin, its length along X, standing on the board (the XY plane) on its terminals. The substrate, |
| 4 | the lens and each terminal are their own solids. Dimensions from Kingbright's data sheets; see the README.""" |
| 5 | from steve import Model |
| 6 | |
| 7 | package = "APT1608" # Kingbright package |
| 8 | |
| 9 | # package: (length, width, height, substrate thickness, lens length at its foot, lens length at its top, terminal length underneath, |
| 10 | # side view), mm. Kingbright data sheets, "PACKAGE DIMENSIONS" (page 1); length, width and height along the board for the top-view |
| 11 | # packages; for the side-view APA1606 the 'width' is its depth along Y over the lens (1.2) and the 'height' its 0.6 thickness. |
| 12 | # APHHS1005SURCK DSAD0911 V.18A 03/25/2021: 1 x 0.5 x 0.5, substrate 0.15, lens 0.8, terminals 0.4; +/-0.1. |
| 13 | # APT1608SURCK DSAD0926 V.22A 04/08/2023: 1.6 x 0.8 x 0.75, substrate 0.25, lens 1.2 / 1.1, terminals 0.3; +/-0.1. |
| 14 | # APT2012EC DSAD0943 V.13A 09/08/2021: 2 x 1.25 x 0.75, substrate 0.25, lens 1.3 / 1.2, terminals 0.4; +/-0.1. |
| 15 | # APT3216SURCK DSAD0989 V.16A 03/17/2025: 3.2 x 1.6 x 0.75, substrate 0.25, lens 2 / 1.9, terminals 0.5; +/-0.2. |
| 16 | # APA1606SURCK DSAF0543 V.20A 03/07/2025: 1.6 long, 0.6 thick, 1.2 over the lens, substrate 0.6, lens 1.2 / 1.1, terminals 0.25; |
| 17 | # +/-0.1. |
| 18 | PACKAGES = { |
| 19 | "APHHS1005": (1.0, 0.5, 0.5, 0.15, 0.8, 0.8, 0.4, False), |
| 20 | "APT1608": (1.6, 0.8, 0.75, 0.25, 1.2, 1.1, 0.3, False), |
| 21 | "APT2012": (2.0, 1.25, 0.75, 0.25, 1.3, 1.2, 0.4, False), |
| 22 | "APT3216": (3.2, 1.6, 0.75, 0.25, 2.0, 1.9, 0.5, False), |
| 23 | "APA1606": (1.6, 1.2, 0.6, 0.6, 1.2, 1.1, 0.25, True), |
| 24 | } |
| 25 | # Proportions, for looks (the drawings show these but don't dimension them; README): a top-view part's terminal is a plating 0.03 thick |
| 26 | # wrapped round the substrate's end, under it for the terminal length, up its end face and over its top to the lens's foot, the full |
| 27 | # width; the side-view's terminals are end caps the terminal length long over its whole section, the substrate and lens between them |
| 28 | # 0.03 inside it. The lens runs the full width of the part. |
| 29 | PLATING = 0.03 |
| 30 | |
| 31 | if package not in PACKAGES: |
| 32 | raise ValueError(f"no package {package!r}: {', '.join(PACKAGES)}") |
| 33 | L, W, H, s, lens_foot, lens_top, pad, side = PACKAGES[package] |
| 34 | P = PLATING |
| 35 | model = Model() |
| 36 | terminals = ["terminal1_body", "terminal2_body"] |
| 37 | if side: |
| 38 | # Side view: the substrate's back at y = -s / 2, the lens facing +Y to y = W - s / 2, standing on the board from z = 0 to H. |
| 39 | model.box("substrate", L - 2 * pad, s - 2 * P, H - 2 * P, at=(0, 0, H / 2), op="new", body="substrate_body", name="Substrate") |
| 40 | for k, sx in enumerate((-1, 1)): |
| 41 | model.box(f"t{k + 1}_cap", pad, s, H, at=(sx * (L / 2 - pad / 2), 0, H / 2), op="new", body=terminals[k], name=f"Terminal {k + 1}") |
| 42 | y0, y1 = s / 2 - P, W - s / 2 |
| 43 | model.plane("lens_plane", on="XY", offset=P, name="Lens") |
| 44 | with model.sketch("lens_sketch2", on="lens_plane", name="Lens") as sk: |
| 45 | sk.polyline("lens_outline2", [(-lens_foot / 2, y0), (lens_foot / 2, y0), (lens_top / 2, y1), (-lens_top / 2, y1)], closed=True) |
| 46 | model.extrude("lens", "lens_sketch2", distance=H - 2 * P, op="new", body="lens_body", name="Lens") |
| 47 | else: |
| 48 | # Top view: the substrate on the terminals' plating, the lens on the substrate up to H. |
| 49 | model.box("substrate", L - 2 * P, W, s - P, at=(0, 0, (s + P) / 2), op="new", body="substrate_body", name="Substrate") |
| 50 | over = (L - lens_foot) / 2 |
| 51 | for k, sx in enumerate((-1, 1)): |
| 52 | body = terminals[k] |
| 53 | model.box(f"t{k + 1}_end", P, W, s + P, at=(sx * (L / 2 - P / 2), 0, (s + P) / 2), op="new", body=body, name=f"Terminal {k + 1}") |
| 54 | model.box(f"t{k + 1}_under", pad - P, W, P, at=(sx * (L / 2 - P - (pad - P) / 2), 0, P / 2), op="join", body=body, |
| 55 | name=f"Terminal {k + 1}") |
| 56 | model.box(f"t{k + 1}_over", over - P, W, P, at=(sx * (L / 2 - P - (over - P) / 2), 0, s + P / 2), op="join", body=body, |
| 57 | name=f"Terminal {k + 1}") |
| 58 | model.plane("lens_plane", on="XZ", offset=-W / 2, name="Lens") |
| 59 | with model.sketch("lens_sketch", on="lens_plane", name="Lens") as sk: |
| 60 | sk.polyline("lens_outline", [(-lens_foot / 2, s), (lens_foot / 2, s), (lens_top / 2, H), (-lens_top / 2, H)], closed=True) |
| 61 | model.extrude("lens", "lens_sketch", distance=W, op="new", body="lens_body", name="Lens") |
| 62 | # Materials (the sheets name none and give no weight): the substrate a glass-epoxy laminate (about 1.9), shown as ptfe (2.2) as the |
| 63 | # library's other moulded packages; the lens water-clear epoxy (about 1.2), shown as pmma (1.18); the terminals plated copper. |
| 64 | model.material("ptfe", bodies=["substrate_body"], color="#f2efe6") |
| 65 | model.material("pmma", bodies=["lens_body"], color="#f6f8fa") |
| 66 | model.material("copper", bodies=terminals, color="#d4b25a") |
| 67 | result = model.result() |
| 68 |
| 1 | name = "steve/chip-led" |
| 2 | version = "1.0.0" |
| 3 | runtime = "steve" |
| 4 | license = "MIT" |
| 5 | summary = "Kingbright surface-mount chip LEDs: APHHS1005 (0402), APT1608 (0603), APT2012 (0805), APT3216 (1206) and side-view APA1606." |
| 6 | description = """Surface-mount chip LEDs for board layouts and enclosures, as Kingbright draws them: a laminate substrate with a terminal at each end and a clear moulded lens on top. Top-view APHHS1005 (EIA 0402), APT1608 (0603), APT2012 (0805) and APT3216 (1206), and the side-view APA1606. The substrate, the lens and each terminal are their own solids. Dimensions from Kingbright's data sheets. See the README.""" |
| 7 | tags = ["led", "chip-led", "smd", "kingbright", "electronics"] |
| 8 | |
| 9 | [parameters.package] |
| 10 | type = "choice" |
| 11 | default = "APT1608" |
| 12 | choices = ["APHHS1005", "APT1608", "APT2012", "APT3216", "APA1606"] |
| 13 | label = "Package" |
| 14 | description = "APHHS1005 1 x 0.5 x 0.5 (0402), APT1608 1.6 x 0.8 x 0.75 (0603), APT2012 2 x 1.25 x 0.75 (0805), APT3216 3.2 x 1.6 x 0.75 (1206), APA1606 side view 1.6 x 0.6 x 1.2." |
| 15 | |
| 16 | [[presets]] |
| 17 | id = "APHHS1005" |
| 18 | title = "Kingbright APHHS1005, 0402 (1005 metric) chip LED, water clear" |
| 19 | params = { package = "APHHS1005" } |
| 20 | aliases = ["LED 0402 1005Metric", "0402 chip LED", "1005 chip LED", "Kingbright APHHS1005", "Kingbright APHHS1005SURCK", "APHHS1005SURCK"] |
| 21 | standard = "Kingbright APHHS1005SURCK" |
| 22 | |
| 23 | [[presets]] |
| 24 | id = "APT1608" |
| 25 | title = "Kingbright APT1608, 0603 (1608 metric) chip LED, water clear" |
| 26 | params = { package = "APT1608" } |
| 27 | aliases = ["LED 0603 1608Metric", "0603 chip LED", "1608 chip LED", "Kingbright APT1608", "Kingbright APT1608SURCK", "APT1608SURCK"] |
| 28 | standard = "Kingbright APT1608SURCK" |
| 29 | |
| 30 | [[presets]] |
| 31 | id = "APT2012" |
| 32 | title = "Kingbright APT2012, 0805 (2012 metric) chip LED, water clear" |
| 33 | params = { package = "APT2012" } |
| 34 | aliases = ["LED 0805 2012Metric", "0805 chip LED", "2012 chip LED", "Kingbright APT2012", "Kingbright APT2012EC", "APT2012EC"] |
| 35 | standard = "Kingbright APT2012EC" |
| 36 | |
| 37 | [[presets]] |
| 38 | id = "APT3216" |
| 39 | title = "Kingbright APT3216, 1206 (3216 metric) chip LED, water clear" |
| 40 | params = { package = "APT3216" } |
| 41 | aliases = ["LED 1206 3216Metric", "1206 chip LED", "3216 chip LED", "Kingbright APT3216", "Kingbright APT3216SURCK", "APT3216SURCK"] |
| 42 | standard = "Kingbright APT3216SURCK" |
| 43 | |
| 44 | [[presets]] |
| 45 | id = "APA1606" |
| 46 | title = "Kingbright APA1606, 1.6 x 0.6 side-view chip LED, water clear" |
| 47 | params = { package = "APA1606" } |
| 48 | aliases = ["LED_Kingbright_APA1606_1.6x0.6mm_Horizontal", "Kingbright APA1606", "Kingbright APA1606SURCK", "APA1606SURCK"] |
| 49 | standard = "Kingbright APA1606SURCK" |
| 50 |
Kingbright's surface-mount chip LEDs: a laminate substrate with a terminal at each end and a water-clear moulded lens. The part is centred on the origin with its length along X, standing on the board (the XY plane) on its terminals. The substrate, the lens and each terminal are their own solids.
Kingbright data sheets, "PACKAGE DIMENSIONS" on page 1, in mm. Copies from kingbrightusa.com, https://www.kingbrightusa.com/images/catalog/SPEC/<part number>.pdf. The colour variants of a series share its package.
| Package | Data sheet | Spec no., revision, date | Tolerance |
|---|---|---|---|
| APHHS1005 | APHHS1005SURCK | DSAD0911, V.18A, 03/25/2021 | ±0.1 |
| APT1608 | APT1608SURCK | DSAD0926, V.22A, 04/08/2023 | ±0.1 |
| APT2012 | APT2012EC | DSAD0943, V.13A, 09/08/2021 | ±0.1 |
| APT3216 | APT3216SURCK | DSAD0989, V.16A, 03/17/2025 | ±0.2 |
| APA1606 | APA1606SURCK | DSAF0543, V.20A, 03/07/2025 | ±0.1 |
| Package | Length | Width | Height | Substrate | Lens at its foot | Lens at its top | Terminal underneath |
|---|---|---|---|---|---|---|---|
| APHHS1005 | 1 | 0.5 | 0.5 | 0.15 | 0.8 | 0.8 (drawn straight) | 0.4 |
| APT1608 | 1.6 | 0.8 | 0.75 | 0.25 | 1.2 | 1.1 | 0.3 |
| APT2012 | 2 | 1.25 | 0.75 | 0.25 | 1.3 | 1.2 | 0.4 |
| APT3216 | 3.2 | 1.6 | 0.75 | 0.25 | 2 | 1.9 | 0.5 |
| APA1606 | 1.6 | 1.2 over the lens | 0.6 | 0.6 | 1.2 | 1.1 | 0.25 |
For APA1606, the 0.6 substrate is its thickness from the back to the lens's foot. The lens stands 0.6 beyond it, to 1.2, and the part is 0.6 high on the board.
Proportions, stated plainly. The drawings show these but don't dimension them:
Materials. The sheets name no materials and give no weight, so the mass isn't checked. The substrate is a glass-epoxy laminate, about 1.9, shown as ptfe (2.2) like the library's other moulded packages. The lens is water-clear epoxy, about 1.2, shown as pmma (1.18). The terminals are plated copper.
LED_0402_1005Metric, LED_0603_1608Metric, LED_0805_2012Metric and LED_1206_3216Metric have no reference models. Each names an EIA chip size, and each maps to Kingbright's chip LED of that size.LED_Kingbright_APA1606_1.6x0.6mm_Horizontal maps to APA1606. Its reference model was measured against the sheet:| Reference model | APA1606 sheet | |
|---|---|---|
| Length | 1.6 | 1.6 |
| Depth over the lens | 1.2 | 1.2 |
| Height on the board | 0.6 | 0.6 |
The reference model is one plain solid with no terminals or lens shape, so only its envelope compares.
The other sizes (01005, 0201, 1210, 1806, 1812, 2010, 2512, 2816), the castellated-terminal entries, the PLCC and RGB LEDs, and the other makers' parts are left with their reasons in COVERAGE.md.
| 1 | # Chip LED |
| 2 | |
| 3 | Kingbright's surface-mount chip LEDs: a laminate substrate with a terminal at each end and a water-clear moulded lens. The part is centred on the origin with its length along X, standing on the board (the XY plane) on its terminals. The substrate, the lens and each terminal are their own solids. |
| 4 | |
| 5 | - **Top view**: APHHS1005 (EIA 0402), APT1608 (0603), APT2012 (0805) and APT3216 (1206). The lens is on top. |
| 6 | - **Side view**: APA1606. It lies with its back at y = -0.3 and the lens facing +Y. |
| 7 | |
| 8 | ## Source |
| 9 | |
| 10 | Kingbright data sheets, "PACKAGE DIMENSIONS" on page 1, in mm. Copies from kingbrightusa.com, `https://www.kingbrightusa.com/images/catalog/SPEC/<part number>.pdf`. The colour variants of a series share its package. |
| 11 | |
| 12 | | Package | Data sheet | Spec no., revision, date | Tolerance | |
| 13 | |---|---|---|---| |
| 14 | | APHHS1005 | APHHS1005SURCK | DSAD0911, V.18A, 03/25/2021 | ±0.1 | |
| 15 | | APT1608 | APT1608SURCK | DSAD0926, V.22A, 04/08/2023 | ±0.1 | |
| 16 | | APT2012 | APT2012EC | DSAD0943, V.13A, 09/08/2021 | ±0.1 | |
| 17 | | APT3216 | APT3216SURCK | DSAD0989, V.16A, 03/17/2025 | ±0.2 | |
| 18 | | APA1606 | APA1606SURCK | DSAF0543, V.20A, 03/07/2025 | ±0.1 | |
| 19 | |
| 20 | | Package | Length | Width | Height | Substrate | Lens at its foot | Lens at its top | Terminal underneath | |
| 21 | |---|---|---|---|---|---|---|---| |
| 22 | | APHHS1005 | 1 | 0.5 | 0.5 | 0.15 | 0.8 | 0.8 (drawn straight) | 0.4 | |
| 23 | | APT1608 | 1.6 | 0.8 | 0.75 | 0.25 | 1.2 | 1.1 | 0.3 | |
| 24 | | APT2012 | 2 | 1.25 | 0.75 | 0.25 | 1.3 | 1.2 | 0.4 | |
| 25 | | APT3216 | 3.2 | 1.6 | 0.75 | 0.25 | 2 | 1.9 | 0.5 | |
| 26 | | APA1606 | 1.6 | 1.2 over the lens | 0.6 | 0.6 | 1.2 | 1.1 | 0.25 | |
| 27 | |
| 28 | For APA1606, the 0.6 substrate is its thickness from the back to the lens's foot. The lens stands 0.6 beyond it, to 1.2, and the part is 0.6 high on the board. |
| 29 | |
| 30 | **Proportions, stated plainly.** The drawings show these but don't dimension them: |
| 31 | |
| 32 | - On a top-view part, each terminal is a plating 0.03 thick. It wraps round the substrate's end, under it for the terminal length, up its end face and over its top to the lens's foot, across the full width. The plating is inside the drawn length and height. The substrate sits on it, and the top strip stands 0.03 proud of the substrate. |
| 33 | - On APA1606, each terminal is an end cap over the whole section, the terminal length long. The substrate and lens between the caps are 0.03 inside it. |
| 34 | - The lens runs the part's full width. APHHS1005's lens has straight sides, as drawn. |
| 35 | |
| 36 | **Materials.** The sheets name no materials and give no weight, so the mass isn't checked. The substrate is a glass-epoxy laminate, about 1.9, shown as ptfe (2.2) like the library's other moulded packages. The lens is water-clear epoxy, about 1.2, shown as pmma (1.18). The terminals are plated copper. |
| 37 | |
| 38 | ## Catalogue models |
| 39 | |
| 40 | - `LED_0402_1005Metric`, `LED_0603_1608Metric`, `LED_0805_2012Metric` and `LED_1206_3216Metric` have no reference models. Each names an EIA chip size, and each maps to Kingbright's chip LED of that size. |
| 41 | - `LED_Kingbright_APA1606_1.6x0.6mm_Horizontal` maps to APA1606. Its reference model was measured against the sheet: |
| 42 | |
| 43 | | | Reference model | APA1606 sheet | |
| 44 | |---|---|---| |
| 45 | | Length | 1.6 | 1.6 | |
| 46 | | Depth over the lens | 1.2 | 1.2 | |
| 47 | | Height on the board | 0.6 | 0.6 | |
| 48 | |
| 49 | The reference model is one plain solid with no terminals or lens shape, so only its envelope compares. |
| 50 | |
| 51 | The other sizes (01005, 0201, 1210, 1806, 1812, 2010, 2512, 2816), the castellated-terminal entries, the PLCC and RGB LEDs, and the other makers' parts are left with their reasons in `COVERAGE.md`. |
| 52 |
Surface-mount chip LEDs for board layouts and enclosures, as Kingbright draws them: a laminate substrate with a terminal at each end and a clear moulded lens on top. Top-view APHHS1005 (EIA 0402), APT1608 (0603), APT2012 (0805) and APT3216 (1206), and the side-view APA1606. The substrate, the lens and each terminal are their own solids. Dimensions from Kingbright's data sheets. See the README.
Kingbright's surface-mount chip LEDs: a laminate substrate with a terminal at each end and a water-clear moulded lens. The part is centred on the origin with its length along X, standing on the board (the XY plane) on its terminals. The substrate, the lens and each terminal are their own solids.
Kingbright data sheets, "PACKAGE DIMENSIONS" on page 1, in mm. Copies from kingbrightusa.com, https://www.kingbrightusa.com/images/catalog/SPEC/<part number>.pdf. The colour variants of a series share its package.
| Package | Data sheet | Spec no., revision, date | Tolerance |
|---|---|---|---|
| APHHS1005 | APHHS1005SURCK | DSAD0911, V.18A, 03/25/2021 | ±0.1 |
| APT1608 | APT1608SURCK | DSAD0926, V.22A, 04/08/2023 | ±0.1 |
| APT2012 | APT2012EC | DSAD0943, V.13A, 09/08/2021 | ±0.1 |
| APT3216 | APT3216SURCK | DSAD0989, V.16A, 03/17/2025 | ±0.2 |
| APA1606 | APA1606SURCK | DSAF0543, V.20A, 03/07/2025 | ±0.1 |
| Package | Length | Width | Height | Substrate | Lens at its foot | Lens at its top | Terminal underneath |
|---|---|---|---|---|---|---|---|
| APHHS1005 | 1 | 0.5 | 0.5 | 0.15 | 0.8 | 0.8 (drawn straight) | 0.4 |
| APT1608 | 1.6 | 0.8 | 0.75 | 0.25 | 1.2 | 1.1 | 0.3 |
| APT2012 | 2 | 1.25 | 0.75 | 0.25 | 1.3 | 1.2 | 0.4 |
| APT3216 | 3.2 | 1.6 | 0.75 | 0.25 | 2 | 1.9 | 0.5 |
| APA1606 | 1.6 | 1.2 over the lens | 0.6 | 0.6 | 1.2 | 1.1 | 0.25 |
For APA1606, the 0.6 substrate is its thickness from the back to the lens's foot. The lens stands 0.6 beyond it, to 1.2, and the part is 0.6 high on the board.
Proportions, stated plainly. The drawings show these but don't dimension them:
Materials. The sheets name no materials and give no weight, so the mass isn't checked. The substrate is a glass-epoxy laminate, about 1.9, shown as ptfe (2.2) like the library's other moulded packages. The lens is water-clear epoxy, about 1.2, shown as pmma (1.18). The terminals are plated copper.
LED_0402_1005Metric, LED_0603_1608Metric, LED_0805_2012Metric and LED_1206_3216Metric have no reference models. Each names an EIA chip size, and each maps to Kingbright's chip LED of that size.LED_Kingbright_APA1606_1.6x0.6mm_Horizontal maps to APA1606. Its reference model was measured against the sheet:| Reference model | APA1606 sheet | |
|---|---|---|
| Length | 1.6 | 1.6 |
| Depth over the lens | 1.2 | 1.2 |
| Height on the board | 0.6 | 0.6 |
The reference model is one plain solid with no terminals or lens shape, so only its envelope compares.
The other sizes (01005, 0201, 1210, 1806, 1812, 2010, 2512, 2816), the castellated-terminal entries, the PLCC and RGB LEDs, and the other makers' parts are left with their reasons in COVERAGE.md.
Kingbright through-hole 7-segment LED displays: CA56-12, CC56-12, DA56-11, DA04-11 and SBC18-11, by part number.
SMD quartz crystals by maker series: Epson FA-238, FA-238V, TSX-3225, MA-406, MA-505; TXC 7M, AX; Abracon ABM8G, ABM3B; EuroQuartz MT.
Surface-mount diode packages SOD-123, SOD-323, SOD-523 and SMF (DO-219AB), from Vishay's package drawings.
Molded SMD power inductors in the Sunlord MWSA-S sizes, 4.2 x 4.4 mm to 22 x 23.5 mm, by the maker's dimension table.