Sensors over I2C, SPI and 1-Wire
Connect real sensors to a Pi: enabling the interfaces, checking device files, scanning an I2C bus with i2cdetect, reading registers with smbus2, why a Pi needs an external ADC and how to read an MCP3008 over SPI, the DS18B20 temperature sensor through the Linux 1-Wire driver, pull-ups and voltage levels, and a reliable sensor read loop.
Sensors over I2C, SPI and 1-Wire
Connect real sensors to a Pi: enabling the interfaces, checking device files, scanning an I2C bus with i2cdetect, reading registers with smbus2, why a Pi needs an external ADC and how to read an MCP3008 over SPI, the DS18B20 temperature sensor through the Linux 1-Wire driver, pull-ups and voltage levels, and a reliable sensor read loop.
In this lesson:
- i2c
- spi
- 1-wire
- ds18b20
- bme280
- mcp3008
- smbus2
- i2cdetect
- sensors
- adc
Official References
This lesson is part of a paid plan
Upgrade to Pro to unlock this course, its labs and its exam.
View Pricing Plans