Sign in with STEVE

steve/led-bar-graph

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.

v1.0.0 Latest STEVE MIT 3
Isometric
part.py 66 lines · Python · STEVE runtime · checked
Download
1"""10-element LED bar graph array in a 20-pin dual in-line package: Broadcom (Avago, Agilent) HDSP-4820, HDSP-4830, HDSP-4832,
2HDSP-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
3segment 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
420 come back along the +Y row. The housing, each of the ten segments and each pin are separate solids. Dimensions in the README."""
5from steve import Model
6
7part_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:
10PACKAGE = {
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").
25COLOURS = {
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}
34SHOWN = {"red": "#e03a30", "AlGaAs red": "#ff3030", "high efficiency red": "#f05040", "yellow": "#f2d040", "green": "#6fd060"}
35PROUD = 0.03 # segments stand this far proud of the face so the renderer draws their edges
36
37if part_number not in COLOURS:
38 raise ValueError(f"no part number {part_number!r}: {', '.join(COLOURS)}")
39P = PACKAGE
40n = P["positions"]
41underside = P["top"] - P["body_height"]
42first = -(n - 1) * P["pitch"] / 2
43
44model = Model()
45model.box("housing", P["length"], P["width"], P["body_height"], at=(0, 0, underside + P["body_height"] / 2), op="new", body="housing_body", name="Housing")
46by_colour = {}
47for 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")
52pins = []
53run = underside + P["pin_length"]
54for 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.
61model.material("pc", bodies=["housing_body"], color="#3a3c3f")
62for k, (colour, bodies) in enumerate(by_colour.items()):
63 model.material("pmma", bodies=bodies, color=SHOWN[colour])
64model.material("copper", bodies=pins, color="#c9ccd1")
65result = model.result()
66

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.

LED bar graph

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.

Source

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.

Catalogue models

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. 1.0.0 Latest
More #led
STEVEMIT

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.

6 17 sizes 0 3 weeks ago v1.0.0
STEVEMIT

steve/tht-led

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.

10 6 sizes 0 3 weeks ago v1.0.1
STEVEMIT

steve/to-package

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.

24 15 sizes 0 3 weeks ago v1.3.1
STEVEMIT

steve/dcdc-converter

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.

20 24 sizes 0 2 weeks ago v1.3.0