Home > Store

Arduino for Beginners: Essential Skills Every Maker Needs

Register your product to gain access to bonus material or receive a coupon.

Arduino for Beginners: Essential Skills Every Maker Needs

eBook (Watermarked)

  • Your Price: $19.19
  • List Price: $23.99
  • Includes EPUB, MOBI, and PDF
  • About eBook Formats
  • This eBook includes the following formats, accessible from your Account page after purchase:

    ePub EPUB The open industry format known for its reflowable content and usability on supported mobile devices.

    MOBI MOBI The eBook format compatible with the Amazon Kindle and Amazon Kindle applications.

    Adobe Reader PDF The popular standard, used most often with the free Adobe® Reader® software.

    This eBook requires no passwords or activation to read. We customize your eBook by discreetly watermarking it with your name, making it uniquely yours.

Description

  • Copyright 2014
  • Dimensions: 7" x 9-1/8"
  • Edition: 1st
  • eBook (Watermarked)
  • ISBN-10: 0-13-341671-2
  • ISBN-13: 978-0-13-341671-8

ARDUINO for BEGINNERS

ESSENTIAL SKILLS EVERY MAKER NEEDS

Loaded with full-color step-by-step illustrations!

Absolutely no experience needed!

Learn Arduino from the ground up, hands-on, in full color!

Discover Arduino, join the DIY movement, and build an amazing spectrum of projects… limited only by your imagination!

No “geekitude” needed: This full-color guide assumes you know nothing about Arduino or programming with the Arduino IDE. John Baichtal is an expert on getting newcomers up to speed with DIY hardware. First, he guides you gently up the learning curve, teaching you all you need to know about Arduino boards, basic electronics, safety, tools, soldering, and a whole lot more. Then, you walk step-by-step through projects that reveal Arduino’s incredible potential for sensing and controlling the environment–projects that inspire you to create, invent, and build the future!

·         Use breadboards to quickly create circuits without soldering

·         Create a laser/infrared trip beam to protect your home from intruders

·         Use Bluetooth wireless connections and XBee to build doorbells and more

·         Write useful, reliable Arduino programs from scratch

·         Use Arduino’s ultrasonic, temperature, flex, and light sensors

·         Build projects that react to a changing environment

·         Create your own plant-watering robot

·         Control DC motors, servos, and stepper motors

·         Create projects that keep track of time

·         Safely control high-voltage circuits

·         Harvest useful parts from junk electronics

·         Build pro-quality enclosures that fit comfortably in your home

Sample Content

Table of Contents

Introduction 1

Chapter 1 Arduino Cram Session ................................................ 5

Arduino Uno: A Rookie-Friendly Microcontroller ............................5

Other Arduino Products ................................................................8

Electronics ....................................................................................9

    Light-Emitting Diodes ..............................................................11

    Buttons and Switches ...............................................................11

    Potentiometers ........................................................................12

    Resistors ..................................................................................13

    Capacitors ...............................................................................14

    Motors ....................................................................................15

    Solenoids .................................................................................16

    Piezo Buzzers ...........................................................................17

    Seven-Segment Displays ...........................................................18

    Relays ......................................................................................19

    Integrated Circuits ...................................................................20

    Temperature Sensors ................................................................21

    Flex Sensor...............................................................................22

    Light Sensor .............................................................................23

    Ultrasonic Sensor .....................................................................23

Safety Rules .................................................................................24

The Next Chapter ........................................................................26

Chapter 2 Breadboarding ......................................................... 27

Assembling Circuits Using Solderless Breadboards .......................27

    Understanding Power and Ground ...........................................30

    Using Jumper Wires .................................................................30

Project: Breadboard Blink ............................................................32

Project: Laser Trip Beam ..............................................................35

    Assembling the Laser Module ...................................................38

    Assembling the Sensor Module .................................................38

    Building the Enclosures ............................................................41

    Laser Trip Beam Code ..............................................................47

    Setting Up the Trip Beam .........................................................49

Alt.Project: Infrared Detector .......................................................50

    Wiring Up the PIR and Buzzer ..................................................51

    Infrared Detector Code ............................................................51

The Next Chapter ........................................................................52

Chapter 3 How to Solder ......................................................... 53

Gathering Soldering Supplies .......................................................55

    Picking a Soldering Iron............................................................55

    Choosing a Solder ....................................................................58

    Getting the Other Things You Need ..........................................59

        Desktop Vises ...............................................................................59

        Cutters and Strippers .....................................................................60

        Needle-Nose Pliers and Hemostats ..................................................61

        Fans or Fume Extractors .................................................................62

        ESD Protection .............................................................................62

        Solder Stand and Sponge ................................................................63

Soldering .....................................................................................64

Desoldering .................................................................................68

Cleanup ......................................................................................71

Project: LED Strip Coffee Table ....................................................72

    Preparing the Light Strip ..........................................................73

    Attaching the Light Strip to the Table .......................................75

Building the Enclosure .................................................................76

    Controlling the LED Strip .........................................................82

LED Strip Code ...........................................................................82

The Next Chapter ........................................................................90

Chapter 4 Setting Up Wireless Connections ............................... 91

XBee Wireless Modules ................................................................92

    XBee Versus XBee Pro ..............................................................92

    Series 1 Versus Series 2 ............................................................93

XBee Breakout Boards .................................................................93

Anatomy of the XBee ...................................................................94

Competing Wireless Modules.......................................................95

    Freakduino Chibi .....................................................................95

    JeeLabs JeeNode .......................................................................96

Project: Wireless LED Activation ..................................................96

Wireless LED Code ......................................................................99

Project: Bluetooth Doorbell .......................................................101

    The Button ............................................................................103

    Instructions for Wiring Up the Doorbell ..................................103

        Button Unit ................................................................................103

        Buzzer Unit ................................................................................105

    Building the Doorbell Enclosures ............................................107

        Button Unit Enclosure ..................................................................108

        Bending Acrylic ...........................................................................109

        Buzzer Unit Enclosure ..................................................................112

Wireless Doorbell Code .............................................................112

    Button Unit Code ..................................................................113

    Buzzer Unit Code ...................................................................114

The Next Chapter ......................................................................115

Chapter 5 Programming Arduino ............................................. 117

The Arduino Development Environment .....................................118

    Programming Window ..........................................................118

    Menus ...................................................................................120

        File Menu ...................................................................................120

        Edit Menu ..................................................................................120

        Sketch Menu...............................................................................121

        Tools Menu ................................................................................122

        Help Menu .................................................................................123

The Blink Sketch ........................................................................124

Learning from Example Code .....................................................127

    Adapt the Code .....................................................................128

    Finding Example Code ............................................................128

        Arduino Playground .....................................................................129

        Libraries.....................................................................................130

        Sharing Example Code .................................................................131

More Functions and Syntax........................................................133

    Arithmetic ..............................................................................133

    Arrays ....................................................................................133

    Comparison Operators ..........................................................134

    For ........................................................................................134

    Include ..................................................................................135

    Increment/Decrement ............................................................135

    Interrupts ..............................................................................135

    If/Else ....................................................................................136

    Mapping ................................................................................136

    Random.................................................................................136

    Switch/Case ...........................................................................137

    While .....................................................................................137

Debugging Using the Serial Monitor ..........................................137

All About Libraries.....................................................................139

Resources for Learning Programming .........................................141

    Books ....................................................................................141

    Websites ................................................................................141

The Next Chapter ......................................................................141

Chapter 6 Sensing the World ................................................. 143

Lesson: Sensors .........................................................................144

    Digital Versus Analog .............................................................145

        Digital .......................................................................................145

        Analog .......................................................................................145

    Connecting Digital and Analog Sensors ..................................146

Know Your Sensors ....................................................................146

    Accelerometer ........................................................................147

    Barometric .............................................................................147

    Encoder .................................................................................148

    Gas ........................................................................................148

    Hall Effect ..............................................................................149

    Infrared .................................................................................150

    Piezo Buzzer (Knock Sensor) ..................................................150

    Sound Sensors .......................................................................151

    Tilt Sensors ............................................................................151

Project: Mood Light...................................................................152

    Instructions............................................................................154

    Mood Lamp Code ..................................................................159

Alt.Project: Kerf Bending ...........................................................162

The Next Chapter ......................................................................163

Chapter 7 Controlling Liquid ................................................... 165

Lesson: Controlling the Flow of Liquid .......................................166

    Solenoid Valve .......................................................................166

    Pressurized Reservoir ..............................................................167

    Peristaltic Pump .....................................................................168

Mini Project: Make a Pressurized Reservoir ................................169

    Instructions............................................................................170

    Pressurized Reservoir Code .....................................................171

Project: Plant-Watering Robot ...................................................173

    Instructions............................................................................175

    Plant-Watering Robot Electronics ...........................................179

    Plant-Watering Robot Enclosure ............................................181

        Adding the Electronics ..................................................................182

    Plant-Watering Robot Code ...................................................185

The Next Chapter ......................................................................186

Chapter 8 Tool Bin ................................................................ 187

Maker’s Ultimate Toolbox .........................................................188

    Basic Multimeter ....................................................................188

    Multitool ...............................................................................189

    Measuring Tape .....................................................................190

    Soldering Iron .......................................................................190

    Digital Caliper ........................................................................191

    Scissors..................................................................................192

    X-Acto Knives .........................................................................192

    Screwdrivers ...........................................................................193

    Hardware...............................................................................193

    Wire Strippers ........................................................................194

    Super Glue .............................................................................195

    Mini Flashlight .......................................................................196

    Hot Glue Gun ........................................................................196

    Magnifying Glass ....................................................................197

    Writing Supplies.....................................................................197

    Sketchbook ............................................................................198

    Charging Cables .....................................................................198

Working with Wood ..................................................................200

    Laser Cutter ...........................................................................200

        How to Use a Laser Cutter ...........................................................201

    Rotary Tool ...........................................................................202

    Air Compressor and Attachments ...........................................203

    Drill .......................................................................................203

    CNC Mill ...............................................................................204

        Lasering and CNCing Services .......................................................205

    Table Saw ..............................................................................206

    Lathe .....................................................................................206

    Sander ...................................................................................207

Working with Plastic ..................................................................208

    3D Printers ............................................................................209

    LEGO ....................................................................................210

    Sugru .....................................................................................211

    Vacuum Former .....................................................................211

    Extruder .................................................................................212

    Tamiya ..................................................................................213

Working with Metal ...................................................................214

    Plasma Cutter ........................................................................215

    Band Saw ..............................................................................216

    Grinder ..................................................................................217

    Welder ...................................................................................218

    Aluminum Building Systems ...................................................219

        80/20 .......................................................................................219

        MicroRAX ..................................................................................220

        OpenBeam .................................................................................221

        Makeblock .................................................................................222

        VEX ...........................................................................................223

Maker Spaces ............................................................................224

Software....................................................................................228

    GIMP .....................................................................................228

    Inkscape ................................................................................229

    Fritzing ..................................................................................230

    KiCad PCB Layout Software ...................................................230

    MakerCase .............................................................................231

Electronics Tools and Techniques ..............................................232

    Multimeters ...........................................................................233

    Harvesting Electronics ............................................................235

    Electronics Marking ...............................................................238

        Part Numbers .............................................................................238

        Datasheets .................................................................................239

        Resistor Color Bands ...................................................................240

    Schematic Symbols ................................................................241

The Next Chapter ......................................................................242

Chapter 9 Ultrasonic Detection ............................................... 243

Lesson: Ultrasonic Detection .....................................................244

    Ultrasonic Sensor Applications ...............................................245

Mini Project: Make an Ultrasonic Night Light .............................245

    Ultrasonic Night Light Code ...................................................246

Project: Cat Toy ........................................................................247

    Instructions............................................................................250

    Enclosure ..............................................................................252

Lathe 101 ..................................................................................269

Lathe Safety ..............................................................................271

The Next Chapter ......................................................................272

Chapter 10 Making Noise ...................................................... 273

Noise in Electronics ...................................................................274

    Thingamagoop .......................................................................275

    Tactile Metronome .................................................................275

    LushOne Synth.......................................................................276

Mini Project: Pushbutton Melody ...............................................278

    Instructions............................................................................279

    Pushbutton Melody Code .......................................................280

Project: Noisemaker ..................................................................282

    Instructions............................................................................283

    Noisemaker Code...................................................................293

The Next Chapter ......................................................................294

Chapter 11 Measuring Time ................................................... 295

Time Server ............................................................................295

    Arduino’s Timer ....................................................................296

    Real-Time Clock (RTC) Module ..............................................297

Mini Project: Digital Clock .........................................................298

    Instructions............................................................................300

    Digital Clock Code .................................................................301

Project: Indoor Wind Chime ......................................................302

    Servo Horns ...........................................................................303

    Instructions............................................................................304

    Code .....................................................................................316

Computer Numerically Controlled (CNC) Tools .........................318

The Next Chapter ......................................................................319

Chapter 12 Safely Working with High Voltage .......................... 321

Lesson: Controlling High Voltage ...............................................322

    PowerSwitch Tail ....................................................................322

    EMSL Simple Relay Shield ......................................................323

    Beefcake Relay Control Board ................................................324

Mini Project: Making a Fan Controller .......................................327

    Instructions............................................................................328

    Fan Controller Code ...............................................................329

Project: Making a Lava Lamp Buddy .........................................330

    Decoding Infrared ..................................................................331

    Instructions............................................................................332

    Lava Lamp Buddy Code ..........................................................335

The Next Chapter ......................................................................338

Chapter 13 Controlling Motors ............................................... 339

How to Control Motors .............................................................340

    Adafruit Motor Shield ............................................................340

    Shmalz Haus EasyDriver .........................................................341

    Bricktronics MegaShield .........................................................341

Powering Your Motor Using a TIP-120 .......................................342

Alt.Project: Stepper Turner ........................................................344

    Instructions............................................................................345

    Stepper Turner Code ..............................................................346

Project: BubbleBot ....................................................................347

    Instructions............................................................................349

    BubbleBot Code ....................................................................356

Glossary 359

9780789748836   TOC   11/1/2013

Updates

Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020