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)

Voice Communication with a Robot Using Mycroft

Using our voices to ask a robot to do something and having a voice respond has long been seen as a sign of smarts. Devices around us such as Alexa and Google Assistant have these tools, and being able to program our system to integrate with tools such as these gives us access to this powerful system. Mycroft is a Python-based open source voice system. We will get this running on the Raspberry Pi, by connecting it to a speaker and microphone, and then we will run instructions on our robot based on words we speak.

The following topics will be covered in this chapter:

  • What Mycroft is and an overview of how our system will work
  • How to add a speaker/microphone board to a Raspberry Pi
  • How to install and configure a Raspberry Pi to run Mycroft
  • How to create our own skills code to connect the Voice Assistant to our robot
...