Sensor Interfacing

Before starting a schematic we decided to individually test and debug each of our sensors/modules with the ICE emulator and prototype board. Ilia thought (and I agreed) that it would be a good learning experience for us to write ALL our own code rather than use third party libraries. Today we started with the IR rangefinder by modifying our previously written A to D conversion code. I figured out the equation to convert the A to D value to distance in centimeters

y = 32.14294004 x4 - 195.6090369 x3 + 437.1088864 x2 - 446.8068463 x+ 202.2574821


(No thanks to Ilia who was "sick". Whatever, he wouldn't have helped anyway).