Book Image

Learning Robotics using Python - Second Edition

By : Lentin Joseph
Book Image

Learning Robotics using Python - Second Edition

By: Lentin Joseph

Overview of this book

Robot Operating System (ROS) is one of the most popular robotics software frameworks in research and industry. It has various features for implementing different capabilities in a robot without implementing them from scratch. This book starts by showing you the fundamentals of ROS so you understand the basics of differential robots. Then, you'll learn about robot modeling and how to design and simulate it using ROS. Moving on, we'll design robot hardware and interfacing actuators. Then, you'll learn to configure and program depth sensors and LIDARs using ROS. Finally, you'll create a GUI for your robot using the Qt framework. By the end of this tutorial, you'll have a clear idea of how to integrate and assemble everything into a robot and how to bundle the software package.
Table of Contents (12 chapters)

Interfacing DC geared motor to Tiva C LaunchPad

In the previous chapter, we selected a DC-geared motor with an encoder from Pololu and an embedded board from Texas Instruments, called Tiva C LaunchPad. We need the following components to interface the motor with LaunchPad:

  • Two Pololu metal gear motors, 37Dx73L mm with 64 counts per revolution encoder
  • Pololu wheel, 90x10 mm and a matching hub
  • Pololu dual VNH2SP30 motor driver carrier, MD03A
  • A sealed lead acid/lithium ion battery of 12V
  • A logic level convertor of 3.3V to 5V; visit https://www.sparkfun.com/products/11978.
  • A Tiva C LaunchPad and its compatible interfacing wires

The following diagram shows the interfacing circuit of two motors using Pololu H-Bridge:

Motor interfacing circuit

To interface with Launchpad, we have to connect a level shifter board in between these two motors. The motor driver works in 5V but the Launchpad...