Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Learn Robotics Programming
Learn Robotics Programming

Learn Robotics Programming: Build and control autonomous robots using Raspberry Pi 3 and Python

eBook
£32.99
Paperback
£41.99
Subscription
Free Trial
Renews at £9.99p/m

What do you get with Print?

Product feature icon Instant access to your digital copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Redeem a companion digital copy on all Print orders
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Table of content icon View table of contents Preview book icon Preview Book

Learn Robotics Programming

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Get up and running with the fundamentals of robotic programming
  • Program a robot using Python and the Raspberry Pi 3
  • Learn to build a smart robot with interactive and AI-enabled behaviors

Description

We live in an age where the most difficult human tasks are now automated. Smart and intelligent robots, which will perform different tasks precisely and efficiently, are the requirement of the hour. A combination of Raspberry Pi and Python works perfectly when making these kinds of robots. Learn Robotics Programming starts by introducing you to the basic structure of a robot, along with how to plan, build, and program it. As you make your way through the book, you will gradually progress to adding different outputs and sensors, learning new building skills, and writing code for interesting behaviors with sensors. You’ll also be able to update your robot, and set up web, phone, and Wi-Fi connectivity in order to control it. By the end of the book, you will have built a clever robot that can perform basic artificial intelligence (AI) operations.

Who is this book for?

Learn Robotics Programming is for programmers, developers, and enthusiasts interested in robotics and developing a fully functional robot. No major experience required just some programming knowledge would be sufficient.

What you will learn

  • Configure a Raspberry Pi for use in a robot
  • Interface motors and sensors with a Raspberry Pi
  • Implement code to make interesting and intelligent robot behaviors
  • Understand the first steps in AI behavior such as speech recognition visual processing
  • Control AI robots using Wi-Fi
  • Plan the budget for requirements of robots while choosing parts
Estimated delivery fee Deliver to Isle of Man

Economy delivery 10 - 13 business days

£4.95

Premium delivery 6 - 9 business days

£16.95
(Includes tracking information)

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Nov 29, 2018
Length: 472 pages
Edition : 1st
Language : English
ISBN-13 : 9781789340747
Category :
Languages :
Concepts :

What do you get with Print?

Product feature icon Instant access to your digital copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Redeem a companion digital copy on all Print orders
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to Isle of Man

Economy delivery 10 - 13 business days

£4.95

Premium delivery 6 - 9 business days

£16.95
(Includes tracking information)

Product Details

Publication date : Nov 29, 2018
Length: 472 pages
Edition : 1st
Language : English
ISBN-13 : 9781789340747
Category :
Languages :
Concepts :

Packt Subscriptions

See our plans and pricing
Modal Close icon
£9.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 6,500+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
£99.99 billed annually
Feature tick icon Unlimited access to Packt's library of 6,500+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just £5 each
Feature tick icon Exclusive print discounts
£139.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 6,500+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just £5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total £ 128.97
Learn Robotics Programming
£41.99
Python Robotics Projects
£41.99
Artificial Intelligence for Robotics
£44.99
Total £ 128.97 Stars icon
Visually different images

Table of Contents

17 Chapters
Introduction to Robotics Chevron down icon Chevron up icon
Exploring Robot Building Blocks - Code and Electronics Chevron down icon Chevron up icon
Introducing the Raspberry Pi - Starting with Raspbian Chevron down icon Chevron up icon
Preparing a Raspberry Pi for a Robot - Headless by Default Chevron down icon Chevron up icon
Backing Up the Code with Git and SD Card Copies Chevron down icon Chevron up icon
Building Robot Basics - Wheels, Power, and Wiring Chevron down icon Chevron up icon
Drive and Turn - Moving Motors with Python Chevron down icon Chevron up icon
Programming Line-Following Sensors Using Python Chevron down icon Chevron up icon
Programming RGB Strips in Python Chevron down icon Chevron up icon
Using Python to Control Servo Motors Chevron down icon Chevron up icon
Programming Distance Sensors with Python Chevron down icon Chevron up icon
Programming Encoders with Python Chevron down icon Chevron up icon
Robot Vision - Using a Pi Camera and OpenCV Chevron down icon Chevron up icon
Voice Communication with a Robot Using Mycroft Chevron down icon Chevron up icon
Programming a Gamepad on Raspberry Pi with Python Chevron down icon Chevron up icon
Taking Your Robot Programming Skills Further Chevron down icon Chevron up icon
Planning Your Next Robot Project - Putting It All Together Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.9
(8 Ratings)
5 star 87.5%
4 star 12.5%
3 star 0%
2 star 0%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




Jim Link May 27, 2019
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I successfully built a small robot which is controlled by a Raspberry Pi computer board, using this book! What fun!The author's explanations and instructions are very clear. Make sure you read his recommendations for the hardware devices that are attached to the robot.Please note that in the picture, are two items that I added myself, and which are NOT in the book:1) The LCD screen at the back. I'm using it to display the robot's WIFI IP address.2) The switchboard at right front. I designed and created it myself, so I can power the robot either from the onboard battery pack, or from a plug-in power supply.
Amazon Verified review Amazon
Oct 12, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
素晴らしい本です
Amazon Verified review Amazon
Robert Ing Sep 21, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book is excellent for anyone wanting to begin their self-learning journey into robotics. Easy to read, but certainly not intended for those who just want a light read before bed, you will have to be attentive on this one. However, this get you robotic literate in no time. Recommended!
Amazon Verified review Amazon
David Snowdon Mar 10, 2019
Full star icon Full star icon Full star icon Full star icon Full star icon 5
There is a lot involved in building your own robot: sourcing adequate parts, knowing how to assemble them and then how to get the robot to do things by writing software. Buying a robot kit glosses over these steps as the parts are provided together with assembly instructions and often a software library to make programming simple. Going from building such a kit to your own robot can be quite a shock for this reason.This is why this book is valuable. It covers a lot of ground! The author, Danny Staple, guides us through the process of building a wheeled robot without relying on a kit. Instead, Danny describes the components required and provides some recommendations but allows for variation. Step by step we are shown how to set up a Raspberry Pi and control motors & servos, read inputs from distance sensors, line sensors, and use the Raspberry Pi camera. Everything, hardware and software, is explained from scratch without assuming any prior knowledge and in an easy to read style. Instead of relying on a library of code Danny shows us how to implement everything required a small feature at a time. He also explains the principles behind why he structures the code as he does; so we learn how to extend the software on our own without it becoming a hard-to-maintain mess.The first couple of chapters describe what a robot is and give some examples of contemporary robots. The next two introduce the Raspberry Pi and how to set one up. The material here is very similar to anything else available on the internet but including here is helpful as it keeps all the information required in one place. Chapter 6 is where we really get started; covering choosing a chassis for your robot as well as a motor controller. Danny recommends beginning with a simple car-like chassis with two-wheel drive as a good choice for a first robot. This chapter also describes powering the robot and how to provide power for the Raspberry PI and the motors. We also see how to assemble the chassis with Raspberry Pi, motors and batteries.Chapters 7 and 8 get us to the point where our robot can move and follow a line drawn with a marker. We also hear why it's good to separate the code talking to the motor controller from the code managing the robot's behaviour. The optical sensors used for line following are introduced. We find out how they work, how to attach them to the Raspberry Pi and how to read the values using python. By the end of the chapter, the robot can follow a circuit drawn using a black marker pen.Chapter 9 shows us how to control LED strips from our robot which as well as providing eye-candy allows the robot to give some indication of its state and make debugging easier. We also do some soldering for the first time, and the book provides some basic advice on soldering and how to get a good joint. We use the Raspberry Pi's SPI interface to drive the LEDs and see python code for doing that. The line following behaviour gets updated to give us left and right "indicator" signals as the robot turns. This chapter also introduces the HSV (Hue, Saturation, Value) colour system to describe how we can program the LEDs to make rainbow effects.In chapter 11 things really get interesting! We see how to mount ultrasonic distance sensors and connect them to the Raspberry Pi. We're not using i2c sensors, so we need to use raw I/O to time the response and work out the distance. The same code uses busy waits and may not be accurate as it doesn't compensate for multitasking. We first write a simple object avoiding behaviour for the robot and see that it works but has problems causing it to appear to be indecisive about some obstacles and occasionally ramming into things. We can do better than this, and so we then develop an algorithm that provides a finer adjustment of motor speeds based on distance from an obstacle.Now we have several behaviours we see how to build a simple web application on the robot that lets us start and stop all the defined behaviours.Chapter 12 provides us with a means for our robot to know how much each wheel has turned so we can automatically adjust for variance in motor speed.Chapter 13 attaches a camera to the robot and allows it to chase objects of a particular colour. We also see how to use the pan & tilt mounting to track faces using OpenCV's built-in HAAR cascade classifier. The text describes how HAAR cascades work and provides some references which go into more detail. The book probably should have pointed out that HAAR cascades while efficient are not state-of-the-art and there are better, more modern, techniques out there.Chapter 14 introduces voice control by installing MyCroft on a second Raspberry Pi which controls the robot by making HTTP requests to the simple web application we've been building on the robot.Chapter 15 then shows us how to build a slightly more complex web UI that provides slider controls to drive the robot as well as a display of what the robot can see. The two sliders only control the wheel motors, but by this point, we have all the information we need to add controls for the pan & tilt camera platform.The last two chapters provide links and guidance for what we can do next when contemplating designing and building our own robots.As I said at the beginning of this review this book covers a lot of ground. If you follow all the chapters you'll have learnt how to write python, solder, build simple web applications using flask, python, HTML, CSS and javascript and, of course, made a quite capable little robot. I have no hesitation in recommending the book to anyone interested in building their first robot. You'll definitely learn more this way than by simply buying a kit.
Amazon Verified review Amazon
Mat O Dec 23, 2018
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Good book, its a good walk through for the amateur and some interesting ideas. Will keep for reference.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact [email protected] with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at [email protected] using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on [email protected] with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on [email protected] within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on [email protected] who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on [email protected] within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela