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
Intel Galileo Essentials
Intel Galileo Essentials

Intel Galileo Essentials: Leverage the power of Intel Galileo to construct amazingly simple, yet impressive projects

Arrow left icon
Profile Icon Richard Grimmett
Arrow right icon
€8.99 €19.99
eBook Feb 2015 162 pages 1st Edition
eBook
€8.99 €19.99
Paperback
€24.99
Subscription
Free Trial
Renews at €18.99p/m
Arrow left icon
Profile Icon Richard Grimmett
Arrow right icon
€8.99 €19.99
eBook Feb 2015 162 pages 1st Edition
eBook
€8.99 €19.99
Paperback
€24.99
Subscription
Free Trial
Renews at €18.99p/m
eBook
€8.99 €19.99
Paperback
€24.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Intel Galileo Essentials

Chapter 1. Getting Started with the Galileo

You've chosen Intel's new Galileo processor board and you are ready to start some amazing projects. However, you might be new to this kind of processor, or you might have used another similar processor but not the Galileo. This book is designed to lead you step-by-step through a number of examples that will provide you with the knowledge you need to access the power of the Galileo. You'll also learn how to add additional hardware to sense the world around you, display information, and even control motors or servos.

In this chapter, you'll start by unpacking and connecting the Galileo to your host machine, then you'll learn how to use the Galileo from your remote computer. If you know how to use Mac or Linux machines, this chapter will show you how to use them. You'll take a peek into the internals of the Galileo and learn about the Linux machine hiding behind the simple Galileo exterior.

For this chapter, the objectives are as follows:

  • Unpacking and connecting the Galileo to a host computer
  • Loading and configuring the Galileo IDE, based on the Arduino IDE
  • Downloading and running some simple example programs
  • Taking a peek at the Linux machine at the heart of the Galileo

Unpacking and connecting the Galileo

The Galileo is packaged with a power cable. Here is a picture of the board:

Unpacking and connecting the Galileo

This is how the board will look without the adapter:

Unpacking and connecting the Galileo

Note

This particular Galileo is a Gen 2 board. This version is a slightly improved version of the original Gen 1 board, and has a few connector changes. The examples in this book have been tested on both versions, and should work unless noted.

The power connection is very straightforward. However, you'll also need another cable to start working with the Galileo. This is a USB-to-micro USB cable. Here is a picture:

Unpacking and connecting the Galileo

This cable will go between the Galileo and the host machine to develop and debug the code. Here are the specific connections:

Unpacking and connecting the Galileo

To prepare for developing the Galileo, plug the power into an outlet and the board. A green power LED close to the USB connector should light. Now you are ready to connect your board to a remote computer to begin programming The next sections will cover how to connect your Galileo to a computer running Windows, OS X, or Linux.

Downloading the software and connecting the Galileo to a Windows machine

The first step in setting up your remote computer for development with the Galileo is to download the Integrated Development Environment (IDE) software from https://communities.intel.com/docs/DOC-22226. Choose the download link for Windows. This will download the IDE as well as the drivers for the Galileo. When this file is downloaded, unzip the file using an archive manager (for example 7-zip) to a location on your C:. This will un-archive a set of files and directories under the arduino-1.5.3-Intel.1.0.3 directory structure.

Plug the USB from the Galileo into your computer. If you are using a newer version of Microsoft Windows, when you plug the Galileo into the system it will try to install the drivers automatically. The device will fail to install. You'll need to install the drivers manually, using the following steps:

  1. Select the Start | Control Panel | Device Manager inside Windows. Under the Other devices menu, select the Gadget Serial v2.4 device. Then select Update Driver Software, as shown in the following screenshot:
    Downloading the software and connecting the Galileo to a Windows machine
  2. Next click on Browse my computer for driver software.
  3. Click on Browse… next to the file path input box.
  4. If you installed your Arduino IDE folder in the root of your hard drive, navigate to C:\ardunio-1.5.3\hardware\arduino\x86\tools and click on OK. If you have installed it in a different location, navigate to this directory, select it, and then click on OK.

You will get a security warning; click on OK and the drivers will install. When your drivers are installed, you should see the following device when you navigate to Start Menu | Devices and Printers:

Downloading the software and connecting the Galileo to a Windows machine

In this case, the device is connected to COM port 34. Note down the COM port the Galileo is connected to as you'll need that in a minute.

Downloading the software and connecting the Galileo to a Mac

If you are using an OS X machine, download the OS X version of the IDE software at https://communities.intel.com/docs/DOC-22226. Unzip this file into your Applications folder. Then connect the 5V power to the Galileo. Connect the USB cable from the Galileo to an available USB socket on your computer. Wait for a minute while the Galileo boots up. To verify that the Galileo has loaded properly, open the System Information window. Then check under the USB tab for a Gadget Serial v2.4 entry as demonstrated in the following screenshot:

Downloading the software and connecting the Galileo to a Mac

You should also check under the Network tab to find the device name of your Galileo. It should be something like usbmodemXXXX. Note down this name as you will need it to select the correct port later when you configure the connection to the Galileo. You are now ready to run the software.

Downloading the software and connecting the Galileo to a Linux machine

If you are using a Linux machine, download the Linux version of the IDE software from https://communities.intel.com/docs/DOC-22226. Unpack this file using tar -zxvf arduino-1.5.3-linux32.tar.gz. You will also need to disable the modem manager on most Linux distributions to enable uploading to the board. How you do this will vary by distribution but, if you are using the Ubuntu distribution, type sudo apt-get remove modemmanager.

To connect the Galileo board to the Linux machine, simply plug in the USB connector to one of the USB ports on the Linux machine. Open a terminal and type sudo ls /dev/ttyACM* and this will list the device connected to the machine. You should note down this value as you will later need to specify the port.

Running the IDE for the Galileo

Now that the device is installed, you can run the IDE. Select and run the program based on the type of machine you are using. The IDE should start and you should see something resembling the following screenshot:

Running the IDE for the Galileo

This is the environment you will use to develop your applications. You can use this IDE to compile the code, upload it to the device, and then run it.

Setting the IDE to connect to your board

The first thing you'll need to do is set the IDE to create code for the proper Galileo board. Fortunately, the IDE lets you set that by choosing the board. To do this, navigate to Tools | Board | Intel® Galileo Gen2, as shown in the following screenshot:

Setting the IDE to connect to your board

The next step, selecting a port to connect the board to the IDE, will depend on the type of operating system you are using.

Selecting the proper COM port for Windows

To specify the port for Windows, navigate to Tools | Serial Port | COM23, (the port you noted earlier) as shown in the following screenshot:

Selecting the proper COM port for Windows

The IDE should now indicate that you are using the Galileo on COM23 in the lower-right corner of the IDE, as in the preceding screenshot.

Selecting the proper COM port for the Mac

To specify the port for Mac, navigate to Tools | Serial Port | and select the port you noted earlier when you installed the drivers. The IDE should now indicate that you are using the Galileo on the proper port in the lower-right corner of the IDE.

Selecting the proper COM port for a Linux Machine

To specify the port for a Linux machine, navigate to Tools | Serial Port | and select the port you noted earlier when you first connected to the board. The IDE should now indicate that you are using the Galileo on the proper port in the lower-right corner of the IDE.

Updating the firmware

The first thing you'll want to do is update the firmware on the Galileo. To do this, select Help | Galileo Firmware Update, as shown in the following screenshot:

Updating the firmware

Having the latest firmware is always a good idea; you might want to repeat this step every week or so just to make sure you have the latest.

Opening and uploading a file to the Galileo

Now that your board is connected and you are running the latest firmware, you can open and upload a simple example file. It is called the blink application. It has already been written for you, so you won't need to do any coding.

To get the blink application, perform the following steps:

  1. Navigate to File | Examples | 01.Basics | Blink, as shown in the following screenshot:
    Opening and uploading a file to the Galileo
  2. You should then see the Blink code in the IDE window, as in the following screenshot:
    Opening and uploading a file to the Galileo
  3. Select the Upload button, as in the following screenshot:
    Opening and uploading a file to the Galileo
  4. Once you have uploaded the file, it will tell you in the lower-left corner of the IDE display that the file is uploaded, as in the following screenshot:
    Opening and uploading a file to the Galileo

When the program is uploaded, it will automatically start running and the green LED that is positioned close to the USB connection on the Galileo will start blinking. The following images shows the LED:

Opening and uploading a file to the Galileo

You have now successfully uploaded your first program to your Galileo!

Accessing the Galileo's Linux capabilities

There are several differences between the Galileo and the more common Arduino board that many of you might be familiar with. The Galileo has significantly more processing power. However, it also starts up into a Linux operating system, and then exposes its programming environment in an Arduino-like interface. While you'll almost exclusively use the Arduino IDE interface in this book, you can also access the Linux capabilities of the Galileo. You'll learn more about this in Chapter 7, Going Further with Galileo.

Summary

You've completed the next stage of your journey. You have your Galileo up-and-talking with your external computer, and know how to connect to the IDE to create code. Your next step will be learning how to access the GPIO pins so that you can interact with the outside world.

Left arrow icon Right arrow icon

Description

This book is for anyone who has ever been curious about using the Intel Galileo to create electronics projects. Some programming background is useful, but if you know how to use a personal computer, with the aid of the step-by-step instructions in this book, you can construct complex electronics projects that use the Intel Galileo.

Who is this book for?

This book is for anyone who has ever been curious about using the Intel Galileo to create electronics projects. Some programming background is useful, but if you know how to use a personal computer, with the aid of the step-by-step instructions in this book, you can construct complex electronics projects that use the Intel Galileo.

What you will learn

  • Access the Linux system that is the basis for Galileo to add even more complex hardware and software
  • Install and use the software development environment and connect to the Galileo and develop programs for it
  • Add a simple display to the Galileo
  • Connect external HW to the GPIO pins
  • Control DC motors with the Galileo
  • Add sensors to a Galileobased project
  • Access your Galileo wirelessly
  • Understand the basics of sketches, include files, and HW support

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Feb 24, 2015
Length: 162 pages
Edition : 1st
Language : English
ISBN-13 : 9781784390167
Vendor :
Intel
Category :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Feb 24, 2015
Length: 162 pages
Edition : 1st
Language : English
ISBN-13 : 9781784390167
Vendor :
Intel
Category :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 74.97
Internet of things with Intel Galileo
€24.99
Intel Galileo Essentials
€24.99
Home Automation with Intel Galileo
€24.99
Total 74.97 Stars icon
Banner background image

Table of Contents

9 Chapters
1. Getting Started with the Galileo Chevron down icon Chevron up icon
2. Accessing the GPIO Pins Chevron down icon Chevron up icon
3. Adding Display Functionality Chevron down icon Chevron up icon
4. Controlling DC Motors Chevron down icon Chevron up icon
5. Adding Sensors Chevron down icon Chevron up icon
6. Remote Control Chevron down icon Chevron up icon
7. Going Further with Galileo Chevron down icon Chevron up icon
8. Speech Output Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.