Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Intel Galileo Essentials

You're reading from  Intel Galileo Essentials

Product type Book
Published in Feb 2015
Publisher
ISBN-13 9781784398903
Pages 162 pages
Edition 1st Edition
Languages

Table of Contents (15) Chapters

Intel Galileo Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Getting Started with the Galileo 2. Accessing the GPIO Pins 3. Adding Display Functionality 4. Controlling DC Motors 5. Adding Sensors 6. Remote Control 7. Going Further with Galileo 8. Speech Output Index

Connecting an IR sensor to the Galileo


The first step in connecting an IR sensor to your Galileo is to obtain a sensor. One popular choice is the Sharp series of IR sensors. The following image shows one of the models, the Sharp 2Y0A02, a unit that provides sensing to a distance of 150 cm:

To connect this unit, you'll connect the three pins that are available on the bottom of the sensor. Here is the connection list:

Galileo Pin

Sensor Pin

5V

Vcc

GND

Gnd

A3

Vo

Unfortunately, there are no labels on the unit, but here are the pins you'll connect:

One of the challenges of making this connection is that the female-to-male connection jumpers are too big to connect directly to the sensor. You'll want to order a three-wire cable with connectors with the sensor. Many versions come with this cable. You can make the connections between this cable and the Galileo using the male-to-male jumper wires. Here is the diagram:

Once the pins are connected, you are ready to access the sensor via the IDE...

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 $15.99/month. Cancel anytime}