Apress Access

Arduino Robotics

By John-David Warren , Josh Adams , Harald Molle

  • eBook Price: $27.99
Buy eBook Buy Print Book
Learn to build a variety of robots using the popular Arduino platform, from a simple line-following robot to DIY Segway-clone.

Full Description

  • Add to Wishlist
  • ISBN13: 978-1-4302-3183-7
  • 628 Pages
  • User Level: Intermediate to Advanced
  • Publication Date: July 17, 2011
  • Available eBook Formats: EPUB, MOBI, PDF

Related Titles

  • Go Recipes
  • Building Arduino Projects for  the Internet of Things
  • Beginning FPGA: Programming Metal
  • Junk Box Arduino
  • 3D Printed Science Projects
  • Windows 10 for the Internet of Things
  • Scratch by Example
  • Building a Virtual Assistant for Raspberry Pi
Full Description

This book will show you how to use your Arduino to control a variety of different robots, while providing step-by-step instructions on the entire robot building process. You'll learn Arduino basics as well as the characteristics of different types of motors used in robotics. You also discover controller methods and failsafe methods, and learn how to apply them to your project. The book starts with basic robots and moves into more complex projects, including a GPS-enabled robot, a robotic lawn mower, a fighting bot, and even a DIY Segway-clone.

  • Introduction to the Arduino and other components needed for robotics
  • Learn how to build motor controllers
  • Build bots from simple line-following and bump-sensor bots to more complex robots that can mow your lawn, do battle, or even take you for a ride

Please note: the print version of this title is black & white; the eBook is full color.

What you’ll learn

  • Basics of motor-control
  • Basics of PCB design and fabrication
  • R/C control and decoding
  • Autonomous sensor guidance
  • Frame building from various materials
  • Instructions for a variety of robot designs

Who this book is for

Electronics and robotics hobbyists and DIY builders.

Table of Contents

Table of Contents

  1. The Basics
  2. Arduino for Robotics
  3. Let’s Get Moving
  4. Linus the Line-Bot
  5. Wally the Wall-Bot
  6. Making PCBs
  7. The Bug-Bot
  8. Explorer-Bot
  9. RoboBoat
  10. Lawn-Bot 400
  11. The Seg-Bot
  12. The Battle-Bot
  13. Alternate Control
Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.


If you think that you've found an error in this book, please let us know by emailing to editorial@apress.com . You will find any confirmed erratum below, so you can check if your concern has already been addressed.

On page Listing 1-4:

value pot_val is named pot_val and pot_value

On page 64:

Fig 2-14.

While the Arduino is safe from reverse EMF from the motor, you still need a diode to protect the photo-transistor. I would have worded the Fig2-14 caption thus:

...(no common GND signal), the Arduino output is protected from the motor reverse EMF. However, you still need a protection diode for the photo-transistor.

On page 107, 109, 112:

several references to lithium battery voltages read 3-7v instead of 3.7v


3-7v to 3.7v

On page 506:

read_pots() function.
The commentary //We want to map this into a range between -1 and 1...
Should be -7 and 7?

if ( angle == 0.00 )


On page 506:

read_pots() function.

Why assign 0 to gain_reading if in the following statement analogRead(gainPot) will be assigned.

I think:
if (...)
gain_reading = 0;
gain_reading = analogRead(gainPot);

On page 525:

Eagle files for the mini-OSMC board are missing from google sites.

Quote: To build the mini-OSMC for your weapon motor, download the Eagle files from


    1. Pro Arduino


      View Book

    2. Practical OpenCV


      View Book

    3. Beginning C for Arduino, Second Edition


      View Book

    4. Beginning Sensor Networks with Arduino and Raspberry Pi


      View Book