This example uses a potentiometer as an input/output device, and a serial monitor to view the value as the potentiometer is being adjusted.
- Intel® Edison compute module
- Arduino* expansion board
- Using two wires, make the following breadboard-to-Arduino expansion board connections.
|Breadboard||Arduino expansion board|
|Positive strip||5 V|
- Using the potentiometer, make the following breadboard-to-Arduino expansion board connections.
|Breadboard||Arduino expansion board||Potentiometer|
|Negative strip||Pin 1|
|Positive strip||Pin 3|
- 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 > 01.Basic and select AnalogReadSerial.
- Click upload icon.
You can monitor the value of the potentiometer using the Serial Monitor.
|Note||This image was created using Fritzing*.|