Learn Electronics with Arduino.pdf

(20138 KB) Pobierz
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
TECHnoLogY in ACTion
Learn
Electronics
with Arduino
Learn eLectronics concepts whiLe
buiLding practicaL devices and cooL
toys with arduino.
Don Wilcher
880356991.012.png 880356991.013.png 880356991.014.png 880356991.015.png 880356991.001.png 880356991.002.png 880356991.003.png
 
For your convenience Apress has placed some of the front
matter material after the index. Please use the Bookmarks
and Contents at a Glance links to access them.
880356991.004.png 880356991.005.png
Contents at a Glance
Foreword ..................................................................................................................... xiii
About the Author ......................................................................................................... xv
About the Technical Reviewer .................................................................................... xvii
Acknowledgments ....................................................................................................... xix
Introduction ................................................................................................................. xxi
Chapter 1: Electronic Singing Bird
.............................................................................. 1
Chapter 2: Mini Digital Roulette Games
..................................................................... 27
Chapter 3: An Interactive Light Sequencer Device
.................................................... 51
Chapter 4: Physical Computing and DC Motor Control
.............................................. 69
Chapter 5: Motion Control with an Arduino: Servo and Stepper
Motor Controls ......................................................................................... 89
Chapter 6: The Music Box
........................................................................................ 119
Chapter 7: Fun with Haptics
.................................................................................... 149
Chapter 8: LCDs and the Arduino
............................................................................. 179
Chapter 9: A Logic Checker
..................................................................................... 205
Chapter 10: Man, It’s Hot: Temperature Measurement and Control
......................... 227
Index........................................................................................................................... 251
v
880356991.006.png 880356991.007.png 880356991.008.png 880356991.009.png
Introduction
Have you ever wondered how electronic products are created? Do you have an idea for a new electronic gadget
but no way of testing the feasibility of the device? Have you accumulated a junk box of electronic parts and
now wonder what to build with them? Well, this book will answer all your questions about discovering cool
and innovative applications for electronic gadgets using the Arduino. he book makes use of the Arduino
plus discrete, integrated circuit components and solderless breadboards. Multisim software is used for circuit
simulation and design equations.
Who Should Read This Book?
his book is for anyone interested in building cool Arduino electronic gadgets using simple prototyping
techniques.
How This Book Is Structured
he chapters in this book are organized in such a way that the reader can choose to jump around the projects and
discovery labs. Each chapter gives an introduction to the relevant key electronics components and supporting
technologies. Also, each chapter explains the basic theory of operation of the electronic circuits with detailed
circuit schematic diagrams. Build instructions with troubleshooting tips are included to help you detect and
x hardware/software bugs for each project. Last but not least, each chapter zooms in on a specic aspect of
electronics technology followed by several semiconductor device-specic experiments. he experiments will
help you understand the semiconductor device’s electrical behavior as well as the setup of basic electronic test
equipment and the Arduino software IDE tool via sketches.
You’ll be introduced to circuit analysis techniques and the Discovery Method, which ofers suggestions for
further fun ways of learning about electronics technology. he goal of these hands-on activities is to encourage
readers (whether inventors, engineers, educators, or students) to develop skills in engineering their own cool
gadgets using simple prototyping techniques.
Downloading the Code
he code for the examples shown in this book is available on the Apress web site, www.apress.com . A link can be
found on the book’s information page under the Source Code/Downloads tab. his tab is located underneath the
Related Titles section of the page.
Contacting the Author
Should you have any questions or comments—or if you spot a mistake—please contact the author at
author@writing.com .
xxi
880356991.010.png
Chapter 1
Electronic Singing Bird
he Arduino is a small yet powerful computer board that uses physical computing techniques with an Atmel
microcontroller (processing development environment) and the C programming language. To illustrate the
versatility of the Arduino in turning ordinary electronic circuits into cool smart devices, I will show how to make
an interactive electronic singing bird in this chapter. he required parts are pictured in Figure 1-1 .
Parts List
Arduino Duemilanove or equivalent
0.047uF capacitor
0.1uF capacitor
470uF electrolytic capacitor
1 K resistor
50 K trimmer potentiometer
Audio transformer
2N3906 PNP transistor
2N3904 NPN transistor
5VDC relay
1 N4001 silicon diode
100W resistor
8W speaker
Cadmium sulde (CdS) photocell
1 small solderless breadboard
22 AWG solid wire
Digital multimeter
Oscilloscope (optional)
Electronic tools
1
880356991.011.png
Zgłoś jeśli naruszono regulamin