Analog-to-Digital Converter (ADC) - Temperature Measurement Using AVR128DA48 Microcontroller
 
 
Go to file
Grig Barbulescu d03a2d5a0d MPAE-4302: updated jenkins file 2020-10-01 22:48:44 +03:00
.main-meta MPAE-4302: Updated project name and metadata 2020-09-24 16:31:33 +03:00
avr128da48-cnano-adc-temperature-measurement-mplab.X MPAE-4302: deleted output files 2020-09-24 17:15:13 +03:00
images MPAE-4302: Added project, README file, images, updated metadata. 2020-09-21 23:39:33 +03:00
.gitignore MCU8QA-162 added new CICD files 2020-07-21 13:01:09 +05:30
Jenkinsfilek8s MPAE-4302: updated jenkins file 2020-10-01 22:48:44 +03:00
README.md MPAE-4302: Updated project name and metadata 2020-09-24 16:27:57 +03:00
cloudprovider.yml MCU8QA-162 added new CICD files 2020-07-21 13:01:09 +05:30

README.md

MCHP

AVR128DA48 ADC Temperature Measurement

Objective

In this application, the ADC will be used to measure the temperature, and the results will be transmitted through USART. The software diagram of this application is presented in the figure below.

Software Used

Hardware Used

Setup

The AVR128DA48 Curiosity Nano Development Board is used as the test platform. To integrate the POT Click board, the Curiosity Nano Base for Click boards is used.


The following configurations must be made:

Pin Configuration
PC0 (TX) Digital Output

Operation

  1. Connect the board to the PC.

  2. Open the avr128da48-cnano-adc-temperature-measurement-mplab.X project in MPLAB® X IDE.

  3. Set avr128da48-cnano-adc-temperature-measurement-mplab.X project as main project. Right click on the project in the Projects tab and click Set as Main Project:


  1. Select the AVR128DA48 Curiosity Nano in the Connected Hardware Tool drop down list of the project settings:
  • Right click on the project and click Properties;
  • Select the AVR128DA48 Curiosity Nano (click on the SN) in the Connected Hardware Tool list and then click OK:


  1. Program the project to the board: right click on the project and click Make and Program Device:


  1. Open the Data Visualizer
    • From the Curiosity Nano COMn port, open the drop down list:
    • From the drop down list, select New variable streamer...:
    • Configure the Variable Streamer Name and add the desired variable, then click Next:
    • Select all the variables to plot, select New axis per data type, and click Finish:

Result:

After alternatively cooling and warming up the microcontroller (after starting the application), the ADC result will be plotted on the graph:
Demo

Summary

This application showcases a basic example of how to measure the temperature using the ADC on the AVR-DA devices.