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.
Publisher resources
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
Intro to Python for Computer Science and Data Science: Learning to Program with AI, Big Data and The Cloud
This is the eBook of the printed book and may not include any media, website access …
video
Python Fundamentals
51+ hours of video instruction. Overview The professional programmer’s Deitel® video guide to Python development with …
book
Clean Code: A Handbook of Agile Software Craftsmanship
Even bad code can function. But if code isn't clean, it can bring a development organization …
book
Python for Programmers, First Edition
The professional programmer's Deitel® guide to Python® with introductory artificial intelligence case studies Written for programmers …