practical_arduino_engineering.pdf

(9017 KB) Pobierz
For your convenience Apress has placed some of the front
matter material after the index. Please use the Bookmarks
and Contents at a Glance links to access them.
968835443.013.png 968835443.014.png 968835443.015.png 968835443.001.png 968835443.002.png 968835443.003.png 968835443.004.png 968835443.005.png
Contents at a Glance
About the Author................................................................................................... xii
About the Technical Reviewer............................................................................. xiii
Acknowledgments............................................................................................... xiv
Preface.................................................................................................................. xv
Chapter 1: The Process of Arduino Engineering..................................................... 1
Chapter 2: Understanding the Arduino Software.................................................. 15
Chapter 3: Robot Engineering Requirements: Controlling Motion........................ 27
Chapter 4: Adding Complexity to the Robot: Working with LCDs.......................... 61
Chapter 5: Robot Integration Engineering a GPS Module with the Arduino.......... 97
Chapter 6: Interlude: Home Engineering from Requirements to Implementation133
Chapter 7: Robot Perception: Object Detection with the Arduino....................... 165
Chapter 8: Mature Arduino Engineering: Making an Alarm System Using the
Arduino................................................................................................................... 197
Chapter 9: Error Messages and Commands: Using GSM Technology with Your
Arduino................................................................................................................... 217
Chapter 10: Control and Instrumentation: The Xbox Controller and the LabVIEW
Process................................................................................................................... 239
Chapter 11: Controlling Your Project: Bluetooth Arduino................................... 277
Appendix A: Hardware and Tools........................................................................ 299
Index................................................................................................................... 303
iv
968835443.006.png 968835443.007.png 968835443.008.png 968835443.009.png
 
C H A P T E R 1
The Process of Arduino
Engineering
In this chapter, we will discuss the engineering process and how you can use it streamline your
prototypes by avoiding problems with hardware and software and keeping to a fixed schedule.
Throughout this book, you will have projects that will be organized into a sequence I like to call the
“engineering process.” Here’s a quick summary of the sequence:
1. Requirements Gathering
2. Creating the requirements document
3. Gathering hardware
4. Configuring the hardware
5. Writing the software
6. Debugging the Arduino software
7. Troubleshooting the hardware
8. Finished prototype
As you can imagine, even this summary of engineering process is very effective when prototyping,
which is why we will use it with the Arduino in this book. What is the Arduino? The Arduino is a very
customizable microcontroller used by hobbyists and engineers alike. Also, it is open source, which
means that the source code is available to you for your programming needs; the integrated development
environment (IDE) (where you will be writing your software) is free, and most the resources you can find
are open source. The only thing you have to buy is the Arduino microcontroller itself. The Arduino is
supported very well on the Web and in books, which makes it very easy to research how-to topics; a few
sites that will help you get started are www.Arduino.cc an d
http://tronixstuff.wordpress.com/tutorials/ . Bu t this book is more than simply a how-to reference;
this book is going to teach you the engineering process—a skill that is useful for making projects more
readable, efficient, and reliable.
Gathering Your Hardware
Before we examine the engineering process steps, it’s important to know some of the parts and materials
you’ll need. Throughout this book, you will need the following pieces of hardware to complete the
1
968835443.010.png
CHAPTER 1 THE PROCESS OF ARDUINO ENGINEERING
various projects we’ll be working on (for a complete list of hardware used in this book, please see
Appendix A):
Arduino Duemilanove or UNO : You can use either the Duemilanove or the UNO
micro-controller for this book (see Figure 1-1). They have multiple I/O ports for
sensors and motors. We will be using these I/O points to control and keep track of
the various projects in this book.
Figure 1-1. Arduino UNO (left) and Duemilanove (right)
ArduinoBT or Bluetooth Mate Silver : I suggest using the Bluetooth Mate Silver
modem for this book because it can make your Arduino Duemilanove or UNO
behave like an ArduinoBT at half the cost. Also, the ArduinoBT does not have a 3.3V
output point, so you would need to add circuitry to the Arduino in order to get 3.3V,
which you need in Chapter 6 of this book. Figure 1-2 illustrates these two pieces of
hardware.
2
968835443.011.png
Zgłoś jeśli naruszono regulamin