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.
10-element LED bar graph arrays in a 20-pin dual in-line package: Broadcom HDSP-4820, 4830, 4832, 4836, 4840, 4850 and HLCP-J100.
| 1 | """10-element LED bar graph array in a 20-pin dual in-line package: Broadcom (Avago, Agilent) HDSP-4820, HDSP-4830, HDSP-4832, |
| 2 | HDSP-4836, HDSP-4840, HDSP-4850 and HLCP-J100. The board is the XY plane; the package's length runs along X with pin 1 and |
| 3 | segment a at the -X end, the face is up (+Z) and the pins go down through the board. Pins 1 to 10 are the -Y row, pins 11 to |
| 4 | 20 come back along the +Y row. The housing, each of the ten segments and each pin are separate solids. Dimensions in the README.""" |
| 5 | from steve import Model |
| 6 | |
| 7 | part_number = "HDSP-4830" # Part number |
| 8 | |
| 9 | # Package (Avago data sheet AV01-0277EN, June 26, 2006, page 1, "Package Dimensions"; the same drawing for every part number), mm: |
| 10 | PACKAGE = { |
| 11 | "length": 25.40, # "25.40 (1.000) MAX." |
| 12 | "width": 10.16, # "10.16 (0.400) MAX." |
| 13 | "body_height": 5.08, # "5.08 (0.200)", the housing's side |
| 14 | "top": 6.10, # "6.10 ± 0.25", the face above the seating plane |
| 15 | "pitch": 2.54, # "2.54 ± 0.25" between pins; "2.54 (0.100)" between segments |
| 16 | "row_spacing": 7.62, # "7.62 ± 0.38" |
| 17 | "pin_width": 0.61, # "0.61 (0.024)" |
| 18 | "pin_thickness": 0.38, # "0.38 (0.015)" |
| 19 | "pin_length": 4.06, # "4.06 (0.160) MIN." below the seating plane |
| 20 | "segment_width": 1.52, # "1.52 (0.060)" |
| 21 | "segment_length": 5.08, # "5.08 (0.200)" |
| 22 | "positions": 10, |
| 23 | } |
| 24 | # Segment colours a to j (page 1 description, page 3 "Multicolor Array Segment Colors"). |
| 25 | COLOURS = { |
| 26 | "HDSP-4820": ["red", "red", "red", "red", "red", "red", "red", "red", "red", "red"], |
| 27 | "HLCP-J100": ["AlGaAs red", "AlGaAs red", "AlGaAs red", "AlGaAs red", "AlGaAs red", "AlGaAs red", "AlGaAs red", "AlGaAs red", "AlGaAs red", "AlGaAs red"], |
| 28 | "HDSP-4830": ["high efficiency red", "high efficiency red", "high efficiency red", "high efficiency red", "high efficiency red", "high efficiency red", "high efficiency red", "high efficiency red", "high efficiency red", "high efficiency red"], |
| 29 | "HDSP-4840": ["yellow", "yellow", "yellow", "yellow", "yellow", "yellow", "yellow", "yellow", "yellow", "yellow"], |
| 30 | "HDSP-4850": ["green", "green", "green", "green", "green", "green", "green", "green", "green", "green"], |
| 31 | "HDSP-4832": ["high efficiency red", "high efficiency red", "high efficiency red", "yellow", "yellow", "yellow", "yellow", "green", "green", "green"], |
| 32 | "HDSP-4836": ["high efficiency red", "high efficiency red", "yellow", "yellow", "green", "green", "yellow", "yellow", "high efficiency red", "high efficiency red"], |
| 33 | } |
| 34 | SHOWN = {"red": "#e03a30", "AlGaAs red": "#ff3030", "high efficiency red": "#f05040", "yellow": "#f2d040", "green": "#6fd060"} |
| 35 | PROUD = 0.03 # segments stand this far proud of the face so the renderer draws their edges |
| 36 | |
| 37 | if part_number not in COLOURS: |
| 38 | raise ValueError(f"no part number {part_number!r}: {', '.join(COLOURS)}") |
| 39 | P = PACKAGE |
| 40 | n = P["positions"] |
| 41 | underside = P["top"] - P["body_height"] |
| 42 | first = -(n - 1) * P["pitch"] / 2 |
| 43 | |
| 44 | model = Model() |
| 45 | model.box("housing", P["length"], P["width"], P["body_height"], at=(0, 0, underside + P["body_height"] / 2), op="new", body="housing_body", name="Housing") |
| 46 | by_colour = {} |
| 47 | for i, colour in enumerate(COLOURS[part_number]): |
| 48 | letter = "abcdefghij"[i] |
| 49 | model.box(f"segment_{letter}", P["segment_width"], P["segment_length"], PROUD, at=(first + i * P["pitch"], 0, P["top"] + PROUD / 2), |
| 50 | op="new", body=f"segment_{letter}_body", name=f"Segment {letter}") |
| 51 | by_colour.setdefault(colour, []).append(f"segment_{letter}_body") |
| 52 | pins = [] |
| 53 | run = underside + P["pin_length"] |
| 54 | for i in range(n): |
| 55 | for number, x, y in ((i + 1, first + i * P["pitch"], -P["row_spacing"] / 2), (2 * n - i, first + i * P["pitch"], P["row_spacing"] / 2)): |
| 56 | model.box(f"pin_{number}", P["pin_width"], P["pin_thickness"], run, at=(x, y, underside - run / 2), op="new", body=f"pin_{number}_body", name=f"Pin {number}") |
| 57 | pins.append(f"pin_{number}_body") |
| 58 | |
| 59 | # Materials (the sheet names none and gives no weight; README): housing plastic shown as pc, the light bars as pmma tinted with |
| 60 | # the emitting colour, the pins as copper. |
| 61 | model.material("pc", bodies=["housing_body"], color="#3a3c3f") |
| 62 | for k, (colour, bodies) in enumerate(by_colour.items()): |
| 63 | model.material("pmma", bodies=bodies, color=SHOWN[colour]) |
| 64 | model.material("copper", bodies=pins, color="#c9ccd1") |
| 65 | result = model.result() |
| 66 |
| 1 | name = "steve/led-bar-graph" |
| 2 | version = "1.0.0" |
| 3 | runtime = "steve" |
| 4 | license = "MIT" |
| 5 | summary = "10-element LED bar graph arrays in a 20-pin dual in-line package: Broadcom HDSP-4820, 4830, 4832, 4836, 4840, 4850 and HLCP-J100." |
| 6 | description = """Broadcom (Avago, Agilent) 10-element LED bar graph arrays: a 25.4 x 10.16 mm housing with ten 1.52 x 5.08 mm light bars at 2.54 mm pitch on 20 pins in two rows 7.62 mm apart. Red, high efficiency red, yellow, green and the two multicolour arrays. The housing, every segment and every pin are separate solids. See the README.""" |
| 7 | tags = ["led", "bar-graph", "bargraph", "display", "led-array", "dip-20", "through-hole", "broadcom", "avago", "electronics"] |
| 8 | |
| 9 | [parameters.part_number] |
| 10 | type = "choice" |
| 11 | default = "HDSP-4830" |
| 12 | choices = ["HDSP-4820", "HLCP-J100", "HDSP-4830", "HDSP-4840", "HDSP-4850", "HDSP-4832", "HDSP-4836"] |
| 13 | label = "Part number" |
| 14 | description = "HDSP-4820 red, HLCP-J100 AlGaAs red (low current), HDSP-4830 high efficiency red, HDSP-4840 yellow, HDSP-4850 green, HDSP-4832 and HDSP-4836 multicolour (red, yellow and green segments)." |
| 15 | |
| 16 | [[presets]] |
| 17 | id = "HLCP-J100" |
| 18 | title = "Broadcom HLCP-J100 10-element LED bar graph array, AlGaAs red, low current, 25.4 x 10.16, 20 pins" |
| 19 | params = { part_number = "HLCP-J100" } |
| 20 | aliases = ["HLCP-J100.", "HLCP-J100", "Display", "HLCPJ100", "HLCP J100", "HLCP-J100 bar graph", "10 segment LED bar graph", "LED bargraph DIP-20"] |
| 21 | standard = "Broadcom" |
| 22 | |
| 23 | [[presets]] |
| 24 | id = "HDSP-4830" |
| 25 | title = "Broadcom HDSP-4830 10-element LED bar graph array, high efficiency red, 25.4 x 10.16, 20 pins" |
| 26 | params = { part_number = "HDSP-4830" } |
| 27 | aliases = ["HDSP-4830.", "HDSP-4830", "Display", "HDSP4830", "HDSP 4830", "HDSP-4830 bar graph", "10 segment LED bar graph", "LED bargraph DIP-20"] |
| 28 | standard = "Broadcom" |
| 29 | |
| 30 | [[presets]] |
| 31 | id = "HDSP-4840" |
| 32 | title = "Broadcom HDSP-4840 10-element LED bar graph array, yellow, 25.4 x 10.16, 20 pins" |
| 33 | params = { part_number = "HDSP-4840" } |
| 34 | aliases = ["HDSP-4840.", "HDSP-4840", "Display", "HDSP4840", "HDSP 4840", "HDSP-4840 bar graph", "10 segment LED bar graph", "LED bargraph DIP-20"] |
| 35 | standard = "Broadcom" |
| 36 | |
| 37 | [[presets]] |
| 38 | id = "HDSP-4850" |
| 39 | title = "Broadcom HDSP-4850 10-element LED bar graph array, green, 25.4 x 10.16, 20 pins" |
| 40 | params = { part_number = "HDSP-4850" } |
| 41 | aliases = ["HDSP-4850.", "HDSP-4850", "Display", "HDSP4850", "HDSP 4850", "HDSP-4850 bar graph", "10 segment LED bar graph", "LED bargraph DIP-20"] |
| 42 | standard = "Broadcom" |
| 43 | |
| 44 | [[presets]] |
| 45 | id = "HDSP-4832" |
| 46 | title = "Broadcom HDSP-4832 10-element LED bar graph array, multicolour: 3 red, 4 yellow, 3 green, 25.4 x 10.16, 20 pins" |
| 47 | params = { part_number = "HDSP-4832" } |
| 48 | aliases = ["HDSP-4832.", "HDSP-4832", "Display", "HDSP4832", "HDSP 4832", "HDSP-4832 bar graph", "10 segment LED bar graph", "LED bargraph DIP-20"] |
| 49 | standard = "Broadcom" |
| 50 | |
| 51 | [[presets]] |
| 52 | id = "HDSP-4836" |
| 53 | title = "Broadcom HDSP-4836 10-element LED bar graph array, multicolour: red, yellow, green, yellow, red, 25.4 x 10.16, 20 pins" |
| 54 | params = { part_number = "HDSP-4836" } |
| 55 | aliases = ["HDSP-4836.", "HDSP-4836", "Display", "HDSP4836", "HDSP 4836", "HDSP-4836 bar graph", "10 segment LED bar graph", "LED bargraph DIP-20"] |
| 56 | standard = "Broadcom" |
| 57 | |
| 58 | [[presets]] |
| 59 | id = "HDSP-4820" |
| 60 | title = "Broadcom HDSP-4820 10-element LED bar graph array, red, 25.4 x 10.16, 20 pins" |
| 61 | params = { part_number = "HDSP-4820" } |
| 62 | aliases = ["HDSP-4820", "HDSP4820", "HDSP 4820", "HDSP-4820 bar graph", "10 segment LED bar graph", "LED bargraph DIP-20"] |
| 63 | standard = "Broadcom" |
| 64 |
A 10-element LED bar graph array in a 20-pin dual in-line package: Broadcom's (Avago, Agilent) HDSP-4820, HDSP-4830, HDSP-4832, HDSP-4836, HDSP-4840, HDSP-4850 and HLCP-J100. Ten light bars side by side on a housing that stacks end to end with its neighbours.
The board is the XY plane. The package's length runs along X with pin 1 and segment a at the -X end, the face is up and the pins go down through the board. Pins 1 to 10 are the -Y row; pins 11 to 20 come back along the +Y row, so pin 20 faces pin 1. The housing, each of the ten segments and each pin are separate solids.
Parameter: part_number. Every part number has the same package; only the segment colours differ.
Avago Technologies data sheet AV01-0277EN, "10-Element Bar Graph Array", June 26, 2006 (obsoletes 5989-2902EN): "Package Dimensions" on page 1, the internal circuit and pin table on page 2, "Multicolor Array Segment Colors" on page 3. Copy read: static.datasheets.com/doc/23443030-avago-hdsp-4830-ds.pdf. Agilent's 5963-7037E (11/99) carries the same drawing.
| Dimension | Sheet |
|---|---|
| Length | 25.40 (1.000) MAX. |
| Width | 10.16 (0.400) MAX. |
| Housing side height | 5.08 (0.200) |
| Face above the seating plane | 6.10 ± 0.25 |
| Pins below the seating plane | 4.06 (0.160) MIN. |
| Pin pitch | 2.54 ± 0.25 |
| Row spacing | 7.62 ± 0.38 |
| Pin | 0.61 (0.024) wide, 0.38 (0.015) thick |
| Segment | 1.52 (0.060) wide, 5.08 (0.200) long, 2.54 (0.100) apart |
The sheet's note 2: untoleranced dimensions are for reference only. The model uses the maximum length and width and the minimum pin length. The housing is 5.08 high with its face 6.10 above the board, so its underside is 1.02 above the board; the pins run from there to 4.06 below the board.
| Part number | Segments a to j |
|---|---|
| HDSP-4820 | red |
| HLCP-J100 | AlGaAs red, for low current |
| HDSP-4830 | high efficiency red |
| HDSP-4840 | yellow |
| HDSP-4850 | green |
| HDSP-4832 | a to c high efficiency red, d to g yellow, h to j green |
| HDSP-4836 | a, b high efficiency red; c, d yellow; e, f green; g, h yellow; i, j high efficiency red |
Pins (page 2): pins 1 to 10 are the anodes of segments a to j, pins 20 down to 11 their cathodes, so each segment sits between its own two pins.
Taken from how the sheet draws it, not from a dimension. The pins and the segments are centred on the housing's length, each pin pair under its segment, and the segments are centred across the width.
Not modelled. The small tab on each end of the housing, which the sheet dimensions as 0.38 (0.015) proud of the end (26.16 over both tabs); the wider shoulders of the pins above the board; the narrower foot of the housing between the pin rows; the pin 1 mark and the printing.
Proportions, for looks only. The segments stand 0.03 proud of the face so their outlines show.
Materials. The sheet names no materials and gives no weight, so the mass isn't checked. The housing is shown as pc in dark grey, the light bars as pmma tinted with the emitting colour, the pins as copper. No material was chosen to meet a weight.
The old catalogue's HDSP 4830, 4832, 4836, 4840, 4850 and HLCP J100 entries map to the presets of those part numbers. Their six reference models are one and the same shape, measured for overall size only: 26.16 long (25.40 plus a 0.38 tab at each end), 10.36 wide, and from 4.06 below the board to 6.12 above it. The sheet: 25.40 max, 10.16 max, 4.06 min and 6.10.
The entry "HDSP 48xx" is left out: it is a series name, not a part number. HDSP-4820 is on the sheet but not in the old catalogue.
| 1 | # LED bar graph |
| 2 | |
| 3 | A 10-element LED bar graph array in a 20-pin dual in-line package: Broadcom's (Avago, Agilent) HDSP-4820, HDSP-4830, HDSP-4832, HDSP-4836, HDSP-4840, HDSP-4850 and HLCP-J100. Ten light bars side by side on a housing that stacks end to end with its neighbours. |
| 4 | |
| 5 | The board is the XY plane. The package's length runs along X with pin 1 and segment a at the -X end, the face is up and the pins go down through the board. Pins 1 to 10 are the -Y row; pins 11 to 20 come back along the +Y row, so pin 20 faces pin 1. The housing, each of the ten segments and each pin are separate solids. |
| 6 | |
| 7 | Parameter: `part_number`. Every part number has the same package; only the segment colours differ. |
| 8 | |
| 9 | ## Source |
| 10 | |
| 11 | Avago Technologies data sheet AV01-0277EN, "10-Element Bar Graph Array", June 26, 2006 (obsoletes 5989-2902EN): "Package Dimensions" on page 1, the internal circuit and pin table on page 2, "Multicolor Array Segment Colors" on page 3. Copy read: static.datasheets.com/doc/23443030-avago-hdsp-4830-ds.pdf. Agilent's 5963-7037E (11/99) carries the same drawing. |
| 12 | |
| 13 | | Dimension | Sheet | |
| 14 | |---|---| |
| 15 | | Length | 25.40 (1.000) MAX. | |
| 16 | | Width | 10.16 (0.400) MAX. | |
| 17 | | Housing side height | 5.08 (0.200) | |
| 18 | | Face above the seating plane | 6.10 ± 0.25 | |
| 19 | | Pins below the seating plane | 4.06 (0.160) MIN. | |
| 20 | | Pin pitch | 2.54 ± 0.25 | |
| 21 | | Row spacing | 7.62 ± 0.38 | |
| 22 | | Pin | 0.61 (0.024) wide, 0.38 (0.015) thick | |
| 23 | | Segment | 1.52 (0.060) wide, 5.08 (0.200) long, 2.54 (0.100) apart | |
| 24 | |
| 25 | The sheet's note 2: untoleranced dimensions are for reference only. The model uses the maximum length and width and the minimum pin length. The housing is 5.08 high with its face 6.10 above the board, so its underside is 1.02 above the board; the pins run from there to 4.06 below the board. |
| 26 | |
| 27 | | Part number | Segments a to j | |
| 28 | |---|---| |
| 29 | | HDSP-4820 | red | |
| 30 | | HLCP-J100 | AlGaAs red, for low current | |
| 31 | | HDSP-4830 | high efficiency red | |
| 32 | | HDSP-4840 | yellow | |
| 33 | | HDSP-4850 | green | |
| 34 | | HDSP-4832 | a to c high efficiency red, d to g yellow, h to j green | |
| 35 | | HDSP-4836 | a, b high efficiency red; c, d yellow; e, f green; g, h yellow; i, j high efficiency red | |
| 36 | |
| 37 | Pins (page 2): pins 1 to 10 are the anodes of segments a to j, pins 20 down to 11 their cathodes, so each segment sits between its own two pins. |
| 38 | |
| 39 | **Taken from how the sheet draws it, not from a dimension.** The pins and the segments are centred on the housing's length, each pin pair under its segment, and the segments are centred across the width. |
| 40 | |
| 41 | **Not modelled.** The small tab on each end of the housing, which the sheet dimensions as 0.38 (0.015) proud of the end (26.16 over both tabs); the wider shoulders of the pins above the board; the narrower foot of the housing between the pin rows; the pin 1 mark and the printing. |
| 42 | |
| 43 | **Proportions, for looks only.** The segments stand 0.03 proud of the face so their outlines show. |
| 44 | |
| 45 | **Materials.** The sheet names no materials and gives no weight, so the mass isn't checked. The housing is shown as pc in dark grey, the light bars as pmma tinted with the emitting colour, the pins as copper. No material was chosen to meet a weight. |
| 46 | |
| 47 | ## Catalogue models |
| 48 | |
| 49 | The old catalogue's HDSP 4830, 4832, 4836, 4840, 4850 and HLCP J100 entries map to the presets of those part numbers. Their six reference models are one and the same shape, measured for overall size only: 26.16 long (25.40 plus a 0.38 tab at each end), 10.36 wide, and from 4.06 below the board to 6.12 above it. The sheet: 25.40 max, 10.16 max, 4.06 min and 6.10. |
| 50 | |
| 51 | The entry "HDSP 48xx" is left out: it is a series name, not a part number. HDSP-4820 is on the sheet but not in the old catalogue. |
| 52 |
Broadcom (Avago, Agilent) 10-element LED bar graph arrays: a 25.4 x 10.16 mm housing with ten 1.52 x 5.08 mm light bars at 2.54 mm pitch on 20 pins in two rows 7.62 mm apart. Red, high efficiency red, yellow, green and the two multicolour arrays. The housing, every segment and every pin are separate solids. See the README.
A 10-element LED bar graph array in a 20-pin dual in-line package: Broadcom's (Avago, Agilent) HDSP-4820, HDSP-4830, HDSP-4832, HDSP-4836, HDSP-4840, HDSP-4850 and HLCP-J100. Ten light bars side by side on a housing that stacks end to end with its neighbours.
The board is the XY plane. The package's length runs along X with pin 1 and segment a at the -X end, the face is up and the pins go down through the board. Pins 1 to 10 are the -Y row; pins 11 to 20 come back along the +Y row, so pin 20 faces pin 1. The housing, each of the ten segments and each pin are separate solids.
Parameter: part_number. Every part number has the same package; only the segment colours differ.
Avago Technologies data sheet AV01-0277EN, "10-Element Bar Graph Array", June 26, 2006 (obsoletes 5989-2902EN): "Package Dimensions" on page 1, the internal circuit and pin table on page 2, "Multicolor Array Segment Colors" on page 3. Copy read: static.datasheets.com/doc/23443030-avago-hdsp-4830-ds.pdf. Agilent's 5963-7037E (11/99) carries the same drawing.
| Dimension | Sheet |
|---|---|
| Length | 25.40 (1.000) MAX. |
| Width | 10.16 (0.400) MAX. |
| Housing side height | 5.08 (0.200) |
| Face above the seating plane | 6.10 ± 0.25 |
| Pins below the seating plane | 4.06 (0.160) MIN. |
| Pin pitch | 2.54 ± 0.25 |
| Row spacing | 7.62 ± 0.38 |
| Pin | 0.61 (0.024) wide, 0.38 (0.015) thick |
| Segment | 1.52 (0.060) wide, 5.08 (0.200) long, 2.54 (0.100) apart |
The sheet's note 2: untoleranced dimensions are for reference only. The model uses the maximum length and width and the minimum pin length. The housing is 5.08 high with its face 6.10 above the board, so its underside is 1.02 above the board; the pins run from there to 4.06 below the board.
| Part number | Segments a to j |
|---|---|
| HDSP-4820 | red |
| HLCP-J100 | AlGaAs red, for low current |
| HDSP-4830 | high efficiency red |
| HDSP-4840 | yellow |
| HDSP-4850 | green |
| HDSP-4832 | a to c high efficiency red, d to g yellow, h to j green |
| HDSP-4836 | a, b high efficiency red; c, d yellow; e, f green; g, h yellow; i, j high efficiency red |
Pins (page 2): pins 1 to 10 are the anodes of segments a to j, pins 20 down to 11 their cathodes, so each segment sits between its own two pins.
Taken from how the sheet draws it, not from a dimension. The pins and the segments are centred on the housing's length, each pin pair under its segment, and the segments are centred across the width.
Not modelled. The small tab on each end of the housing, which the sheet dimensions as 0.38 (0.015) proud of the end (26.16 over both tabs); the wider shoulders of the pins above the board; the narrower foot of the housing between the pin rows; the pin 1 mark and the printing.
Proportions, for looks only. The segments stand 0.03 proud of the face so their outlines show.
Materials. The sheet names no materials and gives no weight, so the mass isn't checked. The housing is shown as pc in dark grey, the light bars as pmma tinted with the emitting colour, the pins as copper. No material was chosen to meet a weight.
The old catalogue's HDSP 4830, 4832, 4836, 4840, 4850 and HLCP J100 entries map to the presets of those part numbers. Their six reference models are one and the same shape, measured for overall size only: 26.16 long (25.40 plus a 0.38 tab at each end), 10.36 wide, and from 4.06 below the board to 6.12 above it. The sheet: 25.40 max, 10.16 max, 4.06 min and 6.10.
The entry "HDSP 48xx" is left out: it is a series name, not a part number. HDSP-4820 is on the sheet but not in the old catalogue.
Kingbright through-hole 7-segment LED displays: CA56-12, CC56-12, DA56-11, DA04-11 and SBC18-11, by part number.
Through-hole round LEDs from Vishay's drawings: 5 mm (T-1 3/4, TLHx5400) and 3 mm (T-1, TLHx4400), red, yellow or green.
Through-hole TO packages standing on the board: TO-220AB, TO-220AC, TO-220F, TO-262, TO-251AA, TO-247AC, TO-126, TO-92 and the TO-3, TO-18, TO-39 and TO-46 metal cans, from the makers' drawings.
Board-mounted DC/DC converter modules: RECOM R-78 and R-5xxxPA regulators; TRACO POWER TSR 1, TMR 1, TEN 10 and TEN 20; XP Power IA, IH and IT; Cincon EC5BE; Murata NMA and CRE1.