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.
Hardware
- Intel® Edison module
- Arduino* expansion board
- 10k ohm resistor
- Wires
- Breadboard
- Momentary push button
- 1 LED
- 220 ohm resistor
Instructions
- 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 |
Positive | Pin 13 | ||
Negative | Connect | ||
Negative strip | Connect |
- 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 |
- 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.
Circuit
Note | This image was created using Fritzing. |