Homework 6 Solution

Note that each digital number corresponds to a step a

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: s used with a thermal sensor to monitor the ambient temperature. The sensor measures temperature in range of - 50 degree Celsius to 150 degree Celsius and converts temperature proportionally to an electrical signal of voltage range from 0.0V to 2.0V. The ADC uses the reference voltage of 2.56V. Assume that the number of steps is 2n, where n is the number of bits of the ADC output. Recall that the ADC in ATmega128 is 10- bit. a. If the ambient temperature is 22 degree Celsius, what is the voltage of the sensor’s output? (3 pts) Recall the formula: (a – Amin) / (Amax – Amin) = (v – Vmin) / (Vmax – Vmin) Given Vmin = 0, (a – Amin) / (Amax – Amin) = v / Vmax (a – (- 50)) / (150 – (- 50)) = v / 2.0 v = 0.01 * (a + 50) = 0.01 * (32 + 50) = 0.82V...
View Full Document

This document was uploaded on 04/07/2014.

Ask a homework question - tutors are online