Connect the RGB LED onto a breadboard. Connect the common pin to 5V. Add a 330 Ohm resistor from each of the color pins, and use jumper wires to connect the three of them to pin 9, 10 and 11 on the Galileo.
I used three 330 Ohm resistors, but the voltage drop of the three light-emitting diodes are not equal. Mine had a 2V diode for the red, and 3.2V diodes for the green and blue. Which means that in a perfect world, you should have a different resistors value for the red pin. But it works fine with 330 on all of them.
This should make your Intel Galileo change the color of the RGB LED like this:
Advertisement
Step 2: Connect the temperature sensor
The DHT11 sensor is pretty straightforward. But it uses a one-wire interface that causes a problem for the Intel Galileo. The problem is that the one-wire interface requires one pin to be switched back and forth between being an input and an output.
On an Arduino this happens really fast and is no problem. But on the Galileo this switching is too slow. Therefore, we need to use a diode to divide the data pin into an input and an output pin. Like this:
Note: Different modules have different pin placements. On mine, the data pin is on the middle pin. On others, it’s on the left or right.
Because of the modification above, you need a modified version of the DHT library: DHT library for Intel Galileo(Code by adafruit, modified by Dino Tinitigan)