Push Button Example to turn on the LED for Intel® Edison Board
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
- Momentary push button
- 1 LED
- 220 ohm resistor
- Make the following breadboard-to-Arduino expansion board connections.
|Arduino expansion board||Breadboard|
|5 V||Positive strip|
|GND pin-out||Negative strip|
- 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|
- 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|
|Top-right side||Pin 2|
- Connect the power supply and the USB to USB port on the Arduino expansion board.
- Open Arduino IDE. Click Tools > Board and select Intel® Edison.
- Click Tools > Serial Port and select the Com # that the Intel Edison Board is connected to.
- Click File > Examples > 02.Digital and select Button.
- Click upload icon.
|Note||This image was created using Fritzing.|