Book Image

Raspberry Pi Robotic Projects - Third Edition

By : Richard Grimmett, Jon Witts
Book Image

Raspberry Pi Robotic Projects - Third Edition

By: Richard Grimmett, Jon Witts

Overview of this book

This book will allow you to take full advantage of Raspberry Pi Zero and Raspberry Pi 3 by building both simple and complex robotic projects. The book takes a mission-critical approach to show you how to build amazing robots and helps you decide which board to use for which type of robot. The book puts a special emphasis on designing mobile (or movable) robots using the Raspberry Pi Zero. The projects will show inexpensive, yet powerful, ways to take full advantage. It will teach you how to program Raspberry Pi, control the movement of your robot, and add features to your robots.
Table of Contents (13 chapters)
Raspberry Pi Robotic Projects - Third Edition
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface

Chapter 4. Building a Robotic Fish

Now you've built an R2D2 and a Wall-E robot. Let's turn your attention to the great deep. Let's build a robot that can swim in water. This will use your knowledge of how to control servos, and you'll want a webcam to see what your fish is seeing, but this project can't be controlled using a wireless connection, as that doesn't work well in water. So you'll control your fish using a LAN cable so that you can control your fish from the surface.

In this chapter, we'll cover these topics:

  • Creating a swimming robot using servos and Raspberry Pi

  • Connecting an IMU unit to help the robot stay upright, and also a compass to know which direction the robot fish is going

Since it is much more difficult to buy an existing toy to use as a platform, you will be creating your own model of robotic fish. You can either use a 3D printed model or use acrylic to cut your own. This will provide the basic swimming mechanism; the rest is up to you.