Ceci est une ancienne révision du document !
Introduction - Most users of the RPi, Beagle Bone, or any other Arduino platform are probably familiar with the ARM microcontrollers used on these respective platforms. The Intel Galileo is unique in that is uses a x86 family microprocessor. ARM and x86 differ at a fundament level: the size of their instruction set. ARM is a RISC (Reduced Instruction Set Computing, a smaller, simpler instruction set) architecture and x86 processors are CISC (Complex Instruction Set Computing, a more complex, and powerful set). Something that takes an x86 one clock cycle, might take an ARM processor three.
However, because the Quark X1000 was develloped in partnership with Arduino, it is entirely possible to download the Arduino IDE directly onto the Galileo. This will allow, in essence, to have a fully operational arduino uno R3 directly integrated onto the board. It will even be compatible with all R3 libraries and all arduino 3.3V/5V shields!
Download & Install
For Windows The Arduino IDE (1.6.0 /V1.8) can be downloaded here. Note that this tutorial was written on 16/12/2016 and all newer versions of the software can be found via a search for “Galileo Gen 2” on the intel download center webpage
The .ZIP file should be unpacked directly onto the “C:/” with a name that includes NO SPACES! You can then open the Arduino.exe to run
For Linux
The Arduino IDE (1.6.0 /V1.8) can be downloaded here. Note that this tutorial was written on 16/12/2016 and all newer versions of the software can be found via a search for “Galileo Gen 2” on the intel download center webpage
Linux users need to use the tar tool to extract the tar.gz file. A command like tar -zxvf arduino-1.5.3-linux32.tar.gz should do.
It’s also necessary to disable the modem manager on most Linux distributions, to enable uploading to the board. This will vary by distro, but something like sudo apt-get remove modemmanager will work.
Once installed, run the arduino file in the extracted directory. From a terminal, you can enter ./arduino to run it.
Update Driver
To start, plug in the “barrel jack” power supply to the Galileo Gen 2 card. Then using a Micro USB B cable, plug the micro usb into the “USB Client input” on the Galileo. Plug the other standard USB into your PC.
NOTE Do not plug the USB cable into your PC until you have first plugged the power supply into the card (and the wall obviously)
For Windows
For Linux
The Arduino IDE for the Galileo is now installed onto your PC. We are also now sure of the COM# of your device and that the driver is fully updated. This will the most basic means of programming Intel's Quark X1000, and will allow us to exploit Arduino's vast opensource online community.
Arduino example
Board Setup
The board will no be properly in sync with the Arduino IDE and we can start to program in the Arduino IDE. I would advise any user that is not already familiar with Arduino to visit their tutorials page. They have a great online community that will get a new user started in a few short hours.
However, know that there exist a number website that already have a lot of basic “programe skeletons” already built.
Also, there are a number of websites that have well documented projects that will have snippets of code already attached
Lastly, remember that the Arduino IDE has an EXTENSIVE list of prewritten scripts that will help the new user (and the experienced alike) to directly start using their Arduino! In the above photo I have highlighted the “Ethernet Sub-menu” as that will be the ultimate goal of this tutorial. However, we will start with the “Hello World” of the Microcontroller world. Let's start with…
The Blink LED 13 test
With the Arduino IDE open and configured to the proper COM#/Board:
That's it. You will notice that on your Galileo board there is now a green LED blinking next to the “USB host” port. This led is hardwired directly to the pin 13. We could easily place a small led (with a 100ohm resistance in series) with another pin#. We would simply need to change the lines:
Conclusion -
This is the most basic means of using the Intel Galileo. We have now been introduced to the Arduino side of the board. However, to use only this would be a poor use of this board as the Uno is capable of this type of project and is quicker. The next sections of this tutorial will now explain how we can install Linux onto the Galileo Gen 2.
The interest of installing Linux is that we will have the means to use: