using the IR to sense distance

Is it possible to program Sparki to use the IR to sense distance?
How would I go about doing this?
Thank you
Ash :slight_smile:

edit:

Sparki has an IR receiver obviously for the remote but labelled on the board is also IR send but I can’t use sparki.sendIR();
I think if I could use these two in conjunction it wouldn’t matter that I cant get my ultrasonic range finer to work.

Possibly, but only for very short distances, and it would vary a lot based on the reflectivity of the material underneath it. I presume you’re talking about the sensors underneath, as the one on top isn’t capable of this (its modulated only for remote control signals).

I bought a IR obstacle detector which works really well with Sparki plugged into the expansion port…now its not so bad that he doesn’t have eyes as he can still avoid stuff :slight_smile: :slight_smile: