Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Make: Arduino Bots and Gadgets
A Note Regarding Supplemental Files
Preface
Embedded Systems Are Everywhere
Why Should You Study Embedded Systems?
Intelligent Air Conditioning
Sensors, Microcontrollers, and Outputs
Learn Embedded Systems in a Week
Classroom Use
What You Need to Know
How to Read This Book
Contents of This Book
Conventions Used in This Book
Using Code Examples
We'd Like to Hear from You
Safari® Books Online
Acknowledgments
1. Introduction
Building Philosophy
Prototype
Start with Hello World
Build in Small Steps
Test in Steps
Revert to the Last Known Good Version
Read the Friendly Manual
Document
Reusing Parts
Buying Components
Useful Tools
Hearing Protectors and Safety Glasses
Needlenose Electronics Pliers
Diagonal-Cutter Pliers
Metal Saw
Wire Strippers
Screwdrivers
Alligator Clips
Electric Drill
Leatherman
Mini Drill
Headlamp
Hot-Glue Gun
Nail Punch and Hammer
Soldering Iron
Multimeter
Electronic Circuit Theory Review
Voltage Creates an Electrical Current
A Resistor Resists the Flow of Current
Short Circuits Are Dangerous
Closed Circuits Allow Electricity to Flow
Ground = Zero Voltage Level
2. Arduino: The Brains of an Embedded System
Why Arduino?
Starting with Arduino
Installing Arduino Software
Windows 7
Windows XP
Ubuntu Linux
Mac OS X
Hello World with Arduino
Structure of "Hello World"
Arduino Uno
Arduino Nano
3. Stalker Guard
What You'll Learn
Tools and Parts
Solderless Breadboard
Jumper Wire
Ping Ultrasonic Sensor
Measuring Distance with the Ping Ultrasonic Sensor
Distance-Measuring Program
Vibration Motor
Combining Components to Make the Stalker Guard
Making the Motor Vibrate
Providing Power from a Battery
What's Next?
Ideas for Future Projects
Making an Enclosure
Utilizing an Ammo Pouch
Wiring Up the Circuit
Soldering Basics
Using a Switch to Save Batteries
4. Insect Robot
What You'll Learn
Tools and Parts
Servo Motors
Wiring Up the Circuit
Using the Servo Library in Arduino
Centering the Servo
Moving the Servo
Constructing the Frame
Making the Legs
Assembling the Frame
Making the Holder for the Arduino
Attaching a Battery
Assembly
Screwing the Legs in Place
Programming the Walk
Walking Forward
Walking Backward
Turning Backward
Turning Forward
Avoiding Obstacles Using Ultrasound
Attaching the Ultrasonic Sensor
Code
What's Next?
Ideas for the Next Stage
5. Interactive Painting
What You'll Learn
Tools and Parts
Resistors
Measuring Resistance with a Multimeter
LEDs
Detecting Motion Using Ultrasonic Sensors
Reading All the Sensors
Testing the Circuit Using LEDs
Determining Direction with the Final Sensor
Moving Images
Installing Python
Linux and Mac OS X
Windows 7
Download the installation packages
Log in as an admin user
Install Python
Install PyGTK and other libraries
Install the GTK+ Library
Hello World in Python
Hello Windows
Communicating over the Serial Port
Installing the PySerial Library
Linux and Mac OS X
Windows XP
Reading the Serial Port
Reading the Serial Port and PyGTK
Displaying a Picture
Scaling an Image to Full Screen
Changing Images with Button Control
Gesture-Controlled Painting in Full Screen
Animating the Sliding Image
Connecting Arduino with Processing
Processing Code for the Painting
The Finished Painting
Creating an Enclosure
Attaching the Sensors with Servo Extension Cables
Building a Frame
6. Boxing Clock
What You'll Learn
Tools and Parts
Android Software Installation
Ubuntu Linux Installation
Windows 7 Installation
Java 6 for Windows
Eclipse
Android SDK
Configure your Path
Mac OS X Installation
Eclipse
Android SDK
Configuring the Android SDK
Installing the Android Plug-in for Eclipse
Configuring the Android Plug-in for Eclipse
Creating a Boxing Clock in Android
Beginning with "Hello World"
Creating a User Interface
Using a Timer for the Main Loop
Adding Sound to the Boxing Clock
Creating a Ringing Boxing Clock
Setting Separate Rounds and Breaks
Drawing Graphics with Custom Views
Animating the Pie
Finishing the Clock
Put the resources in place
Pause the program when it's in the background
Build the graphical user interface
Installing on the Physical Phone
Enable USB debugging
Make the physical connection
Configure Linux for DDMS
Configure Windows USB settings and drivers
Run the app on the phone
Differences Between the Emulator and Phone
What's Next?
7. Remote for a Smart Home
What You'll Learn
Tools and Parts
The Relay: A Controllable Switch
Toggling a Relay with Arduino
Hacking the Remote Control
Disassembly
Testing
Soldering
Controlling the Arduino from the Computer
Toggling an LED with the Serial Port
Connecting Relays to the Switches
Six-Switch Code
Creating a Graphical User Interface
Pack Many Buttons into One Window
Button Orientation
Stretching Like Bubble Gum
The Finished Remote Control Interface
Creating an Enclosure
8. Soccer Robot
What You Will Learn
Tools and Parts
Continuous Rotation Servos
Centering (Stopping) the Servo
Finding the Center Point
Rotating to Different Directions
Modding a Standard Servo into a Continuous Rotation Servo
Connecting the Arduino to the Bluetooth Mate
Windows 7
Ubuntu Linux
Mac OS X
Testing the Bluetooth Connection
Building a Frame for the Robot
Making the Servo Attachments
Making the Wheels
Attaching the Rear Wheel
Building the Kicker Leg
Adding the Front Fork
Attaching the Servos
Putting the Wires, Arduino, and Battery Compartment in Place
Programming the Movements
Moving Forward
Moving in Other Directions
Kicking
Controlling Movement from a Computer
Steering with an Android Cell Phone
Creating a Simple User Interface
Adding Permission to Vibrate
The Accelerometer
An Easier Approach to Bluetooth
Blinking LEDs with Bluetooth
Creating a Bluetooth Connection, Section by Section
Adding tBlue to the Project
Talking to the Arduino over Bluetooth
Controlling the Robot with Cell Phone Motion
Arduino Code
Completing the Soccer Robot
Executing the Program
Playing Soccer
What's Next?
A. tBlue Library for Android
Index
About the Authors
Colophon
← Prev
Back
Next →
← Prev
Back
Next →