BIN resistance level test tool for verifying that the LED current of the DUT matches the BIN resistance level. Depends on device-control skill for programmable resistor and power supply control. Uses headlight configuration for "LB/HB" queries and signal LED configuration (64 channels, current x64) for "TI/DRL/PL" queries.
This skill executes BIN resistance level testing to verify that the LED output current of the Device Under Test (DUT) matches the BIN resistance levels.
@programmable-resistor skill@power-supply skill to apply the new resistance value@oscilloscope skill to read LED output current average from channel 4All device operations should use the corresponding device-control sub-skills:
| Operation |
|---|
| Skill to Use |
|---|
| Set BIN resistance | @programmable-resistor |
| Power on/off DUT | @power-supply |
| Measure current (CH4) | @oscilloscope |
Automatically selects configuration file based on user input:
| Keyword | LED Type | Config File | Current Multiplier |
|---|---|---|---|
| LB, HB | Headlight | bin_res_lbhb.txt | 1x |
| TI, DRL, PL | Signal LED | bin_res_sigled.txt | 64x |
Run the automated test script:
python3 ~/.claude/skills/bin_test/scripts/run_bin_test.py
The script will prompt for:
Use device-control skills for device operations:
# 1. Set BIN resistance (use @programmable-resistor skill)
# Skill: programmable-resistor
# Scripts: ~/.claude/skills/programmable-resistor/scripts/res_ctrl/
# Command: cd ~/.claude/skills/programmable-resistor/scripts/res_ctrl/ && uv run resistance_cli.py -p /dev/ttyUSB0 -v 10000
# 2. Power cycle (use @power-supply skill)
# Skill: power-supply
# Scripts: ~/.claude/skills/power-supply/scripts/power_ctrl/
# Command: cd ~/.claude/skills/power-supply/scripts/power_ctrl/ && uv run power_ctrl_cli.py -v 13.5 -o on
# Wait 2 seconds, then: uv run power_ctrl_cli.py -o off
# 3. Measure current (use @oscilloscope skill)
# Skill: oscilloscope
# Scripts: ~/.claude/skills/oscilloscope/scripts/yokogawa/
# Command: cd ~/.claude/skills/oscilloscope/scripts/yokogawa/ && uv run yokogawa_pyvisa.py mean -c 4
| Directory | Purpose |
|---|---|
~/.claude/skills/bin_test/config/ | BIN configuration files (bin_res_lbhb.txt, etc.) |
~/.claude/skills/bin_test/result/ | Test results (bin_test_result_*.csv) |
Note: Legacy files in ~/test_script/res_ctrl/ are still supported for backward compatibility.
Format: typical:min:max;theoretical_current
Example:
# Headlight