ELMS WROTE:I'm doing analog system to control a ball. I'm using IR sensor as the position sensor. The problem is the output of the IR sensor is non linear. How can I invert the output of IR sensor? Should I use anti logarithm? or perhaps linearization formula? Or perhaps just switch to any other suitable position sensor?
Thank you
Position sensor, kind of general term you have there. IR and Ultrasonic range finder is basically distance sensor, not exactly position sensor. In simple words, distance sensor sense distance in 1 axis and 1 line. Position can be 2 D and 3 D. So it depends on how you want it to be
Ultrasonic range finder resolution is 1inch, so if 1 inch is good enough for your application, then try it, and the output is linear.