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)

Making a block diagram

Now you have a sketch of roughly what it will look like, recall how in Chapter 2, Exploring Robot Building Blocks - Code and Electronics and throughout the book we created block diagrams showing the robot we built there. Any robot can be represented this way. This is where you would have a block for each input and output, and then create controller and interface blocks to connect them to. Don't worry at this stage about the diagram being perfect, the main point is it conveys an idea of what will probably be connected to what. It's also quite likely that the initial diagram will need some change as you build a robot and come across constraints that you were not aware of.

Here are two stages of a block diagram for SpiderBot. I knew going in that each leg had three motors, but not a lot else. The next image shows the diagram showing rough connections...