Book Image

Arduino Robotic Projects

By : Richard Grimmett
Book Image

Arduino Robotic Projects

By: Richard Grimmett

Overview of this book

Table of Contents (21 chapters)
Arduino Robotic Projects
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Preface

We live in a wonderful time where we have access to marvelous chunks of technology that inspire our creativity. The personal computer, smart phone, web cam—all of these make our lives easier, but more importantly, more creative. These new inventions invite us to not only become users, but also developers and creators, adding our own adaptions to the wide range of applications available.

This ability for the average person to become a developer is also true in the robotics world. One of the tools that makes this available is Arduino, a processor board that was built to allow almost anyone to create amazing projects with little cost and even less technical expertise. This small, inexpensive, powerful board has been used in a wide range of projects. With its success, has come an entire community of developers who not only provide help in the area of software development, but also provide hardware add-ons and even new form factors for the processor board itself.

It can, however, still be a bit intimidating to start using Arduino in your projects. This book is designed to help anyone, even those with no programming background or experience, be successful in building both simple but also quite complex robotic projects. The book is designed to lead you through the process step by step so that your robotic designs can come to life.

Hopefully, this book will inspire those with the imagination and creative spirit to build those wildly inventive designs that are swirling around in their heads. One day, robots will be as pervasive as cell phones are today. So, start creating!

What this book covers

Chapter 1, Powering on Arduino, covers the selection of the right Arduino board for your project and how to be successful the first time you add power.

Chapter 2, Getting Started with the Arduino IDE, shows you how to download, install, and use the environment for your specific Arduino.

Chapter 3, Simple Programming Concepts Using the Arduino IDE, introduces basic programming constructs and how to use them within the Arduino IDE.

Chapter 4, Accessing the GPIO Pins, shows you the details of how to both send information to as well as get information from the outside world through the available GPIO capabilities.

Chapter 5, Working with Displays, shows you several different types and sizes of displays and also details how to add them to your project.

Chapter 6, Controlling DC Motors, shows you how to connect DC motors for robots that use wheels or tracks to move.

Chapter 7, Controlling Servos with Arduino, shows you how to control servos to build walking robots.

Chapter 8, Avoiding Obstacles Using Sensors, shows you how to add sensors to avoid or, perhaps, find objects.

Chapter 9, Even More Useful Sensors, shows you how to add different types of sensors to your project.

Chapter 10, Going Truly Mobile – the Remote Control of Your Robot, covers how to communicate with your robot wirelessly.

Chapter 11, Using a GPS Device with Arduino, shows you how to add a GPS device so that you always know where your robot is. This is important because if your robot gets truly mobile, it might get lost.

Chapter 12, Taking Your Robot to Sea, shows you some robots that can sail and explore under water.

Chapter 13, Robots That Can Fly, introduces you to robots that can fly.

Chapter 14, Small Projects with Arduino, shows you how to adapt other toy robots using Arduino or add a bit of flash to your current robotic projects using LEDs.

What you need for this book

The most important piece of software required for this book is the Arduino IDE, which is available at http://www.arduino.cc/. The only other software that will be required is the software drivers associated with the hardware that you might add to your project; these will be detailed in the individual chapters themselves.

Who this book is for

This book is for anyone with a little programming interest, a bit of imagination, and the desire to create their own amazing robotic projects. The book is designed to start by teaching beginners the basics of Arduino and programming. You'll tackle more and more challenging projects until you have the know-how to build your own complex robots that can sail, swim, and fly.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "Arduino will then move to the loop() function and begin executing the statements there."

A block of code is set as follows:

// Pin D7 has an LED connected on FLORA.
// give it a name:
int led = 7;
// the setup routine runs once when you press RESET:
void setup() {
  // initialize the digital pin as an output.
  pinMode(led, OUTPUT);
}
// the loop routine runs over and over again forever:
void loop() {
  digitalWrite(led, HIGH);   // turn the LED on
  delay(100);               // wait for a second
  digitalWrite(led, LOW);    // turn the LED off
  delay(1000);               // wait for a second
}

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "Select the TFTDisplayText example by navigating to Examples | TFT | Arduino | TFTDisplayText."

Note

Warnings or important notes appear in a box like this.

Note

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an e-mail to , and mention the book title via the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

Downloading the color images of this book

We also provide you a PDF file that has color images of the screenshots/diagrams used in this book. The color images will help you better understand the changes in the output. You can download this file from https://www.packtpub.com/sites/default/files/downloads/9829OS_ColoredImages.pdf.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.

Piracy

Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

You can contact us at if you are having a problem with any aspect of the book, and we will do our best to address it.