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
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Intel Galileo Networking Cookbook

You're reading from   Intel Galileo Networking Cookbook Over 50 recipes that will help you use the Intel Galileo board to build exciting network-connected projects

Arrow left icon
Product type Paperback
Published in Aug 2015
Publisher
ISBN-13 9781785281198
Length 174 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Marco Schwartz Marco Schwartz
Author Profile Icon Marco Schwartz
Marco Schwartz
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. Installing and Configuring Linux FREE CHAPTER 2. Connecting External Sensors 3. Controlling Hardware Devices 4. Creating a Web Server 5. Hosting Applications on the Galileo Board 6. Local Network Monitoring 7. Cloud Data Monitoring 8. Building a Home Automation System Index

Connecting a relay

In the first recipe of this chapter, we are going to see how to connect a relay to the Galileo board, and how to control it. This can, for example, be used in a home automation project, to control a lamp or another electrical device.

Getting ready

For this project, we will need a relay. I chose a simple 5V relay from Polulu (the Polulu 5V relay module). Of course, you can use any 5V relay module on the market and it should work just fine. You can get this module at https://www.pololu.com/product/2480.

You will also need to have your Galileo board ready to use with the Arduino IDE. Please refer to the first chapter if you haven't done this yet.

How to do it...

First, we need to assemble the hardware. The relay module only has three pins—VCC, GND, and usually one signal pin called EN (or SIG on some modules).

Connect the VCC pin to the 5V pin on the Galileo board. Then, connect the GND pin to the GND pin on the board. Finally, connect the SIG pin on the relay to pin...

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