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)

Technical requirements

For this chapter, you will require the following:

  • A computer with access to the internet.
  • A robot fitted with the Raspberry Pi.
  • The robot code object from Chapter 7, Drive and Turn - Moving Motors with Python.
  • A screwdriver (pozi, for 2 or 2.5M).
  • A pair of long nose pliers.
  • Some male to female jumper cables—also known as Jumper Jerky and DuPont cables. The male-to-female bit is really important!
  • A Small Plus size 400 tie point breadboard.
  • 3M nylon standoff and bolts kit
  • Two line tracking/following/tracing digital sensor modules. The black/blue lens parts on the modules is the actual sensor. Modules KY-033 or Tcrt5000 are suitable. Do not get the analog type sensor unless it also has digital output. Take note if it outputs high or low for detecting white objects. If white objects are low, you will need the following pull_up=True.
  • Large-format paper...