Interfacing ChefBot sensors to the Tiva-C LaunchPad
We have looked at the interfacing of the individual sensors that we are going to use in ChefBot. In this section, we will learn how to integrate sensors into the LaunchPad board. The Energia code to program Tiva-C LaunchPad is available in the cloned files at GitHub. The connection diagram showing the connection of the Tiva-C LaunchPad with the sensors is as follows. From this diagram, we learn how the sensors are interconnected with LaunchPad:

Sensor-interfacing diagram of ChefBot
M1 and M2 are two differential-drive motors that we are using in this robot. The kind of motor we are going to use here is a DC geared motor with an encoder from Pololu. The motor terminals are connected to the dual VNH2SP30 motor driver from Pololu. One of the motors is connected with reverse polarity because in differential steering, one motor rotates in the opposite direction to the other. If we send the same control signal to both the motors, each motor will...