Basic ADC Example

Reads and interprets the value of an ADC.

API Features Demonstrated

Platforms

This app works on:

Requirements and Prerequisites

Requires a ZentriOS evaluation board, such as an AMWx06-E03 (Moray), that includes a thermistor.

Resources

The lookup table, therm_celsius_lut.csv located in the app resources directory, is downloaded to the device.

Description

This app demonstrates how to read the raw value of an Analog-Digital Converter (ADC) and convert the value into a temperature value using a look up table.

Notes

Usage Instructions

Open a ZentriOS serial terminal to the device. See Getting Started, Opening a ZentriOS Terminal.

This app requires no interaction. It logs results to the ZentriOS terminal.

Implementation

The app runs to completion performing the following steps.

Source Code

See: