Book Image

Learn Robotics Programming

By : Danny Staple
Book Image

Learn Robotics Programming

By: Danny Staple

Overview of this book

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.
Table of Contents (21 chapters)

Installing Mycroft on the Raspberry Pi

In this section, we will install and begin to interact with the MyCroft system on our Pi; by the end of this section, we will have had some small dialog with it and be ready to create our own skill for MyCroft.

MyCroft has a prebuilt SD card image for a Raspberry Pi called PiCroft. However, this image does not always support the recent Raspberry Pi types (such as the Pi3) or different sound cards. We already have an image that can play and record audio on our Raspberry Pi, so we are going to install this the same way that a PiCroft SD card image is made from a standard Raspbian.

This will require some command-line work and file editing to connect it up to our sound hat (or sound card) as the initial installation doesn't yet connect it to the sound output.

...