O'Reilly logo

Linux for Makers, 1st Edition by Aaron Newcomb

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 7. Controlling the Physical World

Most Makers will want to build a project that can manipulate and interact with the physical world by controlling sensors, motors, components, and devices. Controlling the devices and modules is mostly accomplished with programming, but there are some prerequisites to fulfill in Linux before you can jump into controlling them. In this chapter, I will explain how to control the general-purpose input/output (GPIO) pins, the inter-integrated circuit (I²C) protocol, and the serial peripheral interface (SPI) protocol and even how to interact with an Arduino. Though I won’t be able to go into details about how the programming works, I will provide some examples in Python that illustrate the fundamentals of ...

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