Intel Galileo and Intel Galileo Gen 2 API Features and Arduino Projects For Linux Programmers 1st Edition by Manoel Ramon ISBN 1430268395 978-1430268390 PDF Download
Intel Galileo and Intel Galileo Gen 2 API Features and Arduino Projects For Linux Programmers 1st Edition by Manoel Ramon ISBN 1430268395 978-1430268390 PDF Download
https://ebookball.com/product/ia-32-intel-architecture-software-
developer-manual-1st-edition-by-intel-corporation-isbn-9032/
https://ebookball.com/product/frequently-asked-questions-about-adobe-
support-for-intel-based-macs-1st-edition-by-adobe-systems-
incorporated-isbn-14304/
https://ebookball.com/product/core-java-2-volume-ii-advanced-
features-7th-edition-by-cay-horstmann-gary-cornell-
isbn-0131118269-9780131118263-12622/
https://ebookball.com/product/javascript-for-impatient-
programmers-1st-edition-by-axel-rauschmayer-
isbn-1091210098-9781091210097-20226/
https://ebookball.com/product/dspace-help-file-for-linux-and-
window-1st-edition-by-14482/
For your convenience Apress has placed some of the front
matter material after the index. Please use the Bookmarks
and Contents at a Glance links to access them.
Contents at a Glance
v
■ Contents at a Glance
Index���������������������������������������������������������������������������������������������� 643
vi
Introduction
The Intel Galileo maker development board was announced on October 4, 2013 at the
Rome Maker Fair. It was the first for the Intel Corporation. The board was based on the
Intel Quark SoC X1000 application processor, powered by Linux OS, and compatible with
Arduino reference APIs. The Intel Galileo introduced several extra software and hardware
features that exceeded most other Arduino boards available on the market.
Intel received thousands of feedback comments from makers on Intel’s Maker
forums. Based on this feedback, Intel later unveiled the Intel Galileo Gen 2, a new version
with the same Intel Quark SoC application processor but improved hardware.
This book discusses the hardware and the software for the Intel Galileo and the Intel
Galileo Gen 2, introducing Arduino reference APIs and APIs created especially for Intel
Galileo boards. Practical projects show how to make use of the Linux capabilities and to
aggregate this potential in Arduino sketches.
xxv
■ Introduction
Chapter 6 offers a practical project on tweeting using Intel Galileo boards with new
OAuth authentication and without intermediary computers or servers. The project uses a
RTC (real-time clock) with external coin batteries and WiFi mPCIe cards.
Chapter 7 shows techniques using V42L and OpenCV libraries, as well as how to
capture images and videos and detect facial expressions and emotions using a webcam.
This chapter also explains how to change the Linux BSD to support eglibc instead uClibc
and to generate the toolchain to compile C/C++ programs. There are also examples of
OpenCV in Python.
Chapter 8 presents a low-cost project to create moisture sensors based in scrap
materials and galvanized nails.
Chapter 9 shows a practical home automation project implementing a web server
using node.js, interacting with multiple sensors for motion and temperature, and using
keypads and switch relays.
Chapter 10 explains how to install and use PoE (Power of Ethernet) modules with
the Intel Galileo Gen 2.
Chapter 11 discusses basic principles in robotics and how to design and control a
robotic arm using analog controllers. It also presents a practical project using a 6 DOF
robotic arm with a mechanical gripper and another one built with ground coffee.
Chapter 12 discusses how to connect a XMM 7160 LTE modem and use data
channels in real networks using Intel Galileo boards.
Chapter 13 is a bonus chapter available online. It presents a practical project
on how to design and build a low-cost robot head with animatronic eyes and
a mouth that expresses emotions. This chapter is available online at
http://www.apress.com/9781430268390, under the Source Code/Downloads tab.
xxvi
Chapter 1
Intel is committed to providing the ultimate processors, boards, and tools to its
community. The first initiative by Intel is the introduction of Intel Galileo and Intel
Galileo Gen 2 boards, which are compatible with the Arduino headers and reference APIs.
They also opened the Intel maker forum and created Intel Arduino IDE.
Intel Galileo boards are open source and open hardware; in other words, all the
source code and hardware schematics are available online, which you can download, use,
and modify.
This chapter describes Intel’s focus on the Galileo boards. With those in your
toolbox, the only other things you need are passion and creativity.
The Beginnings
There are those who believe the social behavior of mankind is directly connected to the
progress of technology.
Walt Disney created his first movie in 1923 in his garage, Steve Jobs and Steve
Wozniak developed the first Apple computer in a garage located at 2066 Crist Drive in Los
Altos, California, Bill Hewlett and Dave Packard founded HP with $500 in a garage, and
the first Harley-Davidson was built in a 10x15-foot wooden garage in 1903. Perhaps the
next greatest invention will be created in someone’s garage.
All of those inventions have a common factor, which is the convergence of different
areas, such as art, mechanics, electronics, and computer science. They involved creativity
and passion.
Inventors are makers, and they have existed since the beginning of time when
our ancestors started creating tools to fish, to hunt, to make fires, and to draw on cave
walls. They created inventions like the wheel and the robot connected to your WiFi that
vacuums your carpet.
All of us are makers because we have all created or developed something to make
our lives easier and faster. Creativity is intrinsic to human nature.
Nowadays, the makers create robots and drones, automate their houses, make devices
to communicate each other, create art that mixes with technology, design and print in 3D
their own objects including musical instruments, and more. Figure 1-1 shows a guitar that
was 3D printed and developed by ODD guitars (http://www.oddguitars.com/).
1
Chapter 1 ■ Intel Galileo and Intel Galileo Gen 2
Intel provides new tiny and powerful processors, low power maker boards, and the
tools using the top of technology.
Intel also provides a public Internet forum for makers, not only to support and
answer questions but also to help with personal projects and listen to the community.
They receive valuable feedback that enables them to create a new generation of products
and tools.
Intel Galileo and Intel Galileo Gen 2 are powered by Intel Quark System-on-Chip
(SoC) x1000 at 400MHz, with 512MB SRAM built-in. It runs on an embedded Linux kernel
v3.8 and supports the Arduino reference API and its hardware headers.
The first board, Intel Galileo, was introduced at Maker Fair Rome in October of 2013.
After the feedback received from the maker fair and from others, Intel created the
Intel Galileo Gen 2. It runs on Quark SoC x1000 and has many improvements and features
over the first version, most of which are discussed in this chapter.
2
Chapter 1 ■ Intel Galileo and Intel Galileo Gen 2
Each project also includes the source code and the schematics, which can be
downloaded from apress.com.
The schematics were created using a tool called DipTrace, which can be downloaded
from http://www.diptrace.com/. This tool is freeware when limited to 300 pins and
two layers; this limitation is more than enough to support the schematics in the book’s
projects.
The schematic files created in DipTrace have the .dch extension. However, when you
open the schematics in the DipTrace tool, you will see there are some male and female
jumper connectors that you don’t see in the figures in this book. The reason for these
connectors is if you decide to use the DipTrace tool to generate your PCB instead of using
the breadboard or a universal board, you will not need to add them by yourself because
they are already present. Thus, you have a clear and easy view of the schematics and you
can have the complete schematic to generate PCBs if you want.
Some projects, like “Home Automation with Node.js,” do not compose a single
project with a single code and schematic but instead make up several micro-projects, like
the integration of keypads, PIR (Passive Infra-Red) sensors, temperature sensors, switch
relays, and a web server that you can use individually. These projects include separate
source code and schematics for each part.
Some of the images in this book were created using an open source tool called
Fritizing. You can download it at http://fritzing.org/home/.
3
Chapter 1 ■ Intel Galileo and Intel Galileo Gen 2
4
Chapter 1 ■ Intel Galileo and Intel Galileo Gen 2
All the requirements for this imaginary project are attended by the Intel Galileo
boards. If you want to connect to the Internet, you can use a simple Ethernet cable. If you
need WiFi you can buy a mini-PCIe Intel Centrino N135 WiFi card, mPCIe card bracket,
and antennas. Table 1-1 shows the average costs of these items.
If you decide to use an Ethernet connection, the only cost is the Intel Galileo board.
Otherwise, if you decide you need a WiFi connection, you have an additional of $20.00 to
the Intel Galileo board, for a total of $75.70.
Now, suppose you want to compare the total cost of your project if you have an
Arduino Uno and decide to buy some shields to meet the project’s requirements.
To reach capabilities similar to Intel Galileo family, the shields listed in Table 1-2 are
necessary.
The total cost using Arduino Uno with Ethernet only is $143.95 and if you decide to
use Arduino with the WiFi shield it’s $270.95.
As you can evaluate, the same project with Intel Galileo costs $75.70 with WiFi
support versus $270.95 with Arduino Uno R3. This same project with Arduino Uno R3 and
all shields necessary costs 3.58 times more, besides the fact you will not have access to a
powerful Linux-embedded OS, which offers many software resources.
Of course, if your project only requires blinking LEDs, read buttons states, and very
simple things, the Arduino R3 is more affordable.
5
Chapter 1 ■ Intel Galileo and Intel Galileo Gen 2
Hardware Overview
Intel Galileo Gen 2 was created to improve on some of the limitations of Intel Galileo.
These details will be explained in the following sections, with an overview on the Quark
SoC X1000 processor, Intel Galileo, and Intel Galileo Gen 2 boards.
Although the package is only 15x15mm, this tiny processor also offers an interface
that allows you to connect to several peripherals, including Bluetooth devices, ZigBee,
SD/SDIO/eMMC cards, I2C devices, and USB2 host and device ports. It also handles
GPIOs interruptible or not by settings, supports temperature ranges that reach industrial,
medical, and military applications (not to mention an internal programmable thermal
sensor), and can run unmodified Linux kernel v3.8+. Figure 1-3 shows the peripherals
supported by Intel Quark SoC.
6
Chapter 1 ■ Intel Galileo and Intel Galileo Gen 2
7
Chapter 1 ■ Intel Galileo and Intel Galileo Gen 2
Software Support
• Pentium ISA compatible (.586 opcodes)
• Standard ICC/GCC/G++ compilers
• Yocto project based on distribution
• Open source UEFI EDK II
• GRUB boot loader support
• Open OCD debugging support
• Compliant with PCIe, USB, and ACPI standards
• Runs Linux kernel v3.8+
Thermals
• External temperature ranges from -40 to 85 degrees Celsius
• Internal programmable thermal sensor
Security
• Supports secure boot technology
• Supervisory mode execution/protection
• Secure recovery for UEFI FW
• Secure remote upgrade with WR IDP 2.0
The next sections explore the Intel Galileo boards in more detail.
8
Chapter 1 ■ Intel Galileo and Intel Galileo Gen 2
(continued)
9
Random documents with unrelated
content Scribd suggests to you:
Bruix AVAIENT VU les troupes grecques et bulgares crever les yeux de
leurs prisonniers turcs ».
Or, ces officiers-là n'avaient en réalité pas vu, — j'entends vu de
leurs yeux, ce qui s'appelle vu, — l'atrocité ci-dessus rapportée.
Sollicités par le prince Nicolas de Grèce, ils furent donc contraints de
le déclarer officiellement. Et force gens, — ceux-là mêmes dont je
parlais tout à l'heure, les gens de mauvaise foi, — essayèrent de
transformer cette déclaration, toute visuelle, si j'ose dire, en un
démenti que les officiers du Bruix auraient infligé à Pierre Loti.
De là à conclure que les alliés balkaniques n'avaient jamais crevé
les yeux du moindre prisonnier turc, il n'y avait qu'un pas.
Et ce pas-là, divers journalistes peu recommandables se
risquèrent sournoisement à le franchir, en écrivant divers articles,
tous fort vilains, au commencement de ce mois-ci, mars 1913.
Par malheur, un de ces articles-là tombait, le 11 mars, sous les
yeux de mon camarade, embarqué dans la division navale du
Levant, — l'officier de marine qui avait écrit en décembre dernier la
fameuse lettre, source de ma précédente documentation, et origine
de toute l'affaire.
Et cet officier, — dont je persiste à taire le nom, tenant à ne point
l'exposer aux couteaux des assassins prétendus soldats qu'il
soufflette comme on va voir, — sautait immédiatement sur sa plume,
et m'écrivait, dans le premier jet de son indignation, la nouvelle
lettre que voici.
Je m'en voudrais à mort d'y changer une virgule ; et je n'en
supprime que la date et que la signature, pour la bonne raison
exposée ci-dessus [10] :
[10] La rédaction de Gil Blas, tout en s'associant à la
juste indignation de Claude Farrère, prend sur elle de
supprimer dans la lettre en question quelques termes
énergiques dont l'auteur stigmatise les faits rapportés par
lui, — cela par pur et simple respect dû aux lectrices de
ce journal.
A Monsieur le lieutenant de vaisseau
Claude Farrère, 5, rue de l'Échelle, Paris.
A bord du …
De X… (Turquie.)
(Signature.)
X.
Voilà.
Moi, Claude Farrère, je certifie le texte ci-dessus exact, et je
garantis sur mon honneur de soldat, l'honneur et la véracité du
soldat, mon correspondant.
Pour la bonne réputation de la presse française, j'espère qu'il ne
se trouvera pas un seul journal français pour oser ne pas reproduire
les termes essentiels de cet écrasant témoignage.
La cause est entendue.
Nous savons, des musulmans et des orthodoxes, lesquels sont les
bourreaux, lesquels sont les victimes.
Et nous savons aussi, de M. Pierre Loti et de ses insulteurs,
lequel est le grand honnête homme, lesquels sont les aboyeurs à
gages.
CLAUDE FARRÈRE.
II
III
(Les Agences.)
IV
Signé : X…
(Communiqué par M. J. Odelin, de l'Œuvre.)
MISSION DE MACÉDOINE
VI
Peu après que les troupes serbes eurent pénétré en ville, nous
entendîmes la fusillade de l'infanterie dans les rues. M. Prochaska
me dit alors avec indignation : « C'est une trahison. Les Serbes sont
en train de tirer sur les habitants qui ne leur font rien. »
Dans le consulat se trouvaient, en plus du consul, son secrétaire,
deux kawas, un marchand italien, un sujet allemand et deux
voyageurs autrichiens. En outre, il s'y trouvait également vingt-deux
blessés, dix-huit familles de la ville, plusieurs dames qui se
chargeaient de prendre soin des blessés et un assez grand nombre
d'enfants.
Une section de soldats serbes conduite par un officier à cheval
apparut alors devant le consulat. L'officier demanda à parler au
consul. M. Prochaska vint alors à la porte. Le chef lui renouvela
l'ordre d'ouvrir le consulat afin d'y placer les soldats serbes blessés
et afin de permettre la recherche des traîtres turcs qui auraient pu
s'y réfugier.
M. Prochaska répondit, avec politesse mais avec fermeté, que
l'hôpital était déjà plein de blessés. L'officier repartit : « Oui, il est
plein de misérables Albanais, et ceux-là, nous les jetterons dehors. »
Le consul riposta : « Messieurs, je vous ferai remarquer que le
terrain sur lequel se trouve le consulat est un terrain neutre, et qu'il
jouit de la protection de la monarchie que je représente. Vous voyez
flotter sur ces murs le drapeau autrichien, et en outre le signe de la
Croix-Rouge internationale. »
Le Serbe lui répliqua : « Ce sont là des mots inutiles. Je vous
ordonne d'ouvrir. »
M. Prochaska ne fit à ces paroles aucune réponse et rentra dans
son bureau. L'officier serbe donna l'ordre à ses soldats de pénétrer
de force dans le consulat. Avec des bravos et des cris insultants pour
l'Autriche-Hongrie, les soldats arrachèrent le drapeau austro-
hongrois et le traînèrent dans la boue. La porte fut ouverte avec
violence, les soldats escaladèrent le mur de l'entrée et pénétrèrent
dans le bâtiment. Les familles des Albanais qui s'y étaient réfugiés
furent tuées sans merci. Il en fut de même des blessés qui furent
massacrés dans leur lit. Les femmes et les enfants furent tués.
Il y eut des Serbes qui allèrent jusqu'à souiller des cadavres.
Le consul protesta solennellement. Les Serbes lui répondirent par
des ricanements.
(Communiqué par M. J. Odelin, de l'Œuvre.)
VII
VIII
Lettre adressée à M. J. Odelin, qui, dans l'Œuvre, a si vaillamment
fait campagne pour le bon droit, par M. Lucien Maurouard,
ministre plénipotentiaire, qui fut vingt ans diplomate français en
Orient.
Paris, le 2 janvier 1913.
Monsieur,
Par ce fait même que les Turcs sont plus adonnés à l'agriculture
qu'enclins aux initiatives industrielles et financières, l'Empire ottoman
est terre d'élection pour le développement des intérêts économiques
étrangers.
Voilà plusieurs siècles qu'à la faveur des Capitulations, nos
comptoirs commerciaux se sont installés dans les Échelles du Levant,
y prospérant avec sécurité, et, de nos jours, mines, ports, quais,
phares, chemins de fer, régies financières, banques, manufactures et
exploitations diverses se sont créés dans cet Empire sous la direction
de notre personnel technique français et avec le concours de nos
capitaux.
Voilà bien longtemps aussi que nos missions, nos écoles (laïques
ou religieuses) propagent dans la plupart des villes notre
enseignement et notre influence, à l'abri, non seulement d'une
parfaite tolérance, mais même de réels privilèges.
En cas d'incidents dommageables aux personnes ou aux
propriétés étrangères, on sait combien la protection de ces intérêts
et l'obtention d'indemnités s'il y a lieu, sont facilitées aux autorités
diplomatiques et consulaires par le régime des Capitulations.
Voilà pour le passé ; et voici pour l'avenir.
Assez différente est et sera sans doute la situation dans les
territoires détachés de l'Empire pour la formation et l'accroissement
des États balkaniques.
Ces peuples jeunes se montrent, comme c'est leur droit
d'ailleurs, animés d'un nationalisme ardent, à tendances plus ou
moins exclusivistes, et certainement moins propice que la mentalité
et les usages musulmans à la pénétration des intérêts étrangers.
Il est notoire que la Croix orthodoxe, qui préside religieusement
et politiquement aux destinées des États balkaniques, est nettement
adverse à la Croix catholique et qu'elle cherche à évincer celle-ci
autant qu'elle le peut.
J'ai pu l'observer pendant un séjour de quatorze années en
Grèce.
Les réserves protocolaires, formulées par la France dans les
traités pour l'institution du Royaume de Grèce et l'annexion des Iles
Ioniennes, sont éludées par les autorités helléniques sur des points
de réelle importance : reconnaissance et situation de certains
évêques latins ; statut des mariages mixtes.
En raison même de ce que leur excellente tenue leur assure une
clientèle nombreuse et distinguée, les écoles catholiques sont plus
ou moins jalousées, ce qui, combiné avec l'influence de
l'antagonisme confessionnel, les met parfois en butte à des attaques
de presse et à des tracasseries administratives sous de fallacieux
prétextes.
Il me paraît aussi que nos intérêts commerciaux et industriels
n'ont qu'à perdre au passage de la domination turque à la
domination balkanique.
Ces données ont été généralement omises dans presque tout ce
qui s'est publié à l'occasion du conflit oriental.
Par contre, on a donné un large mais immérité regain aux
légendes tendancieuses et spécialement à celles qui sont relatives
aux massacres et pillages, mis indistinctement à la seule charge des
Turcs, dans le but, semble-t-il, de les discréditer devant l'opinion
publique ; or, il est avéré que le Turc, naturellement placide, ne se
livre à des violences que provoqué par une rébellion : j'en ai été
témoin moi-même en Crète, où les violences ont toujours eu le
caractère de réciprocité entre chrétiens et musulmans.
De même en Macédoine, ce fut entre les alliés d'aujourd'hui,
rivaux quand même, ennemis d'hier, et peut-être aussi de demain,
entre Bulgares et Grecs, que se produisit un long échange d'actes de
barbarie comme moyen d'éviction et d'intimidation au service de la
propagande politique.
LUCIEN MAUROUARD.
IX
J'ai vécu avec les Turcs pendant sept ans, à Salonique, Monastir,
Uskub, dans toutes les classes de la société et surtout parmi les
soldats ; c'est vous dire combien je les connais et, dès lors, combien
je les aime.
Pendant mes années de service en Macédoine, je n'ai jamais
constaté ni entendu parler de crimes commis par des Turcs, et je
crois qu'on ne pourrait pas en signaler un seul, en prouver un seul,
tandis que je puis citer par douzaines des crimes commis par les
Balkaniques. Les autorités ottomanes dépêchaient constamment des
troupes pour mettre à la raison les bandes grecques, serbes ou
bulgares, qui s'entretuaient, fomentaient des troubles et
maintenaient le pays dans une anarchie continuelle. Est-ce que ce
sont ces répressions qu'on appelle des massacres? Dans ce cas, moi
aussi, j'ai contribué à pourchasser ces bandes.
En Asie Mineure, n'y a-t-il pas une tranquillité parfaite? Pendant
les deux années que j'ai parcouru le pays, je n'ai jamais entendu
parler de meurtre ni de vol! On peut dormir portes ouvertes! Et
cependant il y a des Grecs et des étrangers en grand nombre ; mais
ici aucune puissance ne poursuit une politique annexioniste.
Non, notre injustice envers les Turcs est révoltante. Ce peuple si
bon, si doux, si digne, ne mérite que notre estime.
COLONEL MALFEYT.
XI
Lettre que m'adresse un Roumain de Bucarest.
Comme on voit que vous connaissez bien les Turcs — que nous
coudoyons depuis des siècles, nous autres Roumains — ces Turcs,
que les vicissitudes des temps ont rendus nos maîtres pendant de
longues années, mais qui, chose incroyable et sans exemple dans
l'histoire, n'ont jamais été haïs dans le pays, tant ils étaient bons et
justes, et tant ils avaient le respect de la parole donnée.
La Roumanie vous portera dorénavant une affection
reconnaissante pour les paroles de justice, pour les accents indignés
que vous jetez à la face de l'Europe comme une flétrissure.
DEMÈTRE RACOVICEANO.
XII
Lettre que m'adresse un capitaine français qui servit onze ans dans
la gendarmerie internationale de Macédoine.
CAPITAINE X***.
XIII
Lettre que m'adresse un Turc de Constantinople.
X*** BEY.
XIV
B***
Ingénieur en chef.
XVI
PRESSE ALLEMANDE
KREUZZEITUNG, 5 février.
XVII
XVIII
Monseigneur,
Le reconnaissant et affectionné
PIERRE LOTI.
XIX
SUBLIME PORTE
GRAND VIZIRAT
Le 16 février 1913.
Cher monsieur,
Le Grand Vizir,
MAHMOUD CHEVKET.
*
* *
Altesse,
XX
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookball.com