Midterm Exam solutions and answers in Microcontroller and practical robotics
Midterm Exam
Microcontrollers and Practical Robotics
Question 1
Convert the decimal number 43.982 to (a) binary and (b) hex. Show all your calculations.
a.) 101011.111110
b.) 2B.FB6
Question 2
Perform the calculation of 58 – 42 by first converting each decimal value to
binary and then using the twos complement method. Show all your calculations
5810=001110102
4210=001010102
Converse to twos complement 4210=001010102=110101012+1=110101102
Then 58+(42)
001110102
+110101102
= 000100002 =1610
Question 3
Given the following bridge circuit for a strain gauge, determine the value of
the strain gauge resistance {RS}.
Let: VIN = 5V
R3 = 100 Ω
R2 = 50 Ω
R1 = 100 Ω
2 Midterm Exam - Solutions
a) Under no strain (VOUT = 0 V)
b) When VOUT = 0,5 V {under strain}.
Solution:
a) Under no strain:
R1 R3 R1R4 R2 R3
VOUT ...