Help understanding this! 1. The value read at an analog input pin using analogRe
ID: 2268424 • Letter: H
Question
Help understanding this!
1.The value read at an analog input pin using analogRead() is returned as a binary number between 0 and the maximum value that can be stored in [X] bits. 1. This binary number is directly linearly proportional to the input voltage at the analog pin, with the smallest and largest numbers returned corresponding to the minimum and maximum ADC input values, respectively. At a Vcc of 3.3 V, analogRead(A0) returns a value of 1023. Approximately what voltage is present at the pin A0 on the MSP430F5529?
2. A proper accelerometer pointing north measures the acceleration along a horizontal axis. What value should it read when it’s
at rest
moving south with an acceleration of 98.1 m/sec/sec
moving north-east with an acceleration of 1g
3. If a linear analog accelerometer outputs 10 V and 0 V for +20g and -20g, respectively, it has a sensitivity of 0.25 V/g since a 1g change in acceleration causes a change of 1V in its output. If an analog accelerometer outputs 3.3 V and 0 V for +16g and -16g, respectively, what is its sensitivity? What voltage should it display when the acceleration is zero?
Explanation / Answer
Hello,
Please find the answer to the first question attached as under. Please give a thumbs up rating if you find the answer useful! Have a rocking day ahead!
Since you are using the MSP430F5529 processor, it has got 12 bit ADC's. Thus, for Vcc = 3.3V, it will give a binary reading of 2^12 - 1, for input value = 3.3V i.e. 4095. The mentioned binary reading is 1023. Thus reading = (3.3*1023)/4095 = 0.8244V
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.