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 GP2Y0A21YK0Farrow-up-right sensor outputs a voltage that corresponds to a distance. Digital sensors such as the JSUMO's JS40Farrow-up-right uses a 0 or 1 to determine if an object is present.

JSUMO JS40F IR sensors
circle-exclamation
SHARP GP2Y0A21YK0F
circle-info

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

Last updated