StateChangeDetection Example for Intel® Galileo Board

Documentation

Install & Setup

000006372

02/13/2020

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

  1. Make the following Intel Galileo Board-to-breadboard connections:
     
    Intel® Galileo Board Breadboard
    5 V Positive strip
    GND Negative strip

  2. 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

  3. 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

  4. Connect the power supply and the USB to USB Client Port on the Intel Galileo Board.

  5. Open Arduino IDE. Click Tools > Board and select Intel Galileo.

  6. Click Tools > Serial Port and select the Com # that the Intel Galileo Board is connected to.

  7. Click File > Examples > 02.Digital and select StateChangeDetection.

  8. Click upload icon.

Circuit

Circuit

Note This image was created using Fritzing*.