Book Image

Python Robotics Projects

By : Prof. Diwakar Vaish
Book Image

Python Robotics Projects

By: Prof. Diwakar Vaish

Overview of this book

Robotics is a fast-growing industry. Multiple surveys state that investment in the field has increased tenfold in the last 6 years, and is set to become a $100-billion sector by 2020. Robots are prevalent throughout all industries, and they are all set to be a part of our domestic lives. This book starts with the installation and basic steps in configuring a robotic controller. You'll then move on to setting up your environment to use Python with the robotic controller. You'll dive deep into building simple robotic projects, such as a pet-feeding robot, and more complicated projects, such as machine learning enabled home automation system (Jarvis), vision processing based robots and a self-driven robotic vehicle using Python. By the end of this book, you'll know how to build smart robots using Python.
Table of Contents (24 chapters)
Title Page
Packt Upsell
Contributors
Preface
Index

Chapter 8. Making Your Own Area Scanner

Motors are amazing things; they come in all shapes and sizes. Primarily, they can be considered the backbone of most robots. However, nothing is perfect in this world. There must be some drawbacks to these motors as well. By now, you might have figured out some by yourself. In the previous chapter, when we made the car turn, you might have seen that the angle of turn was never really the same. Also when the vehicle was given the command to go straight, it really would not do so. Rather it would try to run slight, toward one side. 

Say hello to the first problem—precision. The motors are exceptionally simple to control, but the problem with these motors come when we have to rotate the motors only till a specific angle. If you need to rotate the motor of your robotic vehicle only by 90 degrees, then how would you do it? The first and foremost thing that might come to your mind would be to fiddle with the timings of the motors. You might be right here...