Multi-Input Analog Reading with Arduino Uno

From ESE205 Wiki
Revision as of 18:16, 5 December 2018 by Samlasota (talk | contribs) (Created page with "==Overview== This tutorial takes the reader through a step-by-step solution to reading multiple analog inputs with an Arduino Uno simultaneously. ==Justification== The Ardui...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Overview

This tutorial takes the reader through a step-by-step solution to reading multiple analog inputs with an Arduino Uno simultaneously.

Justification

The Arduino Uno is equipped with only one ADC (analog-to-digital converter). Thus, it is not possible to achieve simultaneous readings. The ADC multiplexer needs time to switch and the voltage needs to stabilize.

Materials Needed

  • Arduino Uno
  • Arduino's IDE
  • Multiple analog inputs

Process

Two solutions are available to us depending on the context. 1) If taking readings close together is important: create a delay between readings and take two readings per input and discard the first (to get a more accurate reading) 2) Otherwise create separate read functions that operate at different times

References