Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Intel Galileo Networking Cookbook
  • Toc
  • feedback
Intel Galileo Networking Cookbook

Intel Galileo Networking Cookbook

By : Marco Schwartz
5 (1)
close
Intel Galileo Networking Cookbook

Intel Galileo Networking Cookbook

5 (1)
By: Marco Schwartz

Overview of this book

Arduino is an electronic prototyping platform used by millions of people around the world. Intel Galileo is fully Arduino compatible; hence it combines the high performance of Intel with the simplicity of Arduino Software Development Environment. This makes it the ideal platform to build exciting projects, especially in the field of web-based connected applications and the Internet of Things. The book features several recipes all based on the Intel Galileo board, and that exploit the powerful features of the board. Each chapter explores a given field using the Galileo board. The book is mainly divided in three parts. The first part is all about learning the basics of the Intel Galileo board, but it uses some of the powerful features of the board such as connecting external sensors and complex hardware devices, compared with more basic Arduino boards. Then, the book dives into the topics related to networking and the Internet of Things. You will learn how to run a web server on the board and log data using a cloud-based service. Finally, the book ends with a chapter that aims to build a complete home automation hub using the Galileo board. This chapter uses everything that was learned in the book to make a home automation system using the Galileo board and Arduino.
Table of Contents (10 chapters)
close
9
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 7 on the Galileo...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete