Lib-electronic-components melexis

Melexis Manufacturer Handler Skill

install
source · Clone the upstream repo
git clone https://github.com/Cantara/lib-electronic-components
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/Cantara/lib-electronic-components "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.claude/skills/manufacturers/melexis" ~/.claude/skills/cantara-lib-electronic-components-melexis && rm -rf "$T"
manifest: .claude/skills/manufacturers/melexis/SKILL.md
source content

Melexis Manufacturer Handler Skill

Overview

MelexisHandler manages Melexis automotive and industrial sensors including Hall effect sensors, temperature sensors, current sensors, motor position sensors, and optical sensors.

Supported Component Types

  • SENSOR
  • MAGNETOMETER
  • TEMPERATURE_SENSOR

MPN Patterns

Hall Effect Sensors

PrefixDescription
MLX90242Hall switches
MLX90248Hall latches
MLX90251Hall current sensors
MLX90288Programmable Hall sensors
MLX902933D Hall sensors
MLX9036xTriaxis position sensors
MLX9037x3D position sensors
MLX9038xPosition sensors

Temperature Sensors

PrefixDescription
MLX90614IR temperature sensors
MLX90632Medical IR sensors
MLX90640IR array sensors (32x24)
MLX90641IR array sensors (16x12)

Current Sensors

PrefixDescription
MLX9120xCurrent sensors

Motor Position Sensors

PrefixDescription
MLX90380Motor position sensors
MLX90385Motor position sensors
MLX90367Motor position sensors

Optical Sensors

PrefixDescription
MLX7530xLight sensors

Package Codes

SuffixPackage
AAATO-92UA (unibody)
BAATO-92S (standard)
ESFSOIC-8
DCB, DCATO-220
LUAQFN-16 (4x4)
LXSQFN-24 (4x4)
LQVTQFP-44
TUA, TUBTO-18

Series Extraction

Returns first 8 characters (e.g., "MLX90614", "MLX90293").

Interface Codes

CodeInterface
-I, II2C
-P, PPWM
-A, AAnalog
-S, SSPI

Temperature Sensor FOV Codes

CodeField of View
5D5 degrees
10D10 degrees
35D35 degrees
90D90 degrees
100D100 degrees

Hall Sensor Sensitivity Codes

CodeSensitivity
HCHigh
MCMedium
LCLow
ULCUltra-low

Replacement Logic

  • Must be same base series
  • Interface must match
  • For temperature sensors: FOV must match
  • For Hall sensors: Sensitivity must match
  • Higher resolution can replace lower

Test Patterns

When testing MelexisHandler:

  1. Use documentation tests for
    matches()
    behavior
  2. Use assertions for
    extractPackageCode()
    ,
    extractSeries()
    , null handling
  3. Instantiate directly:
    new MelexisHandler()

Known Handler Issues

All issues fixed in PR #88

  • Package code extraction regex removes all alphanumerics, always returns empty

Common Part Numbers

Part NumberDescription
MLX90614ESF-BCCIR temperature sensor, SOIC-8
MLX90640ESF-BABIR array sensor, 32x24
MLX90393SLW3-axis magnetometer
MLX91208KDCCurrent sensor