Arduino Cookbook
Recipes to Begin, Expand, and Enhance Your Projects
Publisher: O'Reilly Media
Released: March 2011
Pages: 662

Create your own toys, remote controllers, alarms, detectors, robots, and many other projects with the Arduino device. This simple microcontroller board lets artists and designers build a variety of amazing objects and prototypes that interact with the physical world. With this cookbook you can dive right in and experiment with more than a hundred tips and techniques, no matter what your skill level is.

The recipes in this book provide solutions for most common problems and questions Arduino users have, including everything from programming fundamentals to working with sensors, motors, lights, and sound, or communicating over wired and wireless networks. You'll find the examples and advice you need to begin, expand, and enhance your projects right away.

  • Get to know the Arduino development environment
  • Understand the core elements of the Arduino programming language
  • Use common output devices for light, motion, and sound
  • Interact with almost any device that has a remote control
  • Learn techniques for handling time delays and time measurement
  • Use simple ways to transfer digital information from sensors to the Arduino device
  • Create complex projects that incorporate shields and external modules
  • Use and modify existing Arduino libraries, and learn how to create your own
Table of Contents
Product Details
About the Author
Colophon
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
O'Reilly MediaArduino Cookbook
 
4.5

(based on 11 reviews)

Ratings Distribution

  • 5 Stars

     

    (6)

  • 4 Stars

     

    (5)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (0)

100%

of respondents would recommend this to a friend.

Pros

  • Easy to understand (10)
  • Helpful examples (10)
  • Well-written (7)
  • Accurate (5)
  • Concise (5)

Cons

    Best Uses

    • Intermediate (9)
    • Novice (5)
    • Student (4)
    • Expert (3)
      • Reviewer Profile:
      • Developer (6), Designer (5), Maker (5)

    Reviewed by 11 customers

    Sort by

    Displaying reviews 1-10

    Back to top

    Previous | Next »

     
    5.0

    Excellant Book

    By theTribster

    from Collegeville, Pennsylvania

    About Me Designer, Developer, Educator, Maker

    Pros

    • Accurate
    • Concise
    • Easy to understand
    • Helpful examples

    Cons

      Best Uses

      • Intermediate
      • Novice

      Comments about O'Reilly Media Arduino Cookbook:

      Excellant both as a resource as well as a tool including educational value, really a good buy!

       
      5.0

      ONE OF THE BEST !!!

      By ARDUINO -LOVER

      from DELHI,INDIA

      Pros

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

      Cons

        Best Uses

          Comments about O'Reilly Media Arduino Cookbook:

          a REALLY GOOD BOOK IF YOU ARE COMMITTED TO ARDUINOS !!!

          (1 of 1 customers found this review helpful)

           
          4.0

          Cookbook, not cooking class

          By Grover

          from Sacramento, CA

          About Me Maker

          Verified Reviewer

          Pros

          • Concise
          • Helpful examples

          Cons

            Best Uses

            • Expert
            • Intermediate
            • Student

            Comments about O'Reilly Media Arduino Cookbook:

            This book is a time-saver for an intermediate Arduino user with some programming experience. Michael Margolis does not waste the reader's time with introduction to Arduino (available in a multitude other places), nor does he discuss hardware. This is strictly a CODE book. Margolis plunges right into several hundred examples of working code that will program your Arduino to perform all types of tasks and interface with all types of devices, sensors, the Internet, and several types of wireless systems. His code provides a starting point for using the Arduino in nearly any way. The examples are designed to work with popular sensors and devices that are currently available. In most cases, the author provides part numbers for the devices.

            Even for an expert programmer (which I am not), I expect this book would be a time-saver because it provides debugged code that can be cut, pasted, combined and otherwise bent to your will.

            For a DIY type with some programming and Arduino experience, this book delivers information at just the right level to move forward on intermediate/advanced projects.

            (1 of 2 customers found this review helpful)

             
            4.0

            Good Book

            By ElectroTeckniker

            from San Diego, CA

            About Me Designer

            Verified Reviewer

            Pros

            • Easy to understand

            Cons

            • Too many errors

            Best Uses

            • Intermediate

            Comments about O'Reilly Media Arduino Cookbook:

            I used the book to learn how to use the Arduino unit, but came here to get errata - I don't see any. I have found several errors as I worked the code or read the figures (things like Rx -> Rx when they meant Rx -> Tx and vis versa.

            I corrected code here and there, and it worked. The book's code had a few errors. This is a tough way to learn a new product, but in general the book is excellent. Once I clear the bugs out, it will become my "go-to" reference on the Arduino.

            (2 of 2 customers found this review helpful)

             
            4.0

            Useful for problem solving & inspiration

            By Joshua

            from Lynnwood, WA

            About Me Developer, Maker

            Verified Reviewer

            Pros

            • Concise
            • Easy to understand
            • Helpful examples

            Cons

              Best Uses

              • Intermediate
              • Novice

              Comments about O'Reilly Media Arduino Cookbook:

              As part of O'Reilly's Cookbok series, the Arduino Cookbook offers a wide selection of recipes for solving a variety of "problems" you might run into when programming the Arduino series of micro-controllers. The recipes range from basics like connecting your Arduino to a Mac or PC and formatting your code to more advanced topics like controlling arrays of LEDs and wireless communications.

              In general the recipes are short and to the point. Each provides a code example and a reasonably detailed explanation for what is going on. This isn't the kind of book you'd read cover to cover, but it is an excellent reference to have on the shelf after you've walked through a few basic Arduino tutorials. Whenever you run into a "how do I?" question or just run out of ideas you should be able to get some guidance and maybe inspiration.

              I found Chapter 6, Getting Input From Sensors, particularly interesting. With a separate example for each of the most common sensors it provides a good starting point for gathering and reacting to real-world conditions.

              (2 of 2 customers found this review helpful)

               
              4.0

              Recommended for any Geek

              By Dumpy

              from Sri Lanka

              About Me Designer, Developer

              Verified Reviewer

              Pros

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

              Cons

                Best Uses

                • Expert
                • Intermediate
                • Novice
                • Student

                Comments about O'Reilly Media Arduino Cookbook:

                I received this book from O'Reilly's Blogger Review Program.

                The most important thing I noticed about this book is its ability to address an unimaginably broad audience. From a very beginner who venture into the arena of "geekhood" by testing LED patterns, to a well experienced engineer developing a ZigBee network.

                The next thing I appreciate is the well organized Q & A approach. It saves time considerably. You can simply skip to the point of your interest and concentrate there.

                While focusing to be easily understood by beginners the authors have not forgotten curious questions which might arise to an intermediate or advanced user. One example is the mentioning of what happened to the 'main' function in Arduino source codes as opposed to a typical code written in C language.

                For the readers of eBook versions(.mobi in my case) there might be some misunderstanding due to the line separation of some comments. With a basic idea of commenting you can fix it.

                Concluding the review, I seriously recommend this book to anybody wishing to learn Arduino irrespective of your level of knowledge or expertise.

                (1 of 2 customers found this review helpful)

                 
                5.0

                Impressive book, easy to understand

                By The Hun

                from Groningen, Netherlands

                Verified Reviewer

                Pros

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

                Cons

                  Best Uses

                    Comments about O'Reilly Media Arduino Cookbook:

                    I am using this book as a study and reference guide for my students. I am using both the e-book (on my iPad) and the paper version. Lot's of my students use only the e-book version.

                    Being active in the computer industry more than 40 years, a book of this quality is published very seldom. Great job!

                     
                    5.0

                    The absolute reference!

                    By Rawbear

                    from Montreal

                    About Me Artist, Designer, Developer

                    Verified Reviewer

                    Pros

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

                    Cons

                    • None

                    Best Uses

                    • Expert
                    • Intermediate
                    • Novice

                    Comments about O'Reilly Media Arduino Cookbook:

                    I'm doing a lot of electronics and the Arduino helps me interface the modules with computers and musical instruments. I use the book as a reference to figure better ways to accomplish various tasks. This book is extremely complete, with hundreds of examples (called "recipes"). It covers everything I can think of so far. For example, I was recently looking for an explanation on the use of "prescaler" bits. Sure enough, there was a concise reference to this subject.
                    I think that this book will be extremely useful for the beginner and intermediate Arduino fan. The experts will also find it invaluable as a reference.
                    I bought the e-book version.

                    (4 of 4 customers found this review helpful)

                     
                    5.0

                    Excellent Arduino Reference

                    By healthyfatboy

                    from Nashua, NH

                    About Me Engineer, Tinkerer

                    Verified Reviewer

                    Pros

                    • Easy to understand
                    • Helpful examples
                    • Well-written

                    Cons

                    • A few minor errors

                    Best Uses

                    • Hobbyist
                    • Intermediate
                    • Student

                    Comments about O'Reilly Media Arduino Cookbook:

                    If you have a little programming experience, want to learn the Arduino, and can read the instructions, this is the book for you. I found this to be a very thorough book in getting people new to Arduino up to speed and gives great examples on how to do just about anything you would want.

                    I have been learning the Arduino on my own using some tutorials online and found this to be an excellent compliment to what I have been learning. It goes over how to install the software on Windows and Mac and then helps you through the process of connecting up to your board. This can be found online but it's good to see some basics in there. Being extremely rusty on C/C++ programming, there were some nuances to C that I did not know and this book pointed those subtleties out. What I really found impressive in the beginning chapters was the advanced code used by C programmers to make things a little easier, if you happen to know advanced C. I'm in the process of learning C in addition to other languages and it's good to see what I will eventually get towards.

                    Further into the book, it starts to go through many different projects that can be done and gives you the basics of how to do them. You'll need to know a little about what you're doing but gives good references of where to go and look for more information just in case you need to learn a little more before you dive into your project. There's even a little section in the book where you learn how to interface a Playstation controller with the computer and then control Google Earth with it. Very cool! There's lots to learn from this book and it's definitely a worthwhile reference for anyone that is interesting in implementing projects using an Arduino.

                    As good as this book is, there are a few shortcomings. I found some minor mistakes in the book such as the output to the serial monitor being slightly different than what you would expect. e.g., when parsing out words separated by commas, it shows two of the three words separated but doesn't show the last word. If you code it up as shown, it does it just fine but if you are trying to check against the book, it will be "wrong" because the book is. Also, in the first chapter, it shows how to connect a small speaker to the Arudino and explains how to get a tone out of it but doesn't show how to do any of it in the example code given. The code has a minor omission that with the proper fix, should run the speaker just fine but if you're still learning, you'll have a difficult time figuring it out on your own.

                    All in all, if you have a little knowledge of C/C++ or Arudino, this will definitely be a great addition to your library. I highly recommend this book.

                    Disclaimer: This book was received as part of the O'Reilly Blogger Review Program. All the comments represent my thoughts and opinions and no other party.

                    (2 of 2 customers found this review helpful)

                     
                    4.0

                    Must have for lot's of Arduino fun

                    By JO3RI

                    from Belgium

                    About Me Designer, Developer, Maker, Sys Admin

                    Verified Reviewer

                    Pros

                    • Easy to understand
                    • Helpful examples
                    • Well-written

                    Cons

                      Best Uses

                      • Intermediate
                      • Novice

                      Comments about O'Reilly Media Arduino Cookbook:

                      I have downloaded this book for the kindle app on iPad and have already found a lot of solutions for problems. I even found solutions for problems I didn't knew I had. This book really is a must have, if you want to learn more on the arduino and it's programming language. Lot's of examples.

                      Displaying reviews 1-10

                      Back to top

                      Previous | Next »

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