IR sensors

The eyes of the robot

In robot sumo, there are two common types of sensors used for object detection: ultrasonic and infrared (IR) sensors. Ultrasonic sensors use sound waves to measure distance while IR sensors rely on presence of infrared radiation. In this guide, we mainly recommend IR sensors because they respond quicker due to using light instead of sound waves. Granted, ultrasonic sensors are better at accurately measuring distances, but in robot sumo this is not required.

IR sensors come in two types: analog and digital sensors. Analog sensors, such as the Sharp GP2Y0A21YK0F sensor outputs a voltage that corresponds to a distance. Digital sensors such as the JSUMO's JS40F uses a 0 or 1 to determine if an object is present.

If using JSUMO sensors, be mindful of limited documentation that is provided.

There is an Arduino library called SharpIR that makes reading analog signals from several models of IR sensors a lot easier.

Last updated