Getting Started With Arduino, 4th Edition

Book description

Arduino is the open source electronics prototyping platform that has taken the Maker Movement by storm. This thorough introduction, updated for the latest Arduino release, helps you start prototyping right away. From obtaining the required components to putting the final touches on your project, all the information you need is here!

Getting started with Arduino is a snap. To use the introductory examples in this guide, all you need is an Arduino Uno or Leonardo, along with a USB cable and an LED. The easy-to-use, free Arduino development environment runs on Mac, Windows, and Linux.

In Getting Started with Arduino, you'll learn about:

Interaction design and physical computingThe Arduino board and its software environmentBasics of electricity and electronicsPrototyping on a solderless breadboardDrawing a schematic diagramTalking to a computer--and the cloud--from ArduinoBuilding a custom plant-watering system

Publisher resources

View/Submit Errata

Table of contents

  1. Preface to the 4th Edition
    1. Preface
    2. Acknowledgments for Massimo Banzi
    3. Acknowledgments for Michael Shiloh
    4. Conventions Used in This Book
    5. Using Code Examples
    6. O’Reilly Online Learning
    7. How to Contact Us
  2. 1. Introduction
    1. Intended Audience
    2. What Is Interaction Design?
    3. What Is Physical Computing?
  3. 2. The Arduino Way
    1. Prototyping
    2. Tinkering
    3. We Love Junk!
    4. Hacking Toys
    5. Collaboration
  4. 3. The Arduino Platform
    1. The Arduino Hardware
    2. The Software Integrated Development Environment (IDE)
    3. Installing Arduino on Your Computer
      1. Installing the IDE: MacOS
        1. Configuring the Drivers: MacOS
        2. Port Identification: MacOS
      2. Installing the IDE: Windows
        1. Configuring the Drivers: Windows
        2. Port Identification: Windows
        3. Installing the IDE: Linux
        4. Configuring the Drivers: Linux
        5. Granting Permission on the Serial Ports: Linux
  5. 4. Really Getting Started with Arduino
    1. Anatomy of an Interactive Device
    2. Sensors and Actuators
    3. Blinking an LED
    4. Pass Me the Parmesan
    5. Arduino Is Not for Quitters
    6. Real Tinkerers Write Comments
    7. The Code, Step by Step
    8. What We Will Be Building
    9. What Is Electricity?
    10. Using a Pushbutton to Control the LED
    11. How Does This Work?
    12. One Circuit, a Thousand Behaviours
  6. 5. Advanced Input and Output
    1. Trying Out Other On/Off Sensors
      1. Homemade (DIY) Switches
    2. Controlling Light with PWM
    3. Use a Light Sensor Instead of the Pushbutton
    4. Analogue Input
    5. Try Other Analogue Sensors
    6. Serial Communication
    7. Driving Bigger Loads (Motors, Lamps, and the Like)
    8. Complex Sensors
    9. The Arduino Alphabet
  7. 6. Processing with an Arduino Lamp
    1. Planning
    2. Coding
    3. Assembling the Circuit
    4. Here’s How to Assemble It
  8. 7. The Arduino Cloud
    1. Arduino Cloud IDE
    2. Project Hub
    3. IoT Cloud
    4. Arduino Cloud Plans
  9. 8. Automatic Garden-Irrigation System
    1. Planning
    2. Testing the Real Time Clock (RTC)
    3. Testing the Relays
    4. Electronic Schematic Diagrams
    5. Testing the Temperature and Humidity Sensor
    6. Coding
    7. Setting the On and Off Times
    8. Checking Whether It’s Time to Turn a Valve On or Off
    9. Checking for Rain
    10. Putting It All Together
    11. Assembling the Circuit
    12. The Proto Shield
    13. Laying Out Your Project on the Proto Shield
    14. Soldering Your Project on the Proto Shield
    15. Testing Your Assembled Proto Shield
    16. Assembling Your Project into a Case
    17. Testing the Finished Automatic Garden Irrigation System
    18. Things to Try on Your Own
    19. Irrigation Project Shopping List
  10. 9. The Arduino ARM Family
    1. What’s the difference between AVR and ARM?
    2. What difference does 32 bits really make?
    3. What’s the difference between a microcontroller and a microprocessor?
    4. Which is better: AVR or ARM?
    5. Introducing the Arduino ARM based boards
    6. Special Features
    7. Operating Voltage
    8. Drive Current
    9. Digital to Analog Converter
    10. USB Host
      1. The Nano and MKR footprints
  11. 10. Talking to the internet with ARM: An Internet Connected “Fistbump”
    1. An internet connected “fistbump”
    2. Introducing MQTT: the Message Queueing Telemetry Transfer protocol
    3. Internet Connected Fistbump: The hardware
      1. Internet Connected Fistbump: MQTT Broker on Shiftr.io
  12. 11. Troubleshooting
    1. Understanding
    2. Simplification and Segmentation
    3. Exclusion and Certainty
    4. Testing the Arduino Board
    5. Testing Your Breadboarded Circuit
    6. Isolating Problems
    7. Problems Installing Drivers on Windows
    8. Problems with the IDE on Windows
    9. Identifying the Arduino COM Port on Windows
    10. Other Debugging Techniques
    11. How to Get Help Online
  13. A. The Breadboard
  14. B. Reading Resistors and Capacitors
  15. C. Arduino Quick Reference
    1. Structure
    2. Special Symbols
    3. Constants
    4. Variables
    5. Variable Scope
    6. Control Structures
    7. Arithmetic and Formulas
    8. Comparison Operators
    9. Boolean Operators
    10. Compound Operators
      1. increment and decrement (–– and ++)
    11. Input and Output Functions
    12. Time Functions
    13. Math Functions
    14. Random Number Functions
    15. Serial Communication
      1. The Arduino Family
  16. D. Reading Schematic Diagrams
  17. Index
  18. About the Authors

Product information

  • Title: Getting Started With Arduino, 4th Edition
  • Author(s): Massimo Banzi, Michael Shiloh
  • Release date: February 2022
  • Publisher(s): Make: Community
  • ISBN: 9781680456936