avoid table edge
Ben Damon
Posts: 42
I was working on avoid table edge program in "robotics with the boe-bot" on page 259.· My problem was the boe-bot kept spinning and spinning.· I figured out that the left ir led was some how sending a stronger signal.· And the right did not see anything.· Should I do the Ir balance thing in the back of the book?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ben Damon
And may God Bless America!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ben Damon
And may God Bless America!
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ben Damon
And may God Bless America!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
If one of the sensor outputs is kind of sketchy, try the following:
Regarding the tuning that Jon mentioned, make sure that the IR LED and the detector are both focused on the same point in front of the Boe-Bot. There will be two different focal points, one for the left IR LED/detector, and another for the right.
Check and see if the resistor in series with the IRLED has the wrong color code. It's easy to mistake brown-black-orange for brown-black-red.
Check to make sure none of the wires are shorting against each other.
Make sure that the left and right IRLEDs are both properly seated in their shields.
Try adding PAUSE 10 just before the second FREQOUT command.
Some table surfaces work better than others.· Try a sheet of white photocopy paper and see if that gives the right IR LED/detector a strong enough signal.
If none of the above works, try going back to the Your Turn section of Chapter 7, Activity #3.· Although it's not common, you may need a different series resistor for your right and left IR LEDs.· For example, maybe they will both have the same detection power if the resistor in series with the·right IR LED is 1 k (brown-black-red) while the·left needs 2 k (red-black-red).
If the intermittent results occur while the detector is focused on the electrical tape boundary but not on white paper, you may have IR interference from a nearby fluorescent light. Try IrInterferenceSniffer.bs2 from Chapter 7, Activity 2.
Post Edited (Andy Lindsay (Parallax)) : 3/22/2005 8:07:16 PM GMT
This seems to work, the left is touchy and will turn at any little thing
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ben Damon
And may God Bless America!
My new method of harnessing their power is to coat them with liquid paper on the back and part way up the sides. Then cover with shrink tubing and shrink using a match. I found that while using very low power the beam could be modified by modifying the IRLED. Also keep in mind that there are various IRLEDs on the market with various emissions angles depending on your needs. Getting the LED to match perfectly and proper placement of the IR receivers is the key though. I also noticed that making a small shield(as the finished project will be enclosed) on the back of·the receivers helped with weird reflections, where an object on the right would be picked up by the left sensor aswell. I'm not using edge detection though, its a matter of fiddling with it till, as mentioned before, the focal point is where you want it.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Post Edited (Jonb) : 4/5/2005 4:54:51 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Also post in robotics if the question is about robots.