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
€18.99 per month
Paperback 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
€18.99 per month
Paperback 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 a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
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 : 9781784398903
Vendor :
Intel
Category :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Feb 24, 2015
Length: 162 pages
Edition : 1st
Language : English
ISBN-13 : 9781784398903
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

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.