You are previewing Make: Lego and Arduino Projects.

Make: Lego and Arduino Projects

Cover of Make: Lego and Arduino Projects by John Baichtal... Published by O'Reilly Media, Inc.
  1. Special Upgrade Offer
  2. A Note Regarding Supplemental Files
  3. Foreword
  4. Preface
    1. Assumptions This Book Makes
    2. Contents of This Book
    3. Conventions Used in This Book
      1. Lego CAD Conventions
    4. Using Code Examples
    5. Safari® Books Online
    6. How to Contact Us
    7. Acknowledgments for John
    8. Acknowledgments for Matthew
    9. Acknowledgments for Adam
  5. 1. Project: Drawbot
    1. Parts List
      1. Tools & Electronics
      2. Lego Elements
    2. Assembly Instructions
      1. Build the Lego Model
      2. Attach the Arduino and Bricktronics Shield
      3. Attach the Pen
    3. Program the Robot
      1. Processing and Arduino
      2. Setting Up the Programming Environment
      3. Don’t Forget Your Libraries!
      4. The Arduino Sketch
    4. The Next Chapter
  6. 2. Anatomy of Lego Robotics
    1. Mindstorms
      1. The NXT Brick
      2. Sensors
      3. Motors
      4. Wires
      5. Technic Beams, Mechanics & Connectors
    2. Expanding on the Mindstorms Set
      1. Buying More
      2. Add-On Electronics
      3. Third-Party Bricks
      4. Non-Mindstorms Lego Bricks
      5. Power Functions
    3. Programming Your Brick
    4. The Next Chapter
  7. 3. Arduino Interlude
    1. History of the Arduino Project
    2. What Is OSHW?
    3. Anatomy of the Uno
    4. The Arduino Ecosystem
      1. Uno Alternatives
      2. Older Models
      3. Shields
    5. Arduino Resources
      1. Books
      2. Websites
      3. Code
    6. The Next Chapter
  8. 4. Project: Clock
    1. Parts List
      1. Tools & Electronics
      2. Lego Elements
    2. Assembly Instructions
      1. Prepare the Gear
      2. Build the Lego Model
      3. Install the Arduino
    3. Program the Robot
    4. Setting the Clock
    5. The Next Chapter
  9. 5. Project: Chocolate Milk Maker
    1. Parts List
      1. Tools & Electronics
      2. Beverage Handling
      3. Food
      4. Lego Elements
    2. Assembly Instructions
      1. Build the Pump Assembly
      2. Build the Lego Model
      3. Attach the Syrup Bottle
      4. Build the Mixing Attachment
      5. Wire up and Install the Electronics
    3. Program the Robot
    4. The Next Chapter
  10. 6. Basic Electronic Theory
    1. Basic Concepts in Electricity
      1. Voltage, Current & Resistance
      2. Ohm’s Law
      3. Other Concepts
    2. Know Your Electronic Components
      1. Resistors
      2. Capacitors
      3. Diodes and LEDs
      4. Inductors
      5. Transistors
      6. Integrated Circuits
    3. Sensors 101
      1. Digital Sensors
      2. Analog Sensors
    4. Further Study
  11. 7. Gripperbot
    1. Parts List
      1. Electronics Parts
      2. Lego Elements
    2. Building Instructions
      1. Bracers
      2. Gripperbot
    3. Assembling the Gripperbot’s Electronics
    4. Programming the Gripperbot
    5. The Next Chapter
  12. 8. Project: Keytar
    1. Parts List
      1. Tools & Electronics
      2. Lego Elements
    2. Assembly Instructions
      1. Build the Lego Model
      2. Install the Electronics
    3. Program the Keytar
    4. Play Some Music!
    5. The Next Chapter
  13. 9. Project: Lamp
    1. Parts List
      1. Tools & Electronics
      2. Lego Elements
    2. Assembly Instructions
      1. Build the Lego Model
      2. Install the Electronics
      3. Download and Install the App
    3. Program the Lamp
    4. The Next Chapter
  14. 10. Advanced Techniques
    1. Wiring Up Bricktronics Equivalents
    2. Mounting PCBs to Legos
    3. Adding Molex Connectors to Lego Wires
    4. All About Motors
      1. DC Brushed Motors
      2. Stepper Motors
      3. Hobby Servo Motors
    5. Powering Your Robot
      1. DC Power Jack
      2. USB Connector
      3. Batteries
      4. Battery Dos and Don’ts
    6. NXT to Arduino Communication
    7. XBee Wireless Modules
    8. Epilogue
  15. Index
  16. About the Authors
  17. Colophon
  18. Special Upgrade Offer
  19. Copyright
O'Reilly logo

Chapter 3. Arduino Interlude

IN THIS CHAPTER

History of the Arduino Project

What Is OSHW?

Anatomy of the Uno

The Arduino Ecosystem

Arduino Resources

The Next Chapter

In the first two projects you used an Arduino Uno to interact with Lego components, and in doing so, you performed such simple tasks as uploading sketches and wiring up pins. Here, let’s delve a little deeper into the technology.

The magic of the Arduino platform is in the size of this ecosystem. Everything from rolling robots to constructs that create art (Figure 3-1) can be—and has been—built with Arduinos.

Pete Prodoehl’s Arc-O-Matic controls a Sharpie marker with a pair of servos and an Arduino. Credit: Pete Prodoehl
Figure 3-1. Pete Prodoehl’s Arc-O-Matic controls a Sharpie marker with a pair of servos and an Arduino. Credit: Pete Prodoehl

In this chapter we’ll examine the Uno in almost nauseating detail, but we won’t neglect Uno’s cousin ‘Duinos like the Mega and the Fio, and we’ll also cover shields, which are Arduino add-on boards. Finally, we’ll cover the Arduino language as well as its critical resources of subroutines, global variables, and programming templates called libraries.

History of the Arduino Project

The Arduino project began in 2005 as an educational tool for a design class at the Interaction Design Institute Ivrea, in Ivrea, Italy. The goal was to lure nontechnical people into the realm of electronic design. If an artist seeks to build an interactive sculpture, for example, he or she doesn’t necessarily want to learn advanced ...

The best content for your career. Discover unlimited learning on demand for around $1/day.