Read Voltage Example on Intel® Galileo Board

Documentation

Install & Setup

000006562

02/12/2020

This example uses a potentiometer as an input/output device and to read the voltage. It also demonstrates how to use the serial monitor to view the value as the potentiometer is being adjusted. We are using the code provided under the examples for Arduino* IDE 1.5.3.

Hardware

  • Intel® Galileo Board
  • Breadboard
  • Potentiometer
  • Wires

Instructions

  1. Using two wires, make the following breadboard-to-Intel Galileo Board connections:
     
    Breadboard Intel® Galileo Board
    Positive strip 5 V
    Negative strip GND

  2. Using the potentiometer, make the following breadboard-to-Intel Galileo Board connections:

    Breadboard Intel Galileo Board Potentiometer
    Negative strip   Pin 1
      A0 Pin 2
    Positive strip   Pin 3

  3. Connect the power supply and the USB to USB Client Port on the Intel Galileo Board.
  4. Open Arduino IDE. Click Tools > Board and select Intel Galileo.
  5. Click Tools > Serial Port and select the Com # that the Intel Galileo Board is connected to.
  6. Click File > Examples > 01.Basics and select ReadAnalogVoltage.
  7. Click upload icon.

Monitor the value of the potentiometer in the Serial Monitor.

Circuit

read voltage example


Note This image was created using Fritzing*.