Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Robotics using Python

You're reading from   Learning Robotics using Python Bring robotics projects to life with Python! Discover how to harness everything from Blender to ROS and OpenCV with one of our most popular robotics books.

Arrow left icon
Product type Paperback
Published in May 2015
Publisher Packt
ISBN-13 9781783287536
Length 330 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Toc

Table of Contents (14) Chapters Close

Preface 1. Introduction to Robotics FREE CHAPTER 2. Mechanical Design of a Service Robot 3. Working with Robot Simulation Using ROS and Gazebo 4. Designing ChefBot Hardware 5. Working with Robotic Actuators and Wheel Encoders 6. Working with Robotic Sensors 7. Programming Vision Sensors Using Python and ROS 8. Working with Speech Recognition and Synthesis Using Python and ROS 9. Applying Artificial Intelligence to ChefBot Using Python 10. Integration of ChefBot Hardware and Interfacing it into ROS, Using Python 11. Designing a GUI for a Robot Using Qt and Python 12. The Calibration and Testing of ChefBot Index

Interfacing DC geared motor with Tiva C LaunchPad

In the previous chapter, we selected a DC geared motor with an encoder from Pololu and the 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 37Dx57L mm with 64 count 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 12 V
  • A logic level convertor of 3.3 V to 5 V https://www.sparkfun.com/products/11978.
  • A Tiva C LaunchPad and its compatible interfacing wires

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

Interfacing DC geared motor with Tiva C LaunchPad

Motor interfacing circuit

To interface with Launchpad, we have to connect a level shifter board in between these two. The motor driver works in 5 V but the Launchpad works in 3.3 V, so we have to connect a level shifter, as shown in the following figure:

Interfacing DC geared motor with Tiva C LaunchPad

Level shifter circuit

The two geared DC motors...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image