Working with the Pololu Zumo robot for Arduino

In this section, we will make a simple robot with simple movements based on avoiding obstacles. If the robot faces an obstacle, the robot will turn left to avoid it. To make this happen, we can use an Ultrasonic module to detect an obstacle.

I usually use HC-SR04 as an Ultrasonic module. It's cheap, and you can buy it on,, and AliExpress. You can see the HC-SR04 module form in the following figure:

Working with the Pololu Zumo robot for Arduino

The HC-SR04 module provides four pins: VCC, GND, Trigger, and Echo. You can connect Trigger and Echo pins to Arduino digital I/O. But how can you connect the HC-SR04 module into Pololu Zumo ...

Get Smart Internet of Things Projects now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.