Analog Read Serial Example for Intel® Edison Board

Documentation

Install & Setup

000006276

02/13/2020

This example uses a potentiometer as an input/output device, and a serial monitor to view the value as the potentiometer is being adjusted.

Hardware

  • Intel® Edison compute module
  • Arduino* expansion board
  • Breadboard
  • Potentiometer
  • Wires

Instructions

  1. Using two wires, make the following breadboard-to-Arduino expansion board connections.
Breadboard Arduino expansion board
Positive strip 5 V
Negative strip GND
  1. Using the potentiometer, make the following breadboard-to-Arduino expansion board connections.
Breadboard Arduino expansion board Potentiometer
Negative strip   Pin 1
  A0 Pin 2
Positive strip   Pin 3
  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 > 01.Basic and select AnalogReadSerial.
  5. Click upload icon.

You can monitor the value of the potentiometer using the Serial Monitor.

Circuit

Circuit and breadboard

Note This image was created using Fritzing*.