Chapter 11. Final Code and Conclusion

At this point in the build, you should have at least two things: a working rover, and a directory on the Pi full of small Python scripts that do all kinds of neat things separately, but don’t work together very well. As the last part of this build, we’ll have to combine all of the scripts into one large working program that does everything we expect it to.

When setting up this program,we need to ask ourselves a few questions. First, how many sensors are we going to be using? There are a lot of different ones, and you have only a limited number of GPIO pins available (unless they’re all on the I2C bus). Also, some of the sensors don’t play well together in the same program. For instance, the SHT15 temperature ...

Get Make a Raspberry Pi-Controlled Robot now with O’Reilly online learning.

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