ASSIGNMENT PROBLEMS

1. Write a simple C program to read incremental encoder inputs (A and B) to determine the current position of the encoder. Note: use the quadrature encoding to determine the position of the motor.

2. A high precision potentiometer has an accuracy of +/- 0.1% and can rotate 300degrees and is used as a voltage divider with a of 0V and 5V. The output voltage is being read by an A/D converter with a 0V to 10V input range. How many bits does the A/D converter need to accommodate the accuracy of the potentiometer?

3. The table of position and voltage values below were measured for an inexpensive potentiometer. Write a C subroutine that will accept a voltage value and interpolate the position value.

 

[an error occurred while processing this directive]