Book description
Develop an extendable smart robot capable of performing a complex series of actions with Python and Raspberry Pi
Key Features
- Get up to speed with the fundamentals of robotic programming and build intelligent robots
- Learn how to program a voice agent to control and interact with your robot's behavior
- Enable your robot to see its environment and avoid barriers using sensors
Book Description
We live in an age where the most complex or repetitive tasks are automated. Smart robots have the potential to revolutionize how we perform all kinds of tasks with high accuracy and efficiency. With this second edition of Learn Robotics Programming, you'll see how a combination of the Raspberry Pi and Python can be a great starting point for robot programming.
The book starts by introducing you to the basic structure of a robot and shows you how to design, build, and program it. As you make your way through the book, you'll add different outputs and sensors, learn robot building skills, and write code to add autonomous behavior using sensors and a camera. You'll also be able to upgrade your robot with Wi-Fi connectivity to control it using a smartphone. Finally, you'll understand how you can apply the skills that you've learned to visualize, lay out, build, and code your future robot building projects.
By the end of this book, you'll have built an interesting robot that can perform basic artificial intelligence operations and be well versed in programming robots and creating complex robotics projects using what you've learned.
What you will learn
- Leverage the features of the Raspberry Pi OS
- Discover how to configure a Raspberry Pi to build an AI-enabled robot
- Interface motors and sensors with a Raspberry Pi
- Code your robot to develop engaging and intelligent robot behavior
- Explore AI behavior such as speech recognition and visual processing
- Find out how you can control AI robots with a mobile phone over Wi-Fi
- Understand how to choose the right parts and assemble your robot
Who this book is for
This second edition of Learn Robotics Programming is for programmers, developers, and robotics enthusiasts who want to develop a fully functional robot and leverage AI to build interactive robots. Basic knowledge of the Python programming language will help you understand the concepts covered in this robot programming book more effectively.
Table of contents
- Learn Robotics Programming
- Second Edition
- Why subscribe?
- Contributors
- About the author
- About the reviewers
- Packt is searching for authors like you
- Preface
- Section 1: The Basics – Preparing for Robotics
- Chapter 1: Introduction to Robotics
- Chapter 2: Exploring Robot Building Blocks – Code and Electronics
- Chapter 3: Exploring the Raspberry Pi
- Chapter 4: Preparing a Headless Raspberry Pi for a Robot
- Chapter 5: Backing Up the Code with Git and SD Card Copies
- Section 2: Building an Autonomous Robot – Connecting Sensors and Motors to a Raspberry Pi
-
Chapter 6: Building Robot Basics – Wheels, Power, and Wiring
- Technical requirements
- Choosing a robot chassis kit
- Choosing a motor controller board
- Powering the robot
- Test fitting the robot
- Assembling the base
- Connecting the motors to the Raspberry Pi
- Summary
- Exercises
- Further reading
- Chapter 7: Drive and Turn – Moving Motors with Python
- Chapter 8: Programming Distance Sensors with Python
- Chapter 9: Programming RGB Strips in Python
- Chapter 10: Using Python to Control Servo Motors
- Chapter 11: Programming Encoders with Python
- Chapter 12: IMU Programming with Python
- Section 3: Hearing and Seeing – Giving a Robot Intelligent Sensors
- Chapter 13: Robot Vision – Using a Pi Camera and OpenCV
- Chapter 14: Line-Following with a Camera in Python
- Chapter 15: Voice Communication with a Robot Using Mycroft
-
Chapter 16: Diving Deeper with the IMU
- Technical requirements
- Programming a virtual robot
- Detecting rotation with the gyroscope
- Detecting pitch and roll with the accelerometer
- Detecting a heading with the magnetometer
- Getting a rough heading from the magnetometer
- Combining sensors for orientation
- Driving a robot from IMU data
- Summary
- Exercises
- Further reading
-
Chapter 17: Controlling the Robot with a Phone and Python
- Technical requirements
- When speech control won't work – why we need to drive
- Menu modes – choosing your robot's behavior
- Choosing a controller — how we are going to drive the robot, and why
- Preparing the Raspberry Pi for remote driving—get the basic driving system going
- Making the robot fully phone-operable
- Making the menu start when the Pi starts
- Summary
- Exercises
- Further reading
- Section 4: Taking Robotics Further
- Chapter 18: Taking Your Robot Programming Skills Further
- Chapter 19: Planning Your Next Robot Project – Putting It All Together
- Other Books You May Enjoy
Product information
- Title: Learn Robotics Programming - Second Edition
- Author(s):
- Release date: February 2021
- Publisher(s): Packt Publishing
- ISBN: 9781839218804
You might also like
book
Learn Robotics Programming
Gain experience of building a next-generation collaboration robot Key Features Get up and running with the …
book
Mastering ROS for Robotics Programming - Second Edition
Discover best practices and troubleshooting solutions when working on ROS About This Book Develop complex robotic …
book
Mastering ROS for Robotics Programming - Third Edition
Design, build, and simulate complex robots using the Robot Operating System Key Features Become proficient in …
book
Learning Robotics using Python - Second Edition
Design, simulate, and program interactive robots About This Book Design, simulate, build, and program an interactive …