Read Voltage Example on Intel® Galileo Board
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
- Using two wires, make the following breadboard-to-Intel Galileo Board connections:
Breadboard Intel® Galileo Board Positive strip 5 V Negative strip GND - 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 - Connect the power supply and the USB to USB Client Port on the Intel Galileo Board.
- Open Arduino IDE. Click Tools > Board and select Intel Galileo.
- Click Tools > Serial Port and select the Com # that the Intel Galileo Board is connected to.
- Click File > Examples > 01.Basics and select ReadAnalogVoltage.
- Click upload icon.
Monitor the value of the potentiometer in the Serial Monitor.
Circuit
Note | This image was created using Fritzing*. |