Quote:
Originally Posted by ChrisM2346
1. Can I get a Sharp IR sensor (or sensors) that can help me with alignment with the goals?
|
Probably not. You will have big challenges figuring out what part of the tape your sensor is seeing, and discriminating when it is seeing the tape or just close to a reflective object that returns the same value. The sensor you have is probably used in a fixed industrial setting where the reflector is mounted across some gap, and the sensor is always pointed at it. When an object obstructs the view of the reflector, the sensor indicates it can no longer see the reflector.
As for other IR sensors, they are good for measuring the distance to an object in front of them. Most output an analog signal that is proportional to the distance measured. Like this one:
https://www.adafruit.com/products/164
This same feature can be used to detect presence of an object (if range to object is less than X, then there is something there), and some IR sensors come with a carrier board that is set to do this for a particular range. Like this one:
https://www.adafruit.com/products/1927
Another is line-following sensors that look for a difference between two detectors to sense an edge:
https://www.sparkfun.com/products/11769
For finding the goals in autonomous, vision processing is going to be your best bet. Many active threads here on CD to help with that, and the example code provided in your software install is very helpful. For help with finding them in teleop, you can also go with a low-tech solution. Have a bright light (flashlight) aligned with your shooter. When the drive team sees a bright reflection on the tape in their camera view...time to shoot.
Quote:
Originally Posted by BitTwiddler
I've used the Sharp sensors with some success. However the long range version is good to about 1.5 meters.
|
There is one that can work out to 5 meters. We will be using one of these this year to sense our distance to the castle wall. It's better than ultrasonic because you do not have to worry about interference from other bots using ultrasonic.
https://www.adafruit.com/products/1568