yageo_rc module#
Yageo RC_L general-purpose chip resistor family (parameterized).
This models Yageo’s RC_L thick-film chip resistor series as a single
parameterized jitx.Component. One class covers every catalog part in
the family: choose a case size, resistance, and tolerance and the component
builds the matching land pattern, resistor symbol, and Yageo global part number
with no parts-database or online lookup. It is a drop-in alternative to
jitxlib.parts.Resistor and provides a matching YageoRC.insert()
helper.
Supported case sizes: the full RC_L family — 0075, 0100, 0201, 0402, 0603, 0805, 1206, 1210, 1218, 2010, 2512. The two ultra-tiny sizes (0075, 0100) are ESD-reel-only parts (packaging code S); JITX’s chip land-pattern generator keys them by metric body size (0075 -> 009005, 0100 -> 01005) rather than the Yageo label.
Datasheet (RC_L series, doc rev. 14); all dimensions below are transcribed from its Table 1: https://yageogroup.com/content/datasheet/asset/file/PYU-RC_GROUP_51_ROHS_L
Land-pattern construction, two-pin .insert(), value-code rounding, and the
E-series check are shared with the other chip-resistor families via
chip_smt.
- format_resistance_code(ohms, *, sig_figs=3)[source]#
Encode a resistance as a Yageo / IEC-60062 RKM part-number field.
The multiplier letter doubles as the decimal point:
R= x1,K= x1e3,M= x1e6. The mantissa carries up tosig_figssignificant digits; the value is first rounded to that resolution so decade carries propagate.>>> format_resistance_code(4.7) '4R7' >>> format_resistance_code(9760) '9K76' >>> format_resistance_code(100_000) '100K' >>> format_resistance_code(9999) '10K'
- class YageoRC(*, resistance: float, size: str = '0402', tolerance: float = 0.01, packaging: str | None = None, reel_power_code: str | None = None, check_eseries: bool = False)[source]#
Bases:
ComponentA Yageo RC_L general-purpose chip resistor, built from datasheet data.
- Parameters:
resistance (float) – Resistance in ohms (must be > 0).
size (str) – Imperial case code, e.g.
"0603". Any of the 11 RC_L sizes (0075-2512).tolerance (float) – Tolerance as a fraction:
0.001/0.005/0.01/0.05(codes B/D/F/J).packaging (str | None) – Packaging-type code.
Noneuses the size’s default —"R"(paper reel) for standard sizes,"S"(ESD reel) for 0075. Valid options are per-size: R/K for 0201-2512, S for 0075, R/S for 0100.reel_power_code (str | None) – Reel/power ordering field (datasheet field 5).
Noneuses"7N"for ESD (S) packaging else"07". The rated power is derived from this and the size;"7W"/"3W"select double power.check_eseries (bool) – If true, validate
resistanceagainst the E24/E96 grid.
- landpattern: Landpattern#