Introduction

Recently I got an Intel Galileo from Microsoft since I am a part of the IoT competition. Now I am spending my time doing many creative things with my Galileo. I am writing this article for all those who wanted to get started with Intel Galileo.
Intel Galileo
Intel Galileo is a hardware development board that lets us write code and create electronic circuits to build our own projects. The board doesn't do very much on its own, so we need to connect it to the right hardware and write the code to tell it what we want it to do. Galileo is an Arduino compatible board but the thing that makes it different is its specs, It is a cross-pollination between an Arduino Uno and a low-end computer.
This is how it looks like
Prerequisites
An Intel Galileo board Gen 1 or 2 board, a power supply and cable, a micro USB cable (this won't come with Galileo) and a LED (optional).
Downloads
Galileo software https://communities.intel.com/docs/DOC-22226
Setting up
Running our First Sketch
The programs we write for Galileo are called sketches. Inside the sketch we have a minimum of the following two methods:
The setup method will run once at the beginning that helps to initialize our variable and sensors.
The loop method will be called repeatedly. We can have many methods other than these two.
The Arduino IDE has many examples that we can use, we will run one of these now.
We will test our Galileo with the Blink Example that you can find under File -> Examples -> Basics -> Blink.
Code
  1. int led = 13;
  2. void setup()
  3. {
  4. pinMode(led, OUTPUT);
  5. }
  6. // the loop routine runs over and over again forever:
  7. void loop()
  8. {
  9. digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
  10. delay(1000); // wait for a second
  11. digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
  12. delay(1000); // wait for a second
  13. }
I am using a Red LED that I hooked up to pin 13 by carefully inserting the anode in pin 13 and the cathode to ground. They have a polarity which means we need to connect them in the right order. There are many ways to differentiate between cathode and anode of the LED, we can tell that by looking at the LED carefully in many ways.
  1. The longer leg will be the cathode and the shorter will be the anode
  2. When we examine the LED from the top we see the two metal posts, the smaller of the two is the anode and the bigger is the cathode
Galileo has digital and analog pins for input and output. Hereby default our LED is hooked up to pin 13. To compile and run the sketch just hit the upload button. In the output, you will see the transfer is complete and the LED is blinking. There is a little LED on the board that is also hooked up to pin 13 so if you don't attach an external LED then that will also work for you.
Now we have successfully deployed our first sketch to Galileo. And we are ready to do more creative stuff with our powerful development board "Intel Galileo".
Important
Windows users should unzip the Galileo file to the top directory of any drive. Connect your Intel Galileo to the 5V power supply before any other connection or you will damage the board.
The Gen1 and Gen 2 boards need a different power supply. The 5V power supply for the original Galileo Gen1 is not compatible with Galileo Gen 2.