Download Arduino for Dummies PDF

TitleArduino for Dummies
TagsFor Dummies
File Size34.4 MB
Total Pages401
Table of Contents
                            Title Page
Copyright Page
Table of Contents
	About This Book
	Foolish Assumptions
	Icons Used in This Book
	Beyond the Book
	Where to Go from Here
Part 1 Getting to Know Arduino
	Chapter 1 Discovering Arduino
		Where Did Arduino Come From?
		Learning by Doing
			Circuit bending
		Open Source
	Chapter 2 Finding Your Board and Your Way Around It
		Getting to Know the Arduino Uno
			The Brains: ATmega328P microcontroller chip
			Header sockets
			Digital pins
			Analog in pins
			What about analog out?
			Power pins
			USB socket
			Power socket
			Reset button
		Discovering Other Arduino Boards
			Official Arduino boards
			Contributed (approved) Arduinos
		Shopping for Arduino
			Arduino Store
			Seeed Studio
			Watterott Electronic
			Electronics distributors
		Kitted Out: Starting with a Beginner’s Kit
		Preparing a Workspace
		Installing Arduino
		Surveying the Arduino Environment
		Using Arduino Web Editor
	Chapter 3 Blinking an LED
		Working with Your First Arduino Sketch
			Finding the Blink Sketch
			Identifying your board
			Configuring the software
			Uploading the sketch
			Congratulate yourself!
			What just happened?
		Looking Closer at the Sketch
		Blinking Brighter
		Tweaking the Sketch
Part 2 Getting Physical with Arduino
	Chapter 4 Tools of the Trade
		Finding the Right Tools for the Job
			Jump wires
			Needle-nose pliers
		Using a Multimeter to Measure Voltage, Current, and Resistance
			Measuring voltage in a circuit
			Measuring current in a circuit
			Measuring resistance of a resistor
			Measuring resistance of a variable resistor
			Checking the continuity (in bleeps) of your circuit
	Chapter 5 A Primer on Electricity and Circuitry
		Understanding Electricity
		Using Equations to Build Your Circuits
			Ohm’s Law
			Calculating power
			Joule’s Law
		Working with Circuit Diagrams
			A simple circuit diagram
			Using a circuit diagram with an Arduino
		Resistor Color Charts
	Chapter 6 Basic Sketches: Inputs, Outputs, and Communication
		Uploading a Sketch
		Using Pulse-Width Modulation (PWM)
		The LED Fade Sketch
			Understanding the Fade sketch
			Tweaking the Fade sketch
		The Button Sketch
			Understanding the Button sketch
			Tweaking the Button sketch
		The AnalogInput Sketch
			Understanding the AnalogInput sketch
			Tweaking the AnalogInput sketch
		Talking Serial
			The DigitalReadSerial Sketch
			Understanding the DigitalReadSerial sketch
			The AnalogInOutSerial Sketch
			Understanding the AnalogInOutSerial sketch
	Chapter 7 More Basic Sketches: Motion and Sound
		Working with Electric Motors
		Discovering Diodes
		Spinning a DC Motor
			The Motor sketch
			Understanding the Motor sketch
		Changing the Speed of Your Motor
			The MotorSpeed sketch
			Understanding the MotorSpeed sketch
		Controlling the Speed of Your Motor
			The MotorControl sketch
			Understanding the MotorControl Sketch
			Tweaking the MotorControl sketch
		Getting to Know Servo motors
		Creating Sweeping Movements
			The Sweep sketch
			Understanding the Sweep sketch
		Controlling Your Servo
			The Knob sketch
			Understanding the Knob sketch
		Making Noises
			Piezo buzzer
			The toneMelody sketch
			Understanding the sketch
		Making an Instrument
			The PitchFollower sketch
			Understanding the sketch
Part 3 Building on the Basics
	Chapter 8 Learning by Example
			How it works
			Further reading
			How it works
			Further reading
		Push Snowboarding
			How it works
			Further reading
		Baker Tweet
			How it works
			Further reading
		The National Maritime Museum’s Compass Lounge and Compass Card
			How it works
			Further reading
		The Good Night Lamp
			How it works
			Further reading
		Little Printer
			How it works
			Further reading
		Flap to Freedom
			How it works
			Further reading
	Chapter 9 Soldering On
		Understanding Soldering
		Gathering What You Need for Soldering
			Creating a workspace
			Choosing a soldering iron
			Third hand (helping hand)
			Adhesive putty
			Wire cutters
			Wire strippers
			Needle-nosed pliers
			Solder sucker
			Solder wick
			Equipment wire
		Staying Safe while Soldering
			Handling your soldering iron
			Keeping your eyes protected
			Working in a ventilated environment
			Cleaning your iron
			Don’t eat the solder!
		Assembling a Shield
			Laying out all the pieces of the circuit
			Header pins
		Acquiring Your Soldering Technique
		Building Your Circuit
			Knowing your circuit
			Laying out your circuit
			Preparing your wire
			Soldering your circuit
			Cleaning up
			Testing your shield
		Packaging Your Project
			Securing the board and other elements
	Chapter 10 Getting Clever with Code
		Blinking Better
			Setting up the BlinkWithoutDelay sketch
			Understanding the BlinkWithoutDelay sketch
		Taking the Bounce Out of Your Button
			Setting up the Debounce sketch
			Understanding the Debounce sketch
		Making a Better Button
			Setting up the StateChangeDetection sketch
			Understanding the StateChangeDetection sketch
		Smoothing Your Sensors
			Setting up the Smoothing sketch
			Understanding the Smoothing sketch
		Calibrating Your Inputs
			Setting up the Calibration sketch
			Understanding the Calibration sketch
	Chapter 11 Common Sense with Common Sensors
		Making Buttons Easier
			Implementing the DigitalInputPullup sketch
			Understanding the DigitalInputPullup sketch
		Exploring Piezo Sensors
			Implementing the Knock sketch
			Understanding the Knock sketch
		Utilizing Pressure, Force, and Load Sensors
			Implementing the toneKeyboard sketch
			Understanding the toneKeyboard sketch
		Sensing with Style
			Implementing the CapPinSketch sketch
			Understanding the CapPinSketch sketch
		Tripping Along with Lasers
			Implementing the AnalogInOutSerial sketch
			Understanding the AnalogInOutSerial sketch
		Detecting Movement
			Implementing the DigitalReadSerial sketch
			Understanding the DigitalReadSerial sketch
		Measuring Distance
			Implementing the MaxSonar sketch
			Understanding the MaxSonar sketch
		Testing, Testing . . . Can Anybody Hear This?
			Implementing the AnalogInOutSerial sketch
			Understanding the AnalogInOutSerial sketch
	Chapter 12 Becoming a Specialist with Shields and Libraries
		Looking at Shields
			Considering combinations
			Reviewing the field
			Staying current
		Browsing the Libraries
			Reviewing the standard libraries
			Installing additional libraries
			Obtaining contributed libraries
Part 4 Sussing Out Software
	Chapter 13 Getting to Know Processing
		Looking Under the Hood
			Installing Processing
			Taking a look at Processing
		Trying Your First Processing Sketch
			Drawing shapes
			Changing color and opacity
			Playing with interaction
	Chapter 14 Processing the Physical World
		Making a Virtual Button
			Setting up the Arduino code
			Setting up the Processing code
			Understanding the Processing PhysicalPixel sketch
			Understanding the Arduino PhysicalPixel sketch
		Drawing a Graph
			Setting up the Arduino code
			Setting up the Processing code
			Understanding the Arduino Graph sketch
			Understanding the Processing Graph sketch
		Sending Multiple Signals
			Setting up the Arduino code
			Setting up the Processing code
			Understanding the Arduino SerialCallResponse sketch
			Understanding the Processing SerialCallResponse sketch
Part 5 The Part of Tens
	Chapter 15 Ten Places to Learn More about Arduino
		Arduino Blog
		Hack a Day
		Friends, Colleagues, and Workshops
	Chapter 16 Ten Great Shops to Know
		Arduino Store
		Seeed Studio
		Allied Electroncs
		Newark Electronics
		Dumpster Diving
Document Text Contents
Page 2

2nd Edition

by John Nussey

Page 200

CHAPTER 9 Soldering On 185

you’re soldering in place on one side of the board, leaving you free to work on the
other side of the board without the components or circuit board moving. You can
also use the adhesive putty to tack your work to your work surface, stopping it
from moving around the surface as you solder. After the solder joints are done, you
remove the adhesive putty, which you can reuse. Note that putty goes extremely
soft if it is heated and takes a while to return to its usual tackiness. After it cools,
you can roll the ball of putty along the circuit board to remove any remaining bits.

Wire cutters
A good pair of wire cutters or snips is invaluable. Many pairs of wire cutters have
a rounded, claw-like shape. These are tough but can be difficult to use when cut-
ting in confined spaces or pinpointing a specific wire. Precision wire cutters have
a more precise, pointed shape that is far more useful for the vast majority of elec-
tronics work.

Note that wire cutters are good for soft metal such as copper but do not stand up
to tougher metals such as paper clips or staples. Figure 9-7 shows a pair of pointed
wire cutters.

Give the man

a hand!

Page 201

186 PART 3 Building on the Basics

Wire strippers
To connect wires to your project, you need to strip back the plastic insulation. You
can do this stripping with a knife if you’re careful or don’t value your fingertips,
but the quickest, easiest, and safest way to strip a wire is to use a wire stripper.
The two kinds of wire strippers are manual and mechanical (see Figure  9-8).
Manual wire strippers are like clippers but have semicircular notches made to
various diameters. When the wire stripper is closed on wire, it cuts just deep
enough to cut through the plastic sheath but stops before it hits the wire. Mechan-
ical wire strippers work with a trigger action to remove the insulation on the wire
without any need to pull on the wire.

Pointed wire

cutters are good
for getting

into and out of
tight spots.

Manual and

mechanical wire

Page 400

About the Author
John Nussey is an entrepreneur, designer, and technologist based in London.

His work involves using technology in new and interesting ways and covers many
areas, including electronics, physical computing, product prototyping, product
design and the Internet of Things.

During his career, he has worked on many varied projects with clients such as
ARUP, the BBC and the National Maritime Museum. He has also founded compa-
nies, including ONN Studio, which helps people realize their product ideas, and
Ding, which makes beautiful smart-home products.

He is a proud advocate of Arduino and has taught the craft of interaction design
and prototyping to people of all ages, competencies, and abilities at a variety of
establishments, including Goldsmiths College, the Bartlett School of Architecture,
and the Royal College of Art.

To Avril O’Neil, the love of my life (and only person I trust with a soldering iron),
for sharing so many experiences with me and providing support when I need it
most; to Roanne O’Neil for our stimulating literary chats; and to Alexandra
Deschamps-Sonsino and Massimo Banzi for introducing me to Arduino, which
has allowed me to pursue such a varied and exciting career.

Author’s Acknowledgments
I would like to thank the folks at Wiley, especially Susan Pink and Katie Mohr for
always being upbeat and encouraging.

Many thanks to Guy Hart-Davis for his excellent technical editing.

A big thanks to my friends, my family, and the Arduino For Dummies readers I’ve
met since 2013,for their encouragement and enthusiasm. I love making things,
and I hope this book inspires you to make things of your own and find the same
passion I have found.

Page 401

Publisher’s Acknowledgments

Executive Editor: Katie Mohr

Project Editor: Susan Pink

Copy Editor: Susan Pink

Technical Editor: Guy Hart-Davis

Editorial Assistant: Matthew Lowe

Sr. Editorial Assistant: Cherie Case

Production Editor: Siddique Shaik

Cover Image: Courtesy of John Nussey

Similer Documents