O'Reilly logo

Wearable-Tech Projects with the Raspberry Pi Zero by Jon Witts

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Reading our heart rate

Now that we have connected all of our hardware, we should first check whether we can see all of our devices on the I2C bus. Switch on your Pi Zero, and connect to over SSH. Once you are logged in, run the following command to check the devices detected on the I2C bus – i2cdetect -y 1. You should see the same as this:

This is telling us that we can see five different devices on our I2C bus:

  • 0x49: Enviro pHAT - ADS1015
  • 0x29: Enviro pHAT - TCS3472
  • 0x1d: Enviro pHAT - LSM303D
  • 0x77: Enviro pHAT - BMP280
  • 0x74: Scroll pHAT HD

If you cannot see these five devices on your I2C bus, then you need to go back and check whether ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required