ebook img

Arduino: A Quick-Start Guide, 2nd Edition PDF

457 Pages·2015·10.15 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Arduino: A Quick-Start Guide, 2nd Edition

Arduino: A Quick-Start Guide, Second Edition by Maik Schmidt Version: P2.0 (March 2015) Copyright © 2015 The Pragmatic Programmers, LLC. This book is licensed to the individual who purchased it. We don't copy-protect it because that would limit your ability to use it for your own purposes. Please don't break this trust— you can use this across all of your devices but please do not share this copy with other members of your team, with friends, or via file sharing services. Thanks. —Dave & Andy. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and The Pragmatic Programmers, LLC was aware of a trademark claim, the designations have been printed in initial capital letters or in all capitals. The Pragmatic Starter Kit, The Pragmatic Programmer, Pragmatic Programming, Pragmatic Bookshelf and the linking g device are trademarks of The Pragmatic Programmers, LLC. Every precaution was taken in the preparation of this book. However, the publisher assumes no responsibility for errors or omissions, or for damages that may result from the use of information (including program listings) contained herein. Our Pragmatic courses, workshops, and other products can help you and your team create better software and have more fun. For more information, as well as the latest Pragmatic titles, please visit us at http://pragprog.com. The team that produced this book includes: Susannah Davidson Pfalzer (editor) Potomac Indexing, LLC (indexer) Cathleen Small (copyeditor) Dave Thomas (typesetter) Janet Furlow (producer) Ellie Callahan (support) For international rights, please contact [email protected]. For the Best Reading Experience... We strongly recommend that you read this book with the “publisher defaults” setting enabled for your reading device or application. Certain formats and characters may not display correctly without this setting. Please refer to the instructions for your reader on how to enable the publisher defaults setting. Table of Contents Acknowledgments Preface Who Should Read This Book What’s in This Book Arduino Uno and the Arduino Platform Code Examples and Conventions Online Resources The Parts You Need Starter Packs Complete Parts List I. Getting Started with Arduino 1.Welcome to the Arduino What You Need What Exactly Is an Arduino? Exploring the Arduino Board Installing the Arduino IDE Meeting the Arduino IDE Hello, World! Compiling and Uploading Programs What If It Doesn’t Work? Exercises 2.Creating Bigger Projects with the Arduino What You Need Managing Projects and Sketches Changing Preferences Using Serial Ports What If It Doesn’t Work? Exercises II. Eleven Arduino Projects 3.Building Binary Dice What You Need Working with Breadboards Using an LED on a Breadboard First Version of a Binary Die Working with Buttons Adding Your Own Button Building a Dice Game What If It Doesn’t Work? Exercises 4.Building a Morse Code Generator Library What You Need Learning the Basics of Morse Code Building a Morse Code Generator Fleshing Out the Morse Code Generator’s Interface Outputting Morse Code Symbols Installing and Using the Telegraph Class Publishing Your Own Library What If It Doesn’t Work? Exercises 5.Sensing the World Around Us What You Need Measuring Distances with an Ultrasonic Sensor Increasing Precision Using Floating-Point Numbers Increasing Precision Using a Temperature Sensor Creating Your Own Dashboard What If It Doesn’t Work? Exercises 6.Building a Motion-Sensing Game Controller What You Need Wiring Up the Accelerometer Bringing Your Accelerometer to Life Finding and Polishing Edge Values Building Your Own Game Controller More Projects What If It Doesn’t Work? Exercises 7.Writing a Game for the Motion-Sensing Game Controller Writing a GameController Class Creating the Game What If It Doesn’t Work? Exercises 8.Generating Video Signals with an Arduino What You Need How Analog Video Works Building a Digital-to-Analog Converter (DAC) Connecting the Arduino to Your TV Set Using the TVout Library Building a TV Thermometer Working with Graphics in TVout What If It Doesn’t Work? Exercises 9.Tinkering with the Wii Nunchuk What You Need Wiring a Wii Nunchuk Talking to a Nunchuk Building a Nunchuk Class Using Our Nunchuk Class Creating Your Own Video Game Console Creating Your Own Video Game What If It Doesn’t Work? Exercises 10.Networking with Arduino What You Need Using Your PC to Transfer Sensor Data to the Internet Registering an Application with Twitter Tweeting Messages with Processing Communicating Over Networks Using an Ethernet Shield Using DHCP and DNS What If It Doesn’t Work? Exercises 11.Creating a Burglar Alarm with Email Notification What You Need Emailing from the Command Line Emailing Directly from an Arduino Detecting Motion Using a Passive Infrared Sensor Bringing It All Together What If It Doesn’t Work? Exercises 12.Creating Your Own Universal Remote Control What You Need Understanding Infrared Remote Controls Grabbing Remote Control Codes Cloning a Remote Controlling Infrared Devices Remotely with Your Browser Building an Infrared Proxy What If It Doesn’t Work? Exercises 13.Controlling Motors with Arduino What You Need Introducing Motors First Steps with a Servo Motor Building a Blaminatr What If It Doesn’t Work? Exercises III. Appendixes A1.Electronics and Soldering Basics Current, Voltage, and Resistance Electrical Circuits Learning How to Use a Wire Cutter Learning How to Solder Learning How to Desolder A2.Advanced Arduino Programming The Arduino Programming Language Bit Operations A3.Advanced Serial Programming Learning More About Serial Communication Serial Communication Using Various Languages A4.Controlling the Arduino with a Browser What Are Google Chrome Apps? Creating a Minimal Chrome App Starting the Chrome App Exploring the Chrome Serial API Writing a SerialDevice Class A5.Bibliography Copyright © 2015, The Pragmatic Bookshelf. Early praise for Arduino: A Quick- Start Guide, Second Edition Buy this book only if you don’t mind being sucked into an amazing world of Arduino hacking, programming, games, controllers, motors, tweeting, networking, and lots of other mind-blowing things! → Kevin Beam Software engineer, National Snow and Ice Data Center (NSIDC) Maik Schmidt’s writing style is engaging and makes complex concepts accessible. When I finished the book, I was daydreaming about future Arduino projects I could create. →Matthew Sullivan Senior Rails/Ruby developer, Paradigmisr A very well-written, thorough introduction to the Arduino platform. The second edition is a nice refinement of the first, with much updated as a result of the changes to the platform since the initial release of the book. → Mike Riley Author, Programming Your Home, Build an Awesome PC, and Developing Android on Android

Description:
Arduino is an open-source platform that makes DIY electronics projects easier than ever. Gone are the days when you had to learn electronics theory and arcane programming languages before you could even get an LED to blink. Now, with this new edition of the bestselling Arduino: A Quick-Start Guide,
See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.