Arduino Robot Video 3. Avoid obstacles, create strategies
In this video the Arduino team will explore how to use different technologies to detect obstacles in the way of the Arduino Robot. The three technologies being tested are: ultrasonic range finders, infrared range finders the trick of using ultrabright white LEDs and LDRs.
The video starts with a brief explanation on ultrasound and how it provides information about the objects and obstacles in front of the sensor. Xun and David attach one of those sensors to the Robot and execute an example called “Avoid Obstacle “that was specially designed for the Maxbotix EZ-10 ultrasonic range finder.
The second example shows the use of two Sharp infrared sensors. There are several types of sensors from this brand providing different types of data. In this case, we'll see how to use one that gives an analog voltage mapped to the distance to objects.
In a sense ultrasound and infrared operate in the same way: a signal is sent, that bounces on objects and the received echo is used to estimate the distance. With ultrasound, the speed of sound and the time difference between the sent signal and the received one is used, while infrared is more direct as it gives a stronger or weaker reflection depending on how far the signal travels.The estimation of the distance to objects is done via software. You will see a simple example of this when changing from ultrasound sensors to the infrared ones.
For the infrared example, David and Xun will connect two sensors to the TinkerKit connectors on the Robot. In the case of the ultrasonic sensor the Robot can only see whether there is something in front; however for the infrared sensor, the Robot can decide which side the obstacle is closer to and subsequently decide to which direction to turn.
The final example shows how simple it can be to build your own reflective sensors using a very strong source of light and an LDR. In this case standard TinkerKit components are used: an ultrabright LED module and an LDR module. This example works in the same way as for the infrared. In this case, the infrared is invisible to the eye, while the light emitted by the ultrabright LED is not.
The following video will show how to get your Robot to follow lines using the IR-array sensor at the bottom of the motor board.
More Arduino stuff