Skip to Content
Internet of Things with Python
book

Internet of Things with Python

by Gastón C. Hillar
May 2016
Intermediate to advanced content levelIntermediate to advanced
388 pages
9h 9m
English
Packt Publishing
Content preview from Internet of Things with Python

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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Getting Started with Python for the Internet of Things

Getting Started with Python for the Internet of Things

Tim Cox, Dr. Steven Lawrence Fernandes, Sai Yamanoor, Srihari Yamanoor, Prof. Diwakar Vaish

Publisher Resources

ISBN: 9781785881381Supplemental Content