Arduino Cookbook, 2nd Edition
Recipes to Begin, Expand, and Enhance Your Projects
Publisher: O'Reilly Media
Released: December 2011
Pages: 724

Want to create devices that interact with the physical world? This cookbook is perfect for anyone who wants to experiment with the popular Arduino microcontroller and programming environment. You’ll find more than 200 tips and techniques for building a variety of objects and prototypes such as toys, detectors, robots, and interactive clothing that can sense and respond to touch, sound, position, heat, and light.

You don’t need to have mastered Arduino or programming to get started. Updated for the Arduino 1.0 release, the recipes in this second edition include practical examples and guidance to help you begin, expand, and enhance your projects right away—whether you’re an artist, designer, hobbyist, student, or engineer.

  • Get up to speed on the Arduino board and essential software concepts quickly
  • Learn basic techniques for reading digital and analog signals
  • Use Arduino with a variety of popular input devices and sensors
  • Drive visual displays, generate sound, and control several types of motors
  • Interact with devices that use remote controls, including TVs and appliances
  • Learn techniques for handling time delays and time measurement
  • Apply advanced coding and memory handling techniques
Table of Contents
Product Details
About the Author
Colophon
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyArduino Cookbook, 2nd Edition
 
4.9

(based on 7 reviews)

Ratings Distribution

  • 5 Stars

     

    (6)

  • 4 Stars

     

    (1)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (0)

100%

of respondents would recommend this to a friend.

Pros

  • Helpful examples (6)
  • Concise (5)
  • Easy to understand (5)
  • Accurate (4)
  • Well-written (4)

Cons

    Best Uses

    • Intermediate (6)
    • Novice (6)
    • Expert (4)
    • Student (4)
      • Reviewer Profile:
      • Developer (3)

    Reviewed by 7 customers

    Sort by

    Displaying reviews 1-7

    Back to top

     
    5.0

    great

    By adam

    from UK

    Verified Buyer

    Comments about oreilly Arduino Cookbook, 2nd Edition:

    this is a great book, really clear guide to arduino, well graded exercises and lots of useful info.

    (0 of 1 customers found this review helpful)

     
    5.0

    Best by far!

    By Robert

    from Perth, Australia

    Pros

    • Accurate
    • Concise
    • Easy to understand
    • Helpful examples
    • Well-written

    Cons

      Best Uses

      • Expert
      • Intermediate
      • Novice
      • Student

      Comments about oreilly Arduino Cookbook, 2nd Edition:

      This book makes other arduino books seem like tash. It is the best written text book I have ever seen!

      (1 of 1 customers found this review helpful)

       
      5.0

      Exploring Arduino

      By wiske57

      from Biloxi, MS

      About Me Hobbyist, Non-professional

      Verified Reviewer

      Pros

      • Accurate
      • Easy to understand
      • Helpful examples

      Cons

        Best Uses

        • Intermediate
        • Novice

        Comments about oreilly Arduino Cookbook, 2nd Edition:

        Weather you read it from cover to cover or jump to an interesting project you will find the information needed to learn all the Arduino is capable of. Provides the needed background for beginners while building up to more advanced projects as you learn. Anyone already having experience with the Arduino will also find advanced projects and code that may be incorporated into a project you want to build. Well written and easy to understand examples will get your project up and running quickly while providing the background to understand the code it runs.

        (12 of 12 customers found this review helpful)

         
        4.0

        Nice infomation storehouse for Arduino

        By Carpenterbee

        from Down East

        About Me Designer, Maker

        Verified Reviewer

        Pros

        • Concise
        • Easy to understand
        • Helpful examples
        • Well-written

        Cons

          Best Uses

          • Intermediate
          • Novice
          • Student

          Comments about oreilly Arduino Cookbook, 2nd Edition:

          I use this book to learn about techniques that I don't already know about designing with the Arduino micro-controller. It is a pretty complete reference for those who are just starting out. About my only dislike is that there appears to be no way to copy examples out of the book via computer. So far I've had to type them all in. Maybe I missed the URL for this...... or........ maybe you have to expend additional monies and purchase the eBook version. I'm not even sure you could do it then.

          (4 of 4 customers found this review helpful)

           
          5.0

          Become an Arduino master!

          By sandyboy55

          from St Louis, MO

          About Me Developer

          Verified Reviewer

          Pros

          • Accurate
          • Concise
          • Easy to understand
          • From Beginner to Advanced
          • Helpful examples
          • Well-written

          Cons

            Best Uses

            • Expert
            • Intermediate
            • Novice

            Comments about oreilly Arduino Cookbook, 2nd Edition:

            The best way to describe Arduino is "open-source electronics". The hardware and software combination provides a platform for interactivity designers to prototype embedded devices before beginning any mass production. Arduino cookbook is one of the best books I have read on this platform that explains step-by-step how to program and build interesting circuits that fascinate and make you stand out among your peers.

            This book assumes no previous knowledge on the part of the reader. Indeed you must have some basic understanding of electronics but just enough to be able to connect the Arduino board to your PC and also install and run the IDE software. If you know just that much, this book will take you to the next level. The information on Arduino is so scattered on the Arduino website and other sites, this book will provide the basis for a strong foundation for you. I like the style of cookbooks in general as "problem statements" and "solutions" are presented together followed by a "discussion" paragraph. This is a huge book of 724 pages covering the entire gamut of simple programming, serial communication, analog and digital input, using sensors, visualizing the output, audio output, etc. It has entire chapters devoted to I2C and SPI communications, wireless, and Ethernet networking. Followed by a chapter on creating your own libraries. The appendix sections at the end help you understand about electronic components, schematic diagrams and data sheets, using a breadboard to build and connect the circuits, and tips on troubleshooting software and hardware problems. You can grab this book as an absolute beginner and graduate to become an Arduino master at the end.

            (3 of 4 customers found this review helpful)

             
            5.0

            This is an amazing book for Arduino

            By Scott

            from Boston, MA

            About Me Developer, Educator

            Verified Reviewer

            Pros

            • Accurate
            • Concise
            • Easy to understand
            • Helpful examples

            Cons

              Best Uses

              • Expert
              • Intermediate
              • Novice
              • Student

              Comments about oreilly Arduino Cookbook, 2nd Edition:

              This is a must have book for Arduino. Not only does it covers the basics, it also covers much more advanced configurations. Anytime I have needed to know something, and looked to this book, I found the answer. We highly recommend this book to students in our robotics classes. I have used it as a reference and not from a beginners prospective so I can not comment to the quality from that view. That said, even if you are a beginner you are going to want this book.

              (17 of 17 customers found this review helpful)

               
              5.0

              Broad coverage of what you can do

              By Mark Colan

              from Medford, MA

              About Me Designer, Developer, Maker

              Verified Reviewer

              Pros

              • Concise
              • Helpful examples
              • Well-written

              Cons

                Best Uses

                • Expert
                • Intermediate
                • Novice
                • Student

                Comments about oreilly Arduino Cookbook, 2nd Edition:

                This book presents the broad landscape of what's possible with Arduino. Organized as "recipes", you can combine them to do all kinds of things. Knowing what is possible should help to stimulate your imagination. The book does not go deep into any one subject, choosing instead to give you enough to get started, and pointers on where to go for deeper information.

                AUDIENCE

                Two kinds of skills are required (or developed) to build projects that use Arduino. One is working with electronics - gathering components, assembling them, and connecting them to the Arduino. The other is simple programming in C. If you have these skills but no experience with Arduino and want a quick start, this book will really help.

                Someone with little or no experience in these areas may be able to figure it out from Chapter 1 in particular, and reading the rest carefully. Absolute beginners may find it easier to start with an absolute beginners book. If you buy this book and find it is too deep, keep it, you can always get a simpler book, then come back when you're ready.

                The book is not a complete introduction to programming or electronics. The author chose to go broad to introduce his audience to a wide range of possibilities, rather than go very deep on any of them, but there is enough info to make it work, and references to go deeper.

                CHANGES FROM ARDUINO COOKBOOK FIRST EDITION

                The second edition has been updated to the Arduino 1.0 release. It is expanded to 724 pages, 62 more pages, and a few dollars less. Comparing the books side-by-side, the table of contents were nearly identical. The page numbers are different, owing to expanded text in the second edition, and a few new sections:

                Sending Messages Using Low-Cost Tranceivers
                Communicating with Bluetooth Devices
                Updating Third-Party Libraries for Arduino 1.0
                Uploading Sketches Using a Programmer
                Replacing the Arduino Bootloader
                Reprogram the Uno to Emulate a Native USB Device

                ...and an Appendix: Migrating to Arduino 1.0, which describes the changes you need to make to older code to work with Arduino 1.0.

                If you have the first edition, you may not need to get the second edition. You can download the new source code from the publisher's Web site and learn from the differences in Arduino 1.0. The author says that a few newer hardware devices have replaced the ones described in the first edition, but less than one year passed between these two editions, so it would not be a lot. The change to Arduino 1.0 should not require changes to circuits.

                STRUCTURE

                The book has 18 chapters containing a total of 204 topics or "Recipes" structured as a Problem, a Solution, Discussion, and See Also sections. Most problems are things people would really want to do: pieces of a project. Solutions consist of C code and libraries, and electronic components. Discussion might be troubleshooting, variations, or more information. See Also provides references for more information - in the book, and URLs for Web-based information or libraries.

                The average "recipe" is 3.1 pages long; some are longer than others.

                CONTENT

                Chapter 1 discusses the software development environment (which is supported for Windows, Mac, and Linux, but comes from Arduino) and very basic information about the board. In introduces simple programming and wiring by way of the common "blinking light" example. In 21 pages, the goal is to get something running quickly more than learning how it all works.

                Two chapters explain a bit about C: types of variables and manipulations; mathematical operations for numeric types.

                Programs must have input and/or output to be useful. Since this is what makes your solution come alive, this is the bulk of the book, and the most interesting part.

                Chapter 4 introduces serial communications - exchanging information with a computer which is connected to the Arduino via USB. This can be used for I/O to a connected computer, as well as debugging your program by sending status messages at various points in the processing.

                Chapter 5 discusses digital and analog input and output at a very basic level - controlling output to pins, and reading input from the pins. This is the foundation for all I/O that follows.

                A strength of Arduino is the vast array of devices that work without a lot of extra circuitry. Chapter 6 discusses detecting light (or dark), movement, acceleration, vibration, distance, sound, temperature, location, direction, and interface to a computer mouse or a game controller. Chapter 7 discusses visual output using LEDs alone or in a matrix, 7-segment displays, and meters.

                Chapter 8 discusses producing movement, vibration, or controlling external devices with relays and solenoids. Chapter 9 shows you how to make sounds - as tones, melodies, playing recordings, controlling a MIDI synthesizer, and making a simple audio synthesizer.

                Chapter 10 presents uses of InfraRed devices (your home stereo, your camera, etc) as well as detecting and acting upon InfraRed signals from remotes you already have. Chapter 11 tells you how to use LCD displays available for Arduino to display text, or how to display text on the TV.

                Chapter 12 deals with dates and times - make Arduino aware of passing time, or to work as an alarm clock.

                Chapter 13 presents I2C and SPI, standards used for exchanging information between a variety of digital devices. Learn to use a standard and you'll find it can be used with other devices. For example, if you want to use a Wii Nunchuck controller to control your Arduino applications, you will need to learn about I2C. You can also use I2C to talk to external memory added to Arduino, get temperature for an external digital temperature measuring device, or display 4 numbers on 7-segment displays using only two wires.

                Chapter 14 is about wireless communication. Chapter 15 discusses using an Ethernet shield to Internet-enable your Arduino application.

                Chapter 16 discusses the creation and use of code libraries. Chapter 17 dives deeper into the subject of prgramming, especially in handling memory. Chapter 18 is all about using the controller chip hardware in ways not (yet) supported by libraries.

                Nine appendices give basic information on building with electronics, troubleshooting, digital and analog I/O pins, and character sets. For those who have code written prior to the release of Arduino 1.0, an appendix is there to help you migrate.

                The source code can be downloaded from the publisher's Web site; the URL is on page xv.

                ELECTRONIC VERSION

                You should seriously consider the PDF version of the book, because all of the many links are live, and the PDF is on your computer as handy reference. You can always print pages as needed for reference while building. O'Reilly currently has a good deal for upgrading to a new PDF edition.

                SUMMARY

                The book serves as an introduction to the broadest range of Arduino capabilities of any book I have seen. With a little experience, the book will get you going quickly by demonstrating a working example that may be enough for your purposes. For me, this book is indispensable for Arduino work.

                DISCLOSURE: As an O'Reilly reviewer, I was provided with an electronic copy of the book to review; I was not otherwise paid. I also bought a paper copy of the book.

                Displaying reviews 1-7

                Back to top

                 
                Buy 2 Get 1 Free Free Shipping Guarantee
                Buying Options
                Immediate Access - Go Digital what's this?
                Ebook: $35.99
                Formats:  DAISY, ePub, Mobi, PDF
                Print & Ebook: $49.49
                Print: $44.99

                Available in Multiple Languages