Home Arduino Intel Galileo 2 and Arduino IDE

Intel Galileo 2 and Arduino IDE

A while back I bought an Intel Galileo 2 and recently noticed that in the Arduino IDE 1.6.5 via the boards manager that the board was supported. Rather than go over the same ground you can see how to setup the IDE and board via the links below

 

https://www.arduino.cc/en/Guide/IntelGalileoGen2

I am running Windows 7 64 Bit and needed to download a serial driver for the Galileo, here is the link

https://downloadcenter.intel.com/download/24748

https://downloadcenter.intel.com/download/24748 https://downloadcenter.intel.com/downloads/eula/24748/Intel-Galileo-Firmware-and-Drivers-1-0-4?httpDown=https%3A%2F%2Fdownloadmirror.intel.com%2F24748%2Feng%2FIntelGalileoWindowsSerialDrivers.zip

In the basic example we added a Sensor shield 5 to the Galileo 2 and then connected an RGB led to this using digital pin 8, 9 and 10, here is a picture of this

galileo rgb led

galileo rgb led

Code

[codesyntax lang=”cpp”]

int red = 8;
int green =9;
int blue =10;
int j;

void setup()
{
pinMode(red,OUTPUT);
pinMode(green,OUTPUT);
pinMode(blue,OUTPUT);
}

void loop()
{
for (j = 1; j < 10000; j++)
{
analogWrite(red,random(255));
delay (random(10,31));
analogWrite(green,random(255));
delay (random(10,31));
analogWrite(blue,random(255));
delay (random(10,31));
}
}

[/codesyntax]

 

Video

Here is a video of the code running

You may also like