Which IR sensor is easier to work with?
I am looking at the Sharp line of IR sensors. I can't decide between the digital or analog one. It says the digital one outputs, "a serially transmitted byte proportial (not linearl) to the distance to the nearest object in its field of view" and the analog one outputs, "an analog voltage proportional to the distance to the nearest object in its field of view." Which one of these would work best with the javelin? I would suppose that with the digital one, a Uart would be used to communicate. With the analog one, the voltage would just be read. Also, are both non-linear? Thanks.
Comments
http://www.acroname.com/robotics/info/articles/sharp/sharp.html
I think the GP2D02 is best as it allows you to use shiftIn() to get the
data. With an analog value you require an ADC VP and extenal components.
Read towards the end of the page for info about a protecting diode.
regards peter