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)

Comparing light strip technologies

There are many competing technologies for light strips. We will limit it to LED types, as incandescent and fluorescent lighting tends to require far more power and are less suitable for these small robots.

The simplest are a set of lights that simply turn on when power is applied. These are of one color only and would not make for great information displays. If you want other colors, you would need to buy another color and attach it to a different output.

A improvement on these are strips that can have a color chosen, but this applies to the whole strip. You could change the color of a whole strip to display information. These require three IO pins per strip. If you wanted more than one color at a time, you would need many pins.

The most useful kind in our case, which we will work with in this chapter, are addressable RGB LEDs. Addressable means...