Push Button Example to turn on the LED for Intel® Edison Board


Install & Setup



This example uses a momentary push button to turn on the LED. We are using the code provided under examples for Arduino* IDE.


  • Intel® Edison module
  • Arduino* expansion board
  • 10k ohm resistor
  • Wires
  • Breadboard
  • Momentary push button
  • 1 LED
  • 220 ohm resistor


  1. Make the following breadboard-to-Arduino expansion board connections.
Arduino expansion board Breadboard
5 V Positive strip
GND pin-out Negative strip
  1. Place the LED on the breadboard. Notice that the longer leg of the LED is positive, and the shorter let is negative. Make the following connections.
LED Arduino expansion board Breadboard Resistor
Positive Pin 13    
Negative     Connect
    Negative strip Connect
  1. Place the momentary push button in the middle of the breadboard with the divider underneath. Make the following connections.
Momentary push button Breadboard Resistor Arduino expansion board
Left-bottom side Positive strip    
Right-bottom side   Connect  
  Negative strip Connect  
Top-right side     Pin 2
  1. Connect the power supply and the USB to USB port on the Arduino expansion board.
  2. Open Arduino IDE. Click Tools > Board and select Intel® Edison.
  3. Click Tools > Serial Port and select the Com # that the Intel Edison Board is connected to.
  4. Click File > Examples > 02.Digital and select Button.
  5. Click upload icon.


circuit and breadboard

Note This image was created using Fritzing.