O'Reilly logo

Internet of Things with Python by Gastón C. Hillar

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

Chapter 7. Retrieving Data from the Real World with Sensors

In this chapter, we will work with a variety of sensors to retrieve data from the real world. We will cover the following topics:

  • Understanding sensors and their connection types
  • Learn the most important things we must consider when choosing sensors
  • Take advantage of the upm library with many different sensors
  • Measure the magnitude and direction of proper acceleration or g-force with an accelerometer
  • Work with a three axis analog accelerometer
  • Use a digital accelerometer that works with the I2C bus
  • Work with the mraa library and the I2C bus to control a digital accelerometer
  • Measure ambient temperature with an analog sensor
  • Use a digital temperature and humidity sensor that works with the I2

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