Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Android Things Quick Start Guide

You're reading from  Android Things Quick Start Guide

Product type Book
Published in Aug 2018
Publisher Packt
ISBN-13 9781789341799
Pages 192 pages
Edition 1st Edition
Languages
Author (1):
Raul Portales Raul Portales
Profile icon Raul Portales

GPIO - Digital Input/Output

Now that we have seen all the hardware working with the Rainbow HAT in the previous chapter, we are going to learn about the first communication protocol: GPIO (General-Purpose Input/Output). We have used it already for LEDs as output and for buttons as input, and we will extend that to other outputs and inputs. Finally, we will look at a few components that use GPIO in a more generic way (DC motor controller, stepper motor, distance sensor, and LCD display).

GPIO is the simplest protocol to control devices; it just uses digital signals that can be on or off. In digital circuits, there are two possible values for what is considered a logic 1: 3.3v and 5v. The current Android Things developer kits use 3.3v. Note that the developer kits have some 5v Vcc pins, but that is used exclusively to power external circuits and has nothing to do with the value...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}