search
0
cart
close
You have no products in your basket yet
left
Tech Categories
Best Sellers
New Releases
Books
Videos
Audiobooks
Articles
Newsletters
Free Learning
right
Learn Robotics Programming - Second Edition

Learn Robotics Programming: Build and control AI-enabled autonomous robots using the Raspberry Pi and Python, Second Edition

By Danny Staple
$39.99 $27.98
Book Feb 2021 602 pages 2nd Edition
eBook
$39.99 $27.98
Print
$49.99
Subscription
$15.99 Monthly
eBook
$39.99 $27.98
Print
$49.99
Subscription
$15.99 Monthly

What do you get with eBook?

Feature icon Instant access to your Digital eBook purchase
Feature icon Download this book in EPUB and PDF formats
Feature icon Access this title in our online reader with advanced features
Feature icon DRM FREE - Read whenever, wherever and however you want
Buy Now

Product Details


Publication date : Feb 12, 2021
Length 602 pages
Edition : 2nd Edition
Language : English
ISBN-13 : 9781839218804
Category :
Concepts :
toc View table of contents toc Preview Book toc Download Code

Key benefits

  • 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

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

What do you get with eBook?

Feature icon Instant access to your Digital eBook purchase
Feature icon Download this book in EPUB and PDF formats
Feature icon Access this title in our online reader with advanced features
Feature icon DRM FREE - Read whenever, wherever and however you want
Buy Now

Product Details


Publication date : Feb 12, 2021
Length 602 pages
Edition : 2nd Edition
Language : English
ISBN-13 : 9781839218804
Category :
Concepts :

Table of Contents

25 Chapters
Preface Packt Packt
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Code in Action
Download the color images
Conventions used
Get in touch
Reviews
Section 1: The Basics – Preparing for Robotics Packt Packt
Section 1: The Basics – Preparing for Robotics
Chapter 1: Introduction to Robotics Packt Packt
Chapter 1: Introduction to Robotics
What does robot mean?
Exploring advanced and impressive robots
Discovering robots in the home
Exploring robots in industry
Competitive, educational, and hobby robots
Summary
Assessment
Further reading
Chapter 2: Exploring Robot Building Blocks – Code and Electronics Packt Packt
Chapter 2: Exploring Robot Building Blocks – Code and Electronics
Technical requirements
Looking at what's inside a robot
Exploring types of robot components
Exploring controllers and I/O
Planning components and code structure
Planning the physical robot
Summary
Exercise
Further reading
Chapter 3: Exploring the Raspberry Pi Packt Packt
Chapter 3: Exploring the Raspberry Pi
Technical requirements
Exploring the Raspberry Pi's capabilities
Choosing the connections
What is Raspberry Pi OS?
Preparing an SD card with Raspberry Pi OS
Summary
Assessment
Further reading
Chapter 4: Preparing a Headless Raspberry Pi for a Robot Packt Packt
Chapter 4: Preparing a Headless Raspberry Pi for a Robot
Technical requirements
What is a headless system, and why is it useful in a robot?
Setting up Wi-Fi on the Raspberry Pi and enabling SSH
Finding your Pi on the network
Using PuTTY or SSH to connect to your Raspberry Pi
Configuring Raspberry Pi OS
Summary
Assessment
Further reading
Chapter 5: Backing Up the Code with Git and SD Card Copies Packt Packt
Chapter 5: Backing Up the Code with Git and SD Card Copies
Technical requirements
Understanding how code can be broken or lost
Strategy 1 – Keeping the code on a PC and uploading it
Strategy 2 – Using Git to go back in time
Strategy 3 – Making SD card backups
Summary
Assessment
Further reading
Section 2: Building an Autonomous Robot – Connecting Sensors and Motors to a Raspberry Pi Packt Packt
Section 2: Building an Autonomous Robot – Connecting Sensors and Motors to a Raspberry Pi
Chapter 6: Building Robot Basics – Wheels, Power, and Wiring Packt Packt
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 Packt Packt
Chapter 7: Drive and Turn – Moving Motors with Python
Technical requirements
Writing code to test your motors
Steering a robot
Making a Robot object – code for our experiments to talk to the robot
Writing a script to follow a predetermined path
Summary
Exercises
Further reading
Chapter 8: Programming Distance Sensors with Python Packt Packt
Chapter 8: Programming Distance Sensors with Python
Technical requirements
Choosing between optical and ultrasonic sensors
Attaching and reading an ultrasonic sensor
Avoiding walls – writing a script to avoid obstacles
Summary
Exercises
Further reading
Chapter 9: Programming RGB Strips in Python Packt Packt
Chapter 9: Programming RGB Strips in Python
Technical requirements
What is an RGB strip?
Comparing light strip technologies
Attaching the light strip to the Raspberry Pi
Making a robot display the code object
Making a rainbow display with the LEDs
Using the light strip for debugging the avoid behavior
Summary
Exercises
Further reading
Chapter 10: Using Python to Control Servo Motors Packt Packt
Chapter 10: Using Python to Control Servo Motors
Technical requirements
What are servo motors?
Positioning a servo motor with the Raspberry Pi
Adding a pan and tilt mechanism
Creating pan and tilt code
Building a scanning sonar
Summary
Exercises
Further reading
Chapter 11: Programming Encoders with Python Packt Packt
Chapter 11: Programming Encoders with Python
Technical requirements
Measuring the distance traveled with encoders
Attaching encoders to the robot
Detecting the distance traveled in Python
Driving in a straight line
Driving a specific distance
Making a specific turn
Summary
Exercises
Further reading
Chapter 12: IMU Programming with Python Packt Packt
Chapter 12: IMU Programming with Python
Technical requirements
Learning more about IMUs
Soldering – attaching headers to the IMU
Attaching the IMU to the robot
Reading the temperature
Reading the gyroscope in Python
Reading an accelerometer in Python
Working with the magnetometer
Summary
Exercises
Further reading
Section 3: Hearing and Seeing – Giving a Robot Intelligent Sensors Packt Packt
Section 3: Hearing and Seeing – Giving a Robot Intelligent Sensors
Chapter 13: Robot Vision – Using a Pi Camera and OpenCV Packt Packt
Chapter 13: Robot Vision – Using a Pi Camera and OpenCV
Technical requirements
Setting up the Raspberry Pi camera
Setting up computer vision software
Building a Raspberry Pi camera stream app
Running background tasks when streaming
Following colored objects with Python
Tracking faces with Python
Summary
Exercises
Further reading
Chapter 14: Line-Following with a Camera in Python Packt Packt
Chapter 14: Line-Following with a Camera in Python
Technical requirements
Introduction to line following
Making a line-follower test track
Line-following computer vision pipeline
Trying computer vision with test images
Line following with the PID algorithm
Finding a line again
Summary
Exercises
Further reading
Chapter 15: Voice Communication with a Robot Using Mycroft Packt Packt
Chapter 15: Voice Communication with a Robot Using Mycroft
Technical requirements
Introducing Mycroft – understanding voice agent terminology
Limitations of listening for speech on a robot
Adding sound input and output to the Raspberry Pi
Programming a Flask API
Programming a voice agent with Mycroft on the Raspberry Pi
Summary
Exercises
Further reading
Chapter 16: Diving Deeper with the IMU Packt Packt
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 Packt Packt
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 Packt Packt
Section 4: Taking Robotics Further
Chapter 18: Taking Your Robot Programming Skills Further Packt Packt
Chapter 18: Taking Your Robot Programming Skills Further
Online robot building communities – forums and social media
Meeting robot builders – competitions, makerspaces, and meetups
Suggestions for further skills – 3D printing, soldering, PCB, and CNC
Finding more information on computer vision
Extending to machine learning
Summary
Further reading
Chapter 19: Planning Your Next Robot Project – Putting It All Together Packt Packt
Chapter 19: Planning Your Next Robot Project – Putting It All Together
Technical requirements
Visualizing your next robot
Making a block diagram
Choosing the parts
Planning the code for the robot
Letting the world know
Summary
Other Books You May Enjoy Packt Packt
Other Books You May Enjoy
Leave a review - let other readers know what you think
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQS

How do I buy and download an eBook? Packt Packt

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Packt Packt

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Packt Packt
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Packt Packt

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Packt Packt
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Packt Packt

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.