intermediate

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.

65 min

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

🔒 This lesson is part of a paid plan

This lesson is part of the Pro plan. Upgrade to unlock the full lesson, the labs and the exam.

Upgrade Now

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