April 2018
Beginner
552 pages
13h 58m
English
You will need a magnetometer device, such as PiBorg's XLoBorg module (which is a combined I2C magnetometer and accelerometer). In this example, we will only focus on the magnetometer (the smaller chip on the left) output. The XLoBorg module is shown in the following photo:

This device can be used with both types of robot, and the angle information received from the module can be used to determine which direction the robot needs to move in.
The module is designed to connect directly to the GPIO header, which will block all the remaining pins. So, in ...