Lib-electronic-components bosch

Bosch 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/bosch" ~/.claude/skills/cantara-lib-electronic-components-bosch && rm -rf "$T"
manifest: .claude/skills/manufacturers/bosch/SKILL.md
source content

Bosch Manufacturer Handler Skill

Overview

BoschHandler manages Bosch Sensortec MEMS sensors including accelerometers, gyroscopes, IMUs, magnetometers, pressure sensors, environmental sensors, and gas sensors.

Supported Component Types

  • SENSOR
  • ACCELEROMETER
  • ACCELEROMETER_BOSCH
  • GYROSCOPE
  • GYROSCOPE_BOSCH
  • IMU_BOSCH
  • MAGNETOMETER
  • MAGNETOMETER_BOSCH
  • PRESSURE_SENSOR
  • PRESSURE_SENSOR_BOSCH
  • HUMIDITY_SENSOR
  • HUMIDITY_SENSOR_BOSCH
  • TEMPERATURE_SENSOR
  • TEMPERATURE_SENSOR_BOSCH
  • GAS_SENSOR_BOSCH

MPN Patterns

Accelerometers

PrefixDescription
BMAxDigital accelerometers
SMBxAnalog accelerometers

Gyroscopes

PrefixDescription
BMGxDigital gyroscopes

IMUs (Inertial Measurement Units)

PrefixDescription
BMIxAccelerometer + Gyroscope

Magnetometers

PrefixDescription
BMMxDigital magnetometers

Pressure Sensors

PrefixDescription
BMPxBarometric pressure sensors

Environmental Sensors

PrefixDescription
BMExHumidity + Pressure + Temperature

Gas Sensors

PrefixDescription
BME68xGas sensors
BME69xAdvanced gas sensors

Package Codes

SuffixPackage
FBLGA
FLUltra-small LGA
MIMetal lid LGA
TRLGA Tape & Reel
SGSMD
WBWLCSP
CPCSP

Series Extraction

Returns base series (e.g., "BMA456", "BMI270", "BME680").

Temperature Range Codes

CodeRange
-TStandard (-40 to +85°C)
-HHigh temp (-40 to +105°C)
-LLow temp (-40 to +65°C)
-AAutomotive (-40 to +125°C)

Replacement Logic

  • Same series with different packages compatible
  • Interface must match (I2C, SPI, ANALOG)
  • Temperature range compatibility: Automotive > High > Standard > Low
  • Known compatible pairs: BMA456/BMA455, BMI270/BMI160, BMP390/BMP388, BME680/BME688

Test Patterns

When testing BoschHandler:

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

Known Handler Issues

All issues fixed in PR #88

Common Part Numbers

Part NumberDescription
BME280Environmental sensor (humidity, pressure, temp)
BME680Gas sensor with environmental sensing
BMI2706-axis IMU
BMP388Barometric pressure sensor
BMA4563-axis accelerometer