Hi SoR Forum!
I am new at "robotting" and want to build my first small robot

Instead of just using the suggested two photoresistors for "obstacle avoidance"/"range detection" I consider making my own IR emitter/detector. But I got a bit confused when reading the "color sensor tutorial" because both the method with an IR emitter and an IR detector and the method with the three color LEDs combinded with the photoresistor was described.
Therefore I would like to know which of these methods you would prefer for "obstacle avoidance"/"range detection"?
And if the IR emitter/detector is prefered, what should the specification of the emitter and detector be, respectivly, when building the 50 $ robot?
I really hope someone can help

Morten.