I²C sensors via USB on any Linux computer
Summary
Hackaday explains an ATtiny85 adapter that makes I²C sensors available via USB as a regular Linux I²C bus. The example names the BMP280 and Si1145. Debian Sid already contained a suitable BMP280 driver.
Ideas
- An ATtiny85 runs the I2C-Tiny-USB firmware.
- The kernel recognises the adapter as an I²C controller.
- i2c-dev allows direct access from userland programs.
- Existing IIO drivers integrate supported sensors.
Insights
- Standardised kernel classes make DIY hardware immediately usable with existing tools.
- A small microcontroller can form a clean protocol bridge.
- Generic drivers are more valuable in the long term than device-specific scripts.
Facts
- The adapter uses an ATtiny85.
Recommendations
- Check I²C voltage levels and pull-up resistors.
- Use kernel drivers before converting raw data yourself.
References
Links to the original source and the Web Archive open in a new tab.