Homework 6 Solution

Question 5 atmega128 adc programming 5 pts describe

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: b. What is the corresponding digital reading from the ADC output? (3 pts) The formula is v / V’max = d/M. Note that in this case, V’max = 2.56V, not 2.0V. The voltage range for the sensor is different from that of the ADC. Then, v/2.56 = d/1024 d = 400*v = 400 * 0.82 = 328 c. If the digital reading is 200, what is the range of the analog value? Note that each digital number corresponds to a step (a small range in the span) of the analog value. (4 pts) From (b), d = 400*v, so v = d/400 = 300/400 = 0.75v Step size of voltage is 2.56v/1024 = 0.0025v Range is [0.75V, 0.7525V) From (a) and (b), d = 400*v and v = 0.01 * (a + 50) So d = 400 * 0.01 * (a + 50) = 4 * (a + 50) Name: Lab Section: a = d/4 – 50...
View Full Document

Ask a homework question - tutors are online