Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Intel Galileo Essentials

You're reading from   Intel Galileo Essentials Leverage the power of Intel Galileo to construct amazingly simple, yet impressive projects

Arrow left icon
Product type Paperback
Published in Feb 2015
Publisher
ISBN-13 9781784398903
Length 162 pages
Edition 1st Edition
Tools
Arrow right icon
Toc

Table of Contents (10) Chapters Close

Preface 1. Getting Started with the Galileo FREE CHAPTER 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 $19.99/month. Cancel anytime
Banner background image