Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Practical Arduino Robotics

You're reading from  Practical Arduino Robotics

Product type Book
Published in Mar 2023
Publisher Packt
ISBN-13 9781804613177
Pages 334 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Lukas Kaul Lukas Kaul
Profile icon Lukas Kaul

Table of Contents (21) Chapters

Preface Part 1: Selecting the Right Components for Your Robots
Chapter 1: Introducing Robotics and the Arduino Ecosystem Chapter 2: Making Robots Perceive the World with Sensors Chapter 3: Making Your Robot Move and Interact with the World with Actuators Chapter 4: Selecting the Right Arduino Board for Your Project Part 2: Writing Effective and Reliable Robot Programs for Arduino
Chapter 5: Getting Started with Robot Programming Chapter 6: Understanding Object-Oriented Programming and Creating Arduino Libraries Chapter 7: Testing and Debugging with the Arduino IDE Part 3: Building the Hardware, Electronics, and UI of Your Robot
Chapter 8: Exploring Mechanical Design and the 3D Printing Toolchain Chapter 9: Designing the Power System of Your Robot Chapter 10: Working with Displays, LEDs, and Sound Chapter 11: Adding Wireless Interfaces to Your Robot Part 4: Advanced Example Projects to Put Your Robotic Skills into Action
Chapter 12: Building an Advanced Line-Following Robot Using a Camera Chapter 13: Building a Self-Balancing, Radio-Controlled Telepresence Robot Chapter 14: Wrapping Up, Next Steps, and a Look Ahead Index Other Books You May Enjoy

Integrating the camera

Now, let us turn your mobile base into a robot with a camera that can follow a line. To that end, we need to integrate one more component – the camera. Cameras are not a very common sensor for DIY Arduino robots since they produce a lot of data that is difficult to process on a small microcontroller. To circumvent this problem, the PixyCam modules (https://pixycam.com/) do all the image processing on board and let the Arduino access very high-level information, such as the location of color patches or the beginning and end of a line in an image. A PixyCam makes for a very powerful line sensor, and you can use it in many other interesting projects, such as sorting machines, object trackers, or even an automatic Rubik’s Cube solver. We will be using Pixy2.1, but other versions will work just as well.

Electrical integration

The Pixy camera runs off 5V and can communicate with the Arduino board over SPI, which makes the electrical integration...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}