StateChangeDetection Example for Intel® Galileo Board
This example uses a momentary push button to change the state of the LED. If the LED is High when the push button is pressed, the LED goes from High to Low and vice versa. We are using the code provided under examples for Arduino* IDE.
Hardware
- Intel® Galileo Board
- 10k ohm resistor
- Wires
- Breadboard
- Momentary push button
- One LED
Instructions
- Make the following Intel Galileo Board-to-breadboard connections:
Intel® Galileo Board Breadboard 5 V Positive strip GND Negative strip - Place the LED on the breadboard. Notice that the longer leg of the LED is positive, and the shorter leg is negative. Make the following connections:
LED Intel Galileo Board Breadboard Positive Pin 13 Negative Negative strip - Place the momentary push button in the middle of the breadboard with the divider underneath. Make the following connections:
Momentary push button Breadboard Resistor Intel Galileo Board Left-bottom side Positive strip Right-bottom side Connect Negative strip Connect Top-right side Pin 2 -
Connect the power supply and the USB to USB Client Port on the Intel Galileo Board.
-
Open Arduino IDE. Click Tools > Board and select Intel Galileo.
-
Click Tools > Serial Port and select the Com # that the Intel Galileo Board is connected to.
-
Click File > Examples > 02.Digital and select StateChangeDetection.
-
Click upload icon.
Circuit

| Note | This image was created using Fritzing*. |
