Boe-Bot's IR Sensors
arnoldgallows
Posts: 3
I need help with my IR Sensors! After running the TestLeftIrPair.bs2 on my Boe-Bot, the terminal says "irDetectLeft = 1" and it stays 1 no matter what I put in front of them. I've rechecked the program and all the breadboard connections and they all look correct.
Has this happened to anyone else? Any help will be appreciated.
Thanks,
Arnold
Has this happened to anyone else? Any help will be appreciated.
Thanks,
Arnold
Comments
Yes this has happened to others! Here's a few things to check, that I've seen happen at Educator's Courses.
Seeing a constant 1 in the Debug Terminal means the IR receiver is not seeing the infrared light flashing at 38.5 kHz.
Wiring recheck: You can check your wiring easier if you look at the book PDF online, it is in color and you can zoom in. It's a free download: go to www.parallax.com/downloads and click on the Stamps in Class link. It's the second book shown.
Resistors: Make sure you are using the correct resistor value on the IR emitter on that side. If you accidentally use a 10K (brown-black-orange) instead of 1K (brown-black-red) the IR emitted will be very weak, and the system will seem very nearsighted.
Make sure you have 38500 and not 3850 in your FREQOUT statement.
Swapping components: Did you modify the program to see if you are getting a 0 reading on the right IR pair? If you are getting a 0 on the right, you know that both those components and those circuits are working. Now, try switching the two IR receivers. If the circuit on the left now works and the one on the right stops working, the problem is likely a damaged IR receiver. You can do a similar test by swapping IR LEDs too. If the swapping of components makes no difference, as in it still doesn't work on the left and does work on the right, the problem is likely in the circuit wiring on the left.
Did you possibly put the IR LEDs in backward? That's easy to do once the LEDs are in their little black light shields and you can't see the flat spot anymore.
Give these things a try and let us know how it goes.
-Steph
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"If you build it, they will come."
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"If you build it, they will come."
The Boe-Bot kit comes with four LEDs, two are IR, and two are Red LEDs. I don't remember there being a White LED in the kit. Maybe the wrong one was packed with the kit. I'm sure Parallax would send a replacement.