Michael Margolis. Make an Arduino-. Controlled Robot. D o w n lo a d fro m. W o w! e. B o o k. Make an Arduino-Controlled Robot by Michael Introduction to Robot Building. . Mounting Arduino and Connecting Wires to the Shield. Arduino Robotics. Copyright © by John-David Warren, Josh Adams, and Harald Molle. All rights reserved. No part of this work may be reproduced or.
|Language:||English, Spanish, French|
|Distribution:||Free* [*Registration needed]|
Arduino to build robots. That's exactly what explore programming the robot to do interesting things, and extending signals; these are useful for such things as controlling the. SERVO .. Arduino. See their site for datasheets (in PDF format). Abstract. The aim of the thesis was to create a Bluetooth controlled robot for JAMK University of by an Arduino microcontroller, which in turn is controlled by the mobile maroc-evasion.info Arduino. Make: Make an Arduino-Controlled Robot - Building robots that sense and interact with their environment used to be tricky. Now, Arduino makes it easy.
Grab the upper part of the chassis and set it on top of the copper shafts connected to the lower part, and pull the wires attached to the H bridge through the hole in the center of the chassis. Set the six-AA battery holder on top of the chassis screw it down if you can , attach the 9V cell holder to the Arduino, and this bot is ready to rock! Well, almost ready to rock. There we go. Now to give it a brain. Big thanks to Billwaa for his blog post on using the H-bridge for defining these functions.
You should see a rapidly updating sequence of numbers. Hold your hand in front of the sensor and see if that number changes. Move your hand in and out, and you should get a measurement of how far away your hand is from the sensor. Here's a guide to exactly what you'll find in your kit. Control movement through Bluetooth or Wi-Fi. Project in progress by Jeremy Dunham.
Sign in. Sign In. My dashboard Add project. Project tutorial by Camilo Parra Palacio , views comments respects. Using a Wii Nunchuk with Arduino Project tutorial by infusion 22, views 50 comments 41 respects.
MAX Project showcase by benoitdr 16, views 52 comments 44 respects. Robotic Arm from Recycled Materials Project tutorial by circuito.
Make your first Arduino robot - The best beginners guide! Project tutorial by Muhammed Azhar 54, views 17 comments respects.
Blockly rduino: Probability Autonomous Rover Project in progress by UniverseRobotics 9, views 19 comments 56 respects. Cloud connected Reconnaissance Droid Project in progress by Jeremy Dunham 8, views 14 comments 25 respects.
Servo by Grant 11, views 13 comments 30 respects. Appendix D, Power Sources introduces some alternatives for powering your robot.
Appendix E, Programming Constructs provides a brief introduction to some of the programming constructs used in the sketches for this book that may not be familiar to some Arduino users. What Was Left Out This book explains all the code used for the robot, but it is not an introduction to programming. As a consequence, some common coding shortcuts have been avoided. Experienced C programmers often use rich but terse expressions that are efficient but can be a little difficult for beginners to read.
Beginners should be reassured that there is no benefit in performance or code size in using the terse form. One or two more advanced programming concepts have been used where this makes the code easier to enhance. For example, long lists of sequential constants use the enum declaration. The enum keyword creates an enumeration; a list of constant integer values.
All the enums in this book start from 0 and increase sequentially by one. Good programming practice involves ensuring that values used are valid garbage in equals garbage out by checking them before using them in calculations. However, to keep the code focused on the topic, error-checking code has been kept to a minimum. If you expand the code, you are encouraged to add error-checking where needed.
The code has been tested with Arduino release the first release that fully supports the Leonardo board. Although many of the sketches will run on earlier Arduino releases, this has not been tested. If you really want to use a release older than 1. There is a website for this book where you can download code for this book; see How to Contact Us page xv.
There is also a link to errata on that site. Errata give readers a way to let us know about typos, errors, and other problems with the book. Errata will be visible on the page immediately, and we ll confirm them after checking them out. O Reilly can also fix errata in future printings of the book in electronic books, and on Safari Books Online, making for a better reader experience pretty quickly.
If you have problems getting the code to work, check the web link to see if the code has been updated. The Arduino forum is a good place to post a question if you need more help: If you like or don t like this book, by all means, please let people know. site reviews are one popular way to share your happiness or other comments. You can also leave reviews at the O Reilly site for the book.
Conventions Used in This Book The following font conventions are used in this book: Italic Indicates pathnames, filenames, and program names; Internet addresses, such as domain names and URLs; and new items where they are defined Preface xiii 16 Constant width Indicates command lines and options that should be typed verbatim; names and keywords in programs, including method names, variable names, and class names; and HTML element tags Constant width bold Indicates emphasis in program code lines Constant width italic Indicates text that should be replaced with user-supplied values This icon signifies a tip, suggestion, or general note.
Using Code Examples This book is here to help you make things with Arduino. In general, you may use the code in this book in your programs and documentation. You do not need to contact us for permission unless you re reproducing a significant portion of the code. For example, writing a program that uses several chunks of code from this book does not require permission.
Answering a question by citing this book and quoting example code does not require permission. Incorporating a significant amount of example code from this book into your product s documentation does require permission. We appreciate, but do not require, attribution. An attribution usually includes the title, author, publisher, and ISBN. If you feel your use of code examples falls outside fair use or the permission given here, feel free to contact us at Safari Books Online Safari Books Online is an on-demand digital library that lets you easily search over 7, technology and creative reference books and videos to find the answers you need quickly.
With a subscription, you can read any page and watch any video from our library online. Read books on your cell phone and mobile devices. Access new xiv Make an Arduino-Controlled Robot 17 titles before they are available for print, and get exclusive access to manuscripts in development and post feedback for the authors.
Copy and paste code samples, organize your favorites, download chapters, bookmark key sections, create notes, print out pages, and benefit from tons of other time-saving features. To have full digital access to this book and others on similar topics from O Reilly and other publishers, sign up for free at How to Contact Us We have tested and verified the information in this book to the best of our ability, but you may find that features have changed or even that we have made a few mistakes!
You can access this page at: To comment or ask technical questions about this book, send to: For more information about our books, courses, conferences, and news, see our website at Find us on Facebook: Follow us on Twitter: Watch us on YouTube: Acknowledgments Rob DeMartin, the business manager at Maker Media, was the driving force behind the botkits, which inspired the writing of this book.
I thank them for testing the content of the book to ensure that the projects and the hardware worked well together. Preface xv 18 I am grateful to the Arduino community for contributing a wealth of free software, in particular, the IrRemote library from Ken Sherriff that is used in the remote control chapter.
I would also like to express my appreciation to Limor Fried Ladyada for creating the hardware, software and online build notes for the motor shield used in this book.
Thanks also to DFRobot, the innovative company that designed the robot platforms and provided the exploded view drawings used in the build chapters. Mat Fordy at Cool Components coolcomponents.
It was helpful and rewarding to work with the participants, each with a different level of experience, to build the robots and see their pleasure in bringing their creations to life.
Their feedback helped make the book content clear, practical and fun. If I have achieved my goal of making the rich variety of technical topics in this book accessible to readers with limited electronics or programming experience, then much of the credit goes to Brian Jepson. Brian, who was also my editor for the Arduino Cookbook, was with me every step of the way. I thank him for his guidance: from his support and passion in beginning the project, to his editorial expertise and application of his masterful communications skills right through to using his technical knowledge to test all the projects in the book.
I would like to thank my entire family for listening to me explain the finer points of robotics during a week- long vacation in the early stages of preparing this book. Four generations of my family were patient and constructive at times when they would have preferred to be boating on the lake or walking in the woods. Finally, this book would not be what it is without the contributions made by my wife, Barbara Faden. Her feedback on early drafts of the manuscript helped shape the content. I am especially grateful for her support and patience in the wake of disruption created as I wrangled with these two little robots to meet the book s deadline.
Build instructions are provided for 2WD two wheel drive and 4WD four wheel drive platforms. The platforms shown in Figure and Figure will make the construction a snap, but you can build your own robot chassis if you prefer. The connection and use of the control electronics and sensors are fully explained and the source code is included in the book and available for download online see How to Contact Us page xv for more information on downloading the sample code.
Figure The assembled two wheeled robot chassis 1 20 Introduction to Robot Building Figure The assembled four wheeled robot chassis Here is a preview of the projects you can build: Controlling speed and direction by adding high level movement capability. Enabling the robot to see the ground using IR sensors for line and edge detection see Figure and Figure Enabling the robot to look around scanning using a servo so the robot can choose the best direction to move, as shown in Figure Adding remote control using a TV remote control or a wired or wireless serial connection.
Robot moves around but remains within the white area Figure Robot follows black line Chapter 1 3 22 Why Build a Robot? Two wheeled and four wheeled robots with distance scanners Why Build a Robot? Building a robot is different from any other project you can make with a microcontroller. A robot can move and respond to its environment and exhibit behaviors that mimic living creatures.
Even though these behaviors may be simple, they convey a sense that your creation has a will and intent of its own. Building a machine that appears to have some spark of life has fascinated people throughout the ages.
The robots built over 60 years ago by neurophysiologist W.
Grey Walter see explored ways that the rich connections between a small number of brain cells give rise to complex behaviors. The robots described in this book are the easiest and most popular; they use two or four wheels driven by motors. Choosing Your Robot The projects in this book can use either a two or four wheeled platform, but if you are still deciding which is right for you, here are some factors that will help you choose: Two Wheeled Robot Light and very maneuverable, this is a good choice if you want to experiment with tasks such as line-following that require dexterous movement.
However, the caster that balances the robot requires a relatively smooth surface. Four Wheeled Robot This robot s four wheel drive makes this a good choice if you want it to roam over rougher surfaces. This platform has a large top plate that can be used to carry small objects. The robot is heavier and draws more current than the 2WD robot, so battery life is shorter.
How Robots Move The robots covered in this book move forward, back, left and right much like a conventional car. Figure shows the wheel motion to move the robot forward. Left and Right wheels turn forward, Robot moves Forward If the wheels on one side are not driven or are driven more slowly than the other side the robot will turn, as in Figure Only Left wheels turn, Robot Turns Right Chapter 1 5 24 Tools Figure shows that reversing the wheel rotation drives the robot backward.
Left and Right wheels turn backward, Robot moves Backward Figure Left wheels turn forward, Right wheels reverse, Robot rotates Clockwise Unlike a car but a little like a tank , these robots can also rotate in place by driving the wheels on each side in different directions.
If the wheels on each side are spinning in opposite directions, the robot will rotate. Figure shows clockwise rotation. Tools These are the tools you need to assemble the robot chassis.
Phillips Screwdriver A small Phillips screwdriver from your local hardware store. Small long-nose or needle-nose pliers For example, Radio Shack 4.
But if you are serious about electronics, a good temperature controlled iron is worth the investment, such as Radio Shack or Jameco Solder 22 AWG. Both the two wheeled and four wheeled platforms use the same modules, a pre-built Arduino board Arduino Uno or Leonardo , and a motor controller kit.
Although other motor controllers can be used see Appendix B the AFMotor shield provides convenient connections for the signals and power to all the sensors and devices covered in this book. It is also capable of driving four motors, which is required for the four wheel drive chassis. Although the attachment of the boards to the robot differs somewhat depending on the chassis, the building of the AFMotor circuit board kit is the same for both.
If you don t have much experience with soldering, you should practice soldering on some wires before tackling the circuit board you can find soldering tutorials here: thm.
Hardware Required See for a detailed parts list. Soldering Soldering is easy to do if you understand the basic principles and have a little practice. The trick for making a good solder joint is to provide the right amount of heat to the parts to be soldered and use the right solder. A watt to watt iron, ideally with temperature control, is best.
The components to be joined should be mechanically secure so they don t move while the solder is cooling wires should be crimped around terminals see Figure and Figure To make the joint, the tip of the iron should have good contact with all the components to be soldered.
Feed a small amount of solder where the iron is touching the parts to be joined.
When the solder flows around the joint, remove the solder first and then the iron. The connection should be mechanically secure and the joint shiny.