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
libraryInclude 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
libraryFire actions when the environment light changes
Control analog inputs with the wiring-x86 library
Work with different local storage options to log events