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 6. Working with Analog Inputs and Local Storage

In this chapter, we will work with analog inputs to transform quantitative values retrieved from the real environment into qualitative values that we will use to fire actions. We will:

  • Understand how analog inputs work
  • Learn about the impact of the resolution of analog to digital converters
  • Measure a voltage with an analog pin and the mraa library
  • Include a photoresistor in a voltage divider and wire an analog input pin with a voltage source
  • Transform a variable resistor into a voltage source
  • Determine the darkness level with analog input and the mraa library
  • Fire actions when the environment light changes
  • Control analog inputs with the wiring-x86 library
  • Work with different local storage options ...

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