© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
G. FlurryJava on the Raspberry Pihttps://doi.org/10.1007/978-1-4842-7264-0_12

12. An Analog-to-Digital Converter

Greg Flurry1  
(1)
Austin, TX, USA
 
The Raspberry Pi, unlike some of its competitors, does not offer true analog I/O. Analog input is particularly interesting, as IoT projects often need to monitor things that produce analog signals. In this chapter, we’ll produce a device library for an analog-to-digital converter, or ADC. For this book, I chose the Microchip MCP3008, a member of an extensive family of ADCs manufactured by the company, for a few reasons:
  • It is inexpensive and easy to acquire.

  • It is quite easy to use (once you understand it).

  • It uses ...

Get Java on the Raspberry Pi: Develop Java Programs to Control Devices for Robotics, IoT, and Beyond now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.