Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Robotics at Home with Raspberry Pi Pico: Build autonomous robots with the versatile low-cost Raspberry Pi Pico controller and Python Paperback – March 17, 2023
Purchase options and add-ons
Design, build, and program a mobile robot platform while gaining an understanding of the Raspberry Pi Pico, Free CAD, and robot sensors using Python to code, Bluetooth to connect & smartphone to control your projects
Key Features:
- Gain in depth knowledge of robotics with easy-to-follow instructions
- Build a rover platform designed for experimentation and extension
- Enhance your robot building skills through planning, building, and coding
- Purchase of the print or Kindle book includes a free PDF eBook
Book Description:
The field of robotics is expanding, and this is the perfect time to learn how to create robots at home for different purposes. This book will help you take your first steps in planning, building, and programming a robot with Raspberry Pi Pico, an impressive controller bursting with I/O capabilities. After a quick tour of Pico, you'll begin designing a robot chassis in 3D CAD. With easy-to-follow instructions, shopping lists, and plans, you'll start building the robot. Further, you'll add simple sensors and outputs to extend the robot, reinforce your design skills, and build your knowledge in programming with CircuitPython. You'll also learn about interactions with electronics, standard robotics algorithms, and the discipline and process for building robots. Moving forward, you'll learn how to add more complicated sensors and robotic behaviors, with increasing complexity levels, giving you hands-on experience. You'll learn about Raspberry Pi Pico's excellent features, such as PIO, adding capabilities such as avoiding walls, detecting movement, and compass headings. You'll combine these with Bluetooth BLE for seeing sensor data and remotely controlling your robot with a smartphone. Finally, you'll program the robot to find its location in an arena.
By the end of this book, you'll have built a robot at home, and be well equipped to build more with different levels of complexity.
What You Will Learn:
- Interface Raspberry Pi Pico with motors to move parts
- Design in 3D CAD with Free CAD
- Build a simple robot and extend it for more complex projects
- Interface Raspberry Pi Pico with sensors and Bluetooth BLE
- Visualize robot data with Matplotlib
- Gain an understanding of robotics algorithms on Pico for smart behavior
Who this book is for:
This book is for beginner robot makers, keen hobbyists, technical enthusiasts, developers and STEM teachers who want to build robots at home. Prior knowledge of coding - beginner to intermediate programming, will be helpful.
- Print length400 pages
- LanguageEnglish
- PublisherPackt Publishing
- Publication dateMarch 17, 2023
- Dimensions9.25 x 7.52 x 0.83 inches
- ISBN-101803246073
- ISBN-13978-1803246079
Frequently bought together

Similar items that ship from close to you
Editorial Reviews
About the Author
Danny Staple is a robot builder and programmer. He has been a professional software engineer since 2000, uses Python professionally, and regularly contributes to open source projects. Danny has been building robots at home since 2004 and has a cupboard full of projects, including robots with wheels, cameras, tank tracks, legs, and arms, made from plastic, cardboard, metal, kits, lunchboxes, and modified toys. Danny authored Learn Robotics Programming, published in 2021 by Packt Publishing, and has written magazine articles for The MagPi. He runs the robotics YouTube channel Orionrobots and brings his robots to events such as Pi Wars and Arduino Day. Danny also mentors at CoderDojo KU, where he shows kids how to program in Python and has run Lego robotics clubs.
Product details
- Publisher : Packt Publishing (March 17, 2023)
- Language : English
- Paperback : 400 pages
- ISBN-10 : 1803246073
- ISBN-13 : 978-1803246079
- Item Weight : 1.54 pounds
- Dimensions : 9.25 x 7.52 x 0.83 inches
- Best Sellers Rank: #2,024,109 in Books (See Top 100 in Books)
- #310 in Computer Hardware Peripherals (Books)
- #451 in Single Board Computers (Books)
- #2,182 in Python Programming
- Customer Reviews:
About the author

Danny Staple is a robot builder and programmer from the UK. Danny loves to share his knowledge through mentoring, videos and writing.
I have a Discord server for my books at https://discord.gg/4kcSNf4Npp. Get in touch with Danny via twitter @orionrobots.
Danny has been building robots since 2004, with Raspberry Pi, Arduino and whatever components he can lay his hands on to do it. He has great fun putting things together to make machines that move, sense and react, perform autonomous tasks, and do things like see and talk. He runs his own maker youtube channel, Orionrobots.
He has been programming with computers since the Commodore 64, and mentors kids learning to program in Python, which he also uses professionally.
Customer reviews
- 5 star4 star3 star2 star1 star5 star69%0%31%0%0%69%
- 5 star4 star3 star2 star1 star4 star69%0%31%0%0%0%
- 5 star4 star3 star2 star1 star3 star69%0%31%0%0%31%
- 5 star4 star3 star2 star1 star2 star69%0%31%0%0%0%
- 5 star4 star3 star2 star1 star1 star69%0%31%0%0%0%
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonReviews with images
Not a Good Choice for Beginners
-
Top reviews
Top reviews from the United States
There was a problem filtering reviews right now. Please try again later.
The book is written in a clear and engaging style, and the author does a great job of explaining complex concepts in a way that is easy to understand. The book is also well-illustrated with diagrams and photographs, which help make the subject matter easier to grasp.
One of the things that I loved about this book is that it is very hands-on. The author provides step-by-step instructions for building and programming a variety of robots, from simple line-following to more self aware orienting and locating bots that can navigate their environment and avoid obstacles.
If you are interested in learning how to build and program robots, then Robotics at Home with Raspberry Pi Pico is a must have. The book is packed with information and will for sure help you get started on your robotics journey.
Things I liked about the book:
Comprehensive coverage of robotics topics
Clear and engaging writing style
Well-illustrated with diagrams and photographs
Hands-on approach
Overall, Robotics at Home with Raspberry Pi is an excellent resource for anyone who wants to learn how to program and build robots. The book is well-written, engaging, informative and it provides step-by-step instructions. If you are interested in learning how to go from 0 to 1 in robotics, then I would highly recommend this book.
Reviewed in the United States on April 13, 2023
The book is written in a clear and engaging style, and the author does a great job of explaining complex concepts in a way that is easy to understand. The book is also well-illustrated with diagrams and photographs, which help make the subject matter easier to grasp.
One of the things that I loved about this book is that it is very hands-on. The author provides step-by-step instructions for building and programming a variety of robots, from simple line-following to more self aware orienting and locating bots that can navigate their environment and avoid obstacles.
If you are interested in learning how to build and program robots, then Robotics at Home with Raspberry Pi Pico is a must have. The book is packed with information and will for sure help you get started on your robotics journey.
Things I liked about the book:
Comprehensive coverage of robotics topics
Clear and engaging writing style
Well-illustrated with diagrams and photographs
Hands-on approach
Overall, Robotics at Home with Raspberry Pi is an excellent resource for anyone who wants to learn how to program and build robots. The book is well-written, engaging, informative and it provides step-by-step instructions. If you are interested in learning how to go from 0 to 1 in robotics, then I would highly recommend this book.
1. Chapter 3 introduces FreeCAD and shows how to model the robot car. FreeCAD is powerful but difficult to learn, and it’s not necessary to build this car, as it’s only used to create a “technical drawing” of the chassis. All you need to know are the dimensions of the chassis and the locations of the mounting holes for the motors and the caster, and that’s provided on page 79. If you want to follow the instructions and learn FreeCAD, be aware that the author failed to mention that you need to create ShapeBinders for all three subassemblies. Also, you can save time and expense if you buy a chassis kit with motors, wheels and platform for $15 or $20, and avoid having to score, snap and drill a styrene sheet.
2. Because of the choice of CircuitPython, the motor encoders must be read using the Raspberry Pi Pico PIO, and the PIO must be programmed in assembly code. The PIO has only 9 instructions, and they are not intuitive; for instance, there is no ADD instruction, instead you must invert the bits, subtract, and re-invert. Not something most beginners will have an easy time understanding. However, the author does provide working code to read the encoders, so you can just import that file when needed.
3. The dimensions for the distance sensor brackets do not match the current VL53L1X sensors now shipped by Adafruit. Don’t build or 3D print the brackets using the information in the text.
4. The code for the distance sensors needs a check for the “None” value returned by the sensors if there is no obstacle within 4 or 5 feet, otherwise you get a TypeError and the robot won’t run. Also, the uart.write calls in the Bluetooth section have a syntax error; there is a second “f” which must be removed for the code to run.
5. Up through Chapter 8 all of the code worked perfectly, including the obstacle avoidance algorithm. In Chapter 9 the Bluetooth code worked well, except the left and right keypad directions were reversed. The wall-following code in Chapter 10 did not work at all, in spite of many hours of testing and debugging. In Chapter 11, driving a known distance worked perfectly, except that the robot ran backwards instead of forwards; also it’s not mentioned that you will need to install the circup utility if you want to use it. (The preceding three problems seem to be related, but I could not figure out how.) In Chapter 12 the procedure and code given for calibrating the IMU did not work at all, and as a result the always-face-north code did not run because it first checks the calibration.
6. Just to be fair, although the illustrations in the print version of the book are in black and white and difficult to read, if you download the Color Images file, those images are excellent and especially useful for wiring. Also, the publisher will provide (with proof of purchase) a *.pdf copy of the book, handy if don’t have the physical book present where you’re working.
In summary, this is a great book to learn about robotics if you have the time and experience to work through its shortcomings. However, this book requires more effort and experience than a beginner is likely to possess. If you’re just starting with robotics, a better choice would be to just use an Arduino board with the much simpler robot code which you can find almost anywhere online.
Reviewed in the United States on August 11, 2023
1. Chapter 3 introduces FreeCAD and shows how to model the robot car. FreeCAD is powerful but difficult to learn, and it’s not necessary to build this car, as it’s only used to create a “technical drawing” of the chassis. All you need to know are the dimensions of the chassis and the locations of the mounting holes for the motors and the caster, and that’s provided on page 79. If you want to follow the instructions and learn FreeCAD, be aware that the author failed to mention that you need to create ShapeBinders for all three subassemblies. Also, you can save time and expense if you buy a chassis kit with motors, wheels and platform for $15 or $20, and avoid having to score, snap and drill a styrene sheet.
2. Because of the choice of CircuitPython, the motor encoders must be read using the Raspberry Pi Pico PIO, and the PIO must be programmed in assembly code. The PIO has only 9 instructions, and they are not intuitive; for instance, there is no ADD instruction, instead you must invert the bits, subtract, and re-invert. Not something most beginners will have an easy time understanding. However, the author does provide working code to read the encoders, so you can just import that file when needed.
3. The dimensions for the distance sensor brackets do not match the current VL53L1X sensors now shipped by Adafruit. Don’t build or 3D print the brackets using the information in the text.
4. The code for the distance sensors needs a check for the “None” value returned by the sensors if there is no obstacle within 4 or 5 feet, otherwise you get a TypeError and the robot won’t run. Also, the uart.write calls in the Bluetooth section have a syntax error; there is a second “f” which must be removed for the code to run.
5. Up through Chapter 8 all of the code worked perfectly, including the obstacle avoidance algorithm. In Chapter 9 the Bluetooth code worked well, except the left and right keypad directions were reversed. The wall-following code in Chapter 10 did not work at all, in spite of many hours of testing and debugging. In Chapter 11, driving a known distance worked perfectly, except that the robot ran backwards instead of forwards; also it’s not mentioned that you will need to install the circup utility if you want to use it. (The preceding three problems seem to be related, but I could not figure out how.) In Chapter 12 the procedure and code given for calibrating the IMU did not work at all, and as a result the always-face-north code did not run because it first checks the calibration.
6. Just to be fair, although the illustrations in the print version of the book are in black and white and difficult to read, if you download the Color Images file, those images are excellent and especially useful for wiring. Also, the publisher will provide (with proof of purchase) a *.pdf copy of the book, handy if don’t have the physical book present where you’re working.
In summary, this is a great book to learn about robotics if you have the time and experience to work through its shortcomings. However, this book requires more effort and experience than a beginner is likely to possess. If you’re just starting with robotics, a better choice would be to just use an Arduino board with the much simpler robot code which you can find almost anywhere online.
Not only is this book easy to read - it’s also super fun to be able to apply the knowledge you learn. This book is well-organized and helps you from introductory knowledge to building out your very own robot around raspberry pi pico.
Would highly recommend this book to anyone looking to get into robotics with raspberry pi pico!





