Professional Documents
Culture Documents
Revision # Date
1.0
21-11-2014
2.0
17-12-14
3.0current
19-12-14
Owner
Veronica
MIHAI
Used you instead of we, added copyright Veronica
and page cover, modified footer
MIHAI
Modified Cover Page font, footer, review Veronica
table and copyright paragraph position in MIHAI
the document at Andys suggestion
Contents
How to Configure your Intel Galileo Gen 2 Board ................................................................................... 1
What is Intel Galileo? .......................................................................................................................... 3
Required Materials .............................................................................................................................. 3
Install an Intel Customized IoT Linux Image to the SD Card ................................................................ 3
Download the Arduino IDE for Galileo to your PC .............................................................................. 6
Install USB Driver for Intel Galileo Board on your PC .......................................................................... 9
Update the Firmware and Set up Galileo .......................................................................................... 13
Boot from the SD Card...................................................................................................................... 14
Upload the Blink Program ................................................................................................................. 20
Set up the HTU21D Temperature and Humidity Sensor .................................................................. 23
PTC Inc.
Required Materials
Item
Intel Galileo Gen 2
Solderless breadboard
Ethernet Cable (Alternative to wifi setup)
Wifi Dongle/Wireless Network Card
(Alternative to an Ethernet cable) + Wifi
network to connect to
8 G microSD card with an SD Adapter
A 12 V DC power supply or equivalent
battery pack
Temperature and Humidity sensor HTU21D
Male to male jumper wires
Soldering iron (Optional, if you dont have
the pins of the HTU21D sensor already
soldered)
USB A to micro B cable
Quantity
1
1
1
1
1
1
4
1
1
A sketch is a program written in a C-like language specific to Arduino microprocessors. The program is stored
in an .ino file.
How to Configure your
Intel Galileo Gen 2 Board
PTC Inc.
Linux images for Intel Galileo are custom-built using Yocto, i.e. you can use Yocto to choose
what Linux modules you would like to have installed on your Intel Galileo, like i2c-dev. Nevertheless
the process of building a customized Linux image is quite tedious, so in this tutorial you will use an
image that Intel has customized for IoT projects called the IoT-dev kit.
To install the IoT-dev kit image on your micro-SD card follow the next steps:
-
Download the IoT-dev kit zip file from here. And extract them in a folder of your choice.
Install Win32DiskImager. Win32DiskImager is a windows program for saving and restoring
images from a removable drives. You can download it from here
Insert your micro-SD card into your SD card adapter and then plug it into your PC SD card
reader. You should be prompted by your PC that your SD card has been plugged in and you
will be able to locate it in your Computer directory as shown below :
Note the name of the drive on which the micro-SD card is on. In my case, it is H.
Open Win32DiskImager as an Administrator by right-clicking on the launching icon and
choosing Run as an Administrator :
PTC Inc.
In the image file field click on the browse files icon and locate the folder in which you
extracted the iot-dev kit image. Choose all files type in the file type (the *.* option) dropdown to see
the intel iot-devkit-latest-mmcblkp0.direct file. Select it and click open. You should now see it in the
image file field of Wind32DiskImage window.
Make sure the device name is the same as the one your micro SD-card is on and click write
PTC Inc.
Wait for the writing process to finish and to receive a message saying Writing was successful.
After this you can safely eject the micro SD card.
You will use the SD card in a later step to boot from it. You will next install the Arduino IDE
for Galileo which will allows you to upload programs (called sketches) to your board using an USB A
to micro B cable
PTC Inc.
To launch the IDE double-click the Arduino icon. This is how the Arduino Environment looks
like.
PTC Inc.
You can also right click the application icon and choose to pin it to your Start Menu to locate
it easier.
PTC Inc.
Note: To install the Arduino IDE on Mac OS or Linux check this tutorial.
To be able to boot from your micro SD card you need to first install an USB driver for the
board and then upload the firmware on the Intel Galileo. This will ensure that your micro SD card will
be recognized.
PTC Inc.
On Windows, when connecting the Board to your PC, after a few seconds while
Windows will try to install the driver, you will see a message telling you that Windows failed
to install the driver for it. You will therefore need to install it manually.
5. Open up the Device Manager. (Either Start > Run > devmgmt.msc, or go to the Control
Panel, select System and click Device Manager.)
6. Locate the Gadget Serial v2.4 device, under the Other devices tree. Right-click that and
select Update Driver Software.
PTC Inc.
10
On the next page select Browse and navigate to the hardware\arduino\x86\tools folder
within your Arduino Galileo folder that you extracted from the Arduino IDE archive in a previous
step. Then click Next.
How to Configure your
Intel Galileo Gen 2 Board
PTC Inc.
11
8. Next click Install. Wait for the installation to complete and to be prompted with a Windows
has successfully updated your driver software message.
9. Go back to the Device Manager window and check the Ports tree. There should be an entry
for Galileo (COM #). Note on which COM # your Galileo is on. You will use this port when
uploading sketches and in the next step, updating firmware.
PTC Inc.
12
Note: If you are using a Linux or Mac OS system, check this tutorial for information on how to install
the driver. Notice that it is meant for an Intel Galileo Gen 1 board, therefore it tells you to connect a
5 V power supply. If you are using an Intel Galileo Gen 2 board as recommended in this tutorial, you
will need a 12 V power supply. Make sure you dont confuse them because this could lead to serious
damage of your board.
Click ok. You may be prompted by another message asking you if you want to rewrite the
existing firmware. Click ok. You will be brought to this window.
How to Configure your
Intel Galileo Gen 2 Board
PTC Inc.
13
PTC Inc.
14
The following window will open. Choose Browse my computer for driver software.
How to Configure your
Intel Galileo Gen 2 Board
PTC Inc.
15
Next, locate the device name corresponding to your Intel Galileo Board. Under Windows 7, you can
identify it by going to My Computer. In my case it is named F:
Double click it and go in the win-driver folder. Right-click the iotdk-serial-external archive
and choose Extract All
Coming back to the Update Software Window, select the folder in which you previously
extracted the iotdk-serial-external archive within the win-driver folder from the files on your Intel
Galileo board. I extracted it in the same folder. Next click ok.
PTC Inc.
16
Following, click next and wait for the driver to be successfully installed. After this step you
will see your device under the Ports section with a certain COM number assigned to it.
If the COM number is greater than 10 change it to a lower available number. To change the
COM number, follow the next steps :
1. Go to Device Manager
2. Locate your Intel Galileo Device under Ports. Right-click it and select Properties.
PTC Inc.
17
3. Select the Port Settings tab and click the Advanced Button.
In the COM Port Number dropdown, select one under 10 that is not currently in use.
PTC Inc.
18
Next click ok to close the Advanced Settings window. Click ok also in the properties window.
You should next see the port for your Intel Galileo Board being changed in the Ports Tree.
PTC Inc.
19
4. In the Tools Serial Port select the COM number on which your Intel Galileo Board
appeared connected in your Device Manager Ports Section (In my case: COM3)
PTC Inc.
20
This will open a program that makes the little link next to the On led on your board blink.
PTC Inc.
21
Next you should see the LED on your board starting to blink.
Programs running on the Intel Galileo cannot be stopped. The Blink program will run continously
until you replace it with a different one. Note that the sketch is stored on the boards memory and
will start running even after cutting the power supply and then connecting it again. One way of
stopping all activity on the Intel Galileo is to upload an empty program like the one you see when
pressing File New in the Arduino IDE.
PTC Inc.
22
You can run into a permission denied error when you try to upload a sketch on your board while
another sketch is already being uploaded. This can happen if you dont wait for the upload process to
finish before pressing the upload button again. I have found that a solution to this problem is to
restart your PC and try to upload the file again.
PTC Inc.
23
Next connect one male to male jumper wire on each of the 4 columns corresponding to the sensors
pins like shown below.
Note : Solderless breadboard columns share the same voltage. You can read more about
breadboards here.
PTC Inc.
24
Connect the 3.3 V pin of the sensor to the 3.3 V pin on the Intel Galileo. The Ground Pin of the sensor
to the Ground pin of the Intel Galileo and the SDA and SCL pins of the sensors to the corresponding
pins on the Intel Galileo as shown below.
PTC Inc.
25
4. Wait for a few seconds so that the USB LED lights up and the board has booted from the SD
card.
5. Connect the USB cable between your board and your PC.
Your board is now ready. You can proceed to uploading a sketch that will read values from the
Temperature and Humidity sensor and send them to the Thingworx Server. Follow the instructions
detailed in How to deploy the EMS on Intel Galileo tutorial to learn how to do this.
PTC Inc.
26
2015 PTC Inc. The information contained herein is provided for informational use and is subject to
change without notice. The only warranties for PTC products and services are set forth in the express
warranty statements accompanying such products and services and nothing herein should be
construed as constituting an additional warranty. PTC shall not be liable for technical or editorial
errors or omissions contained herein. Important Copyright, Trademark, Patent, and Licensing
Information: See the About Box, or copyright notice, of your PTC software. 01012015
PTC Inc.
27