Let's Make Robots!

Help with Infrared Sensor

Think this is the right section to post this.

My robot was acting strangly so I've run a debug on the IR sensor and the value is really high, like it's constantly seeing something in front of it, nothing I do seems to influence the reading. I've taken it apart and re-wired but can't figure out whats going on. Can anyone advise?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

However, have you tried changing the IR fluid?  It's very easy.  Just drill a little hole in the shiny round bulb in the front of the sensor and hold it over the loo for about 10 seconds to drain.  You may not see anything come out because since it's infra red, it doesn't register in the visible spectrum.  Next, infuse 10cc of denatured alcohol with infra red rays.  You can use any source-sunlight, heat lamp, massager, etc.  The length of time and intensity is umimportant because each molecule of alcohol ionizes instantly.  Finally, using a syringe, inject the new IR fluid into the sensor through the hole you drilled until it flows out.  (It is now visible because the sensor has not activated it yet.)  Put a dab of hot glue over the drill hole and you're ready to go.

(Please note, this is a joke for the amusement of my fellow robot makers and doing anything like this will ruin any sensor.)

Why we do not have a 1+ or "Like" button here....hahaha, that was a good one Max. 

Seriously, a little more info would increase the chance of fixing your problem drastically.

You should be able to check it by using a digital camera. If you aim the sensor at a digital camera, you should see a blue/violet/grey light. If that is the case, you at least know the IR LED part of the sensor is still functioning.

Ive had a ton of issues with IR sensors....

1) What is the brand/ model number


2) Do the readings fluctuate when it moves around (Or does it seem stuck at those same high number?)

3) can you show us the debug code your running?

It would help a lot if you told us what sensor you are talking about, What controller you are using, posted a schematic of how you have it connected and included a clear photo of your configuration.

The more information you give us the more likely we can help you solve your problem.