Summary
In this chapter, we learned about sensors and their connection types. We understood that it is necessary to consider many important things when choosing sensors and that they make it easy for us to measure different variables from the real world. We learned the importance of considering the units of measure because sensors always provide values measured in a specific unit that we must consider.
We wrote code that took advantage of the modules and classes included in the upm
library that made it easier for us to start working with analog and digital sensors. In addition, we wrote code that interacted with a digital accelerometer through the I2C bus because we wanted to be able to take advantage of additional features provided by the sensor but not included in the upm
library module.
We measured the magnitude and direction of proper acceleration or g-force, ambient temperature and humidity. As in the previous chapters, we continued taking advantage of Python's object-oriented features...