Muutke küpsiste eelistusi

Arduino Workshop, 2nd Edition: A Hands-on Introduction with 65 Projects [Pehme köide]

  • Formaat: Paperback / softback, 432 pages, kõrgus x laius: 234x177 mm
  • Ilmumisaeg: 27-May-2021
  • Kirjastus: No Starch Press,US
  • ISBN-10: 1718500580
  • ISBN-13: 9781718500587
Teised raamatud teemal:
  • Formaat: Paperback / softback, 432 pages, kõrgus x laius: 234x177 mm
  • Ilmumisaeg: 27-May-2021
  • Kirjastus: No Starch Press,US
  • ISBN-10: 1718500580
  • ISBN-13: 9781718500587
Teised raamatud teemal:
Long-awaited revision of this best-selling book on the Arduino electronics platform (35,000+ copies sold). Readers gain an in-depth understanding of the Arduino -- beyond just making simple projects.

This long-awaited second edition of the best-selling Arduino Workshop (over 35,000 copies sold) goes beyond making simple projects to teach beginners how to use the Arduino, in-depth. Arduino Workshop is loved by readers because it focuses on learning how the board works rather than simply making a series of canned projects. All code is explained with the goal of taking readers to the point where they can invent their own projects rather than simply build existing ones. The book's 65+ hands-on projects reinforce the learning, increasing in complexity and sophistication as the book progresses. Readers apply their knowledge to build projects like a digital thermometer, a GPS logger that records travel data, a keypad-controlled lock that requires a secret code to open, and a motorized remotely controlled tank with collision detection to keep it from crashing. This second edition has been updated to cover updates to the Arduino software and hardware and diagrams and photos to make sure that the discussion and explanations are always clear.

Arvustused

Reviews for the first edition of Arduino Workshop:

"When it comes to technology, there's really something to be said for learning by example, and with each key point focused around a specific project, the information in this book is easy to learn and retain." Dave Rankin, About.com Open Source

"Arduino Workshop was the first book Ive read that helped me really make sense of the practical applications the Arduino is capable of." AmateurRadio.com 

"A very thorough primer for those wishing to jump on the [ Arduino] bandwagon." Kevin Wierzbicki, Campus Circle

"Ive checked out several Arduino primers, and found the best one for my purposes to be Arduino Workshop: A Hands-On Introduction with 65 Projects by John Boxall." Jeff Rowe, MCADCafe.com Blog

"A good book for getting started . . . I highly recommend it if youre thinking about getting into Arduino projects and youre brand new to this stuff." Nathan Yau, FlowingData

Acknowledgments xxii
1 Getting Started
1(8)
The Possibilities Are Endless
2(2)
Strength in Numbers
4(1)
Parts and Accessories
4(1)
Required Software
5(3)
macOS
6(1)
Windows 10
7(1)
Ubuntu Linux
7(1)
Using Arduino Safely
8(1)
Looking Ahead
8(1)
2 Exploring The Arduino Board And The IDE
9(14)
The Arduino Board
9(5)
Taking a Look Around the IDE
14(2)
The Command Area
14(2)
The Text Area
16(1)
The Output Window
16(1)
Creating Your First Sketch in the IDE
16(1)
Comments
17(1)
The setup)) Function
18(1)
Controlling the Hardware
18(1)
The loop() Function
18(2)
Verifying Your Sketch
20(1)
Uploading and Running Your Sketch
20(1)
Modifying Your Sketch
21(1)
Looking Ahead
21(2)
3 First Steps
23(1)
Planning Your Projects
24(1)
About Electricity
24(1)
Current
24(1)
Voltage
25(1)
Power
25(1)
Electronic Components
25(8)
The Resistor
25(4)
The Light-Emitting Diode
29(2)
The Solderless Breadboard
31(2)
Project #1 Creating a Blinking LED Wave
33(2)
The Algorithm
33(1)
The Hardware
33(1)
The Schematic
33(1)
The Sketch
34(1)
Running the Sketch
35(1)
Using Variables
35(1)
Project #2 Repeating with for Loops
36(1)
Varying LED Brightness with Pulse-Width Modulation
37(1)
Project #3 Demonstrating PWM
38(1)
More Electric Components
39
The Transistor
39(1)
The Rectifier Diode
40(1)
The Relay
41(1)
Higher-Voltage Circuits
41(2)
Looking Ahead
43(2)
4 Building Blocks
45(38)
Using Schematic Diagrams
46(4)
Identifying Components
46(2)
Wires in Schematics
48(1)
Dissecting a Schematic
49(1)
The Capacitor
50(3)
Measuring the Capacity of a Capacitor
51(1)
Reading Capacitor Values
51(1)
Types of Capacitors
51(2)
Digital Inputs
53(2)
Project #4 Demonstrating a Digital Input
55(7)
The Algorithm
55(1)
The Hardware
55(1)
The Schematic
55(4)
The Sketch
59(1)
Understanding the Sketch
60(1)
Modifying Your Sketch: Making More Decisions with if-else
61(1)
Boolean Variables
62(2)
Comparison Operators
62(1)
Making Two or More Comparisons
63(1)
Project #5 Controlling Traffic
64(5)
The Goal
64(1)
The Algorithm
64(1)
The Hardware
64(1)
The Schematic
65(1)
The Sketch
66(2)
Running the Sketch
68(1)
Analog vs. Digital Signals
69(1)
Project #6 Creating a Single-Cell Battery Tester
70(3)
The Goal
70(1)
The Algorithm
70(1)
The Hardware
71(1)
The Schematic
71(1)
The Sketch
72(1)
Doing Arithmetic with an Arduino
73(1)
Float Variables
73(1)
Comparison Operators for Calculations
73(1)
Improving Analog Measurement Precision with a Reference Voltage
73(2)
Using an External Reference Voltage
74(1)
Using the Internal Reference Voltage
75(1)
The Variable Resistor
75(2)
Piezoelectric Buzzers
77(1)
Piezo Schematic
77(1)
Project #7 Trying Out a Piezo Buzzer
78(1)
Project #8 Creating a Quick-Read Thermometer
79(3)
The Goal
80(1)
The Hardware
80(1)
The Schematic
80(1)
The Sketch
81(1)
Looking Ahead
82(1)
5 Working With Functions
83(16)
Project #9 Creating a Function to Repeat an Action
84(1)
Project #10 Creating a Function to Set the Number of Blinks
85(1)
Creating a Function to Return a Value
86(1)
Project #11 Creating a Quick-Read Thermometer That Blinks the Temperature
86(3)
The Hardware
87(1)
The Schematic
87(1)
The Sketch
88(1)
Displaying Data from the Arduino in the Serial Monitor
89(2)
The Serial Monitor
89(2)
Project #12 Displaying the Temperature in the Serial Monitor
91(2)
Debugging with the Serial Monitor
92(1)
Making Decisions with while Statements
93(1)
While
93(1)
Do-While
93(1)
Sending Data from the Serial Monitor to the Arduino
93(1)
Project #13: Multiplying a Number by Two
94(1)
Long Variables
95(1)
Project #14 Using long Variables
95(2)
Looking Ahead
97(2)
6 Numbers, Variables, And Arithmetic
99(26)
Generating Random Numbers
100(1)
Using Ambient Current to Generate a Random Number
100(1)
Project #15 Creating an Electronic Die
101(3)
The Hardware
101(1)
The Schematic
102(1)
The Sketch
102(2)
Modifying the Sketch
104(1)
A Quick Course in Binary
104(2)
Binary Numbers
104(1)
Byte Variables
105(1)
Increasing Digital Outputs with Shift Registers
106(1)
Project #16 Creating an LED Binary Number Display
107(3)
The Hardware
107(1)
The Schematic
107(2)
The Sketch
109(1)
Project #17 Making a Binary Quiz Game
110(2)
The Algorithm
110(1)
The Sketch
110(2)
Arrays
112(2)
Defining an Array
113(1)
Referring to Values in an Array
113(1)
Writing to and Reading from Arrays
113(1)
Seven-Segment LED Displays
114(3)
Controlling the LED
115(2)
Project #18 Creating a Single-Digit Display
117(2)
The Hardware
117(1)
The Schematic
117(1)
The Sketch
117(2)
Modifying the Sketch: Displaying Double Digits
119(1)
Project #19 Controlling Two Seven-Segment LED Display Modules
119(3)
The Hardware
119(1)
The Schematic
119(1)
Modulo
120(2)
Project #20 Creating a Digital Thermometer
122(1)
The Hardware
122(1)
The Sketch
122(1)
Looking Ahead
123(2)
7 Expanding Your Arduino
125(28)
Shields
126(2)
ProtoShields
128(1)
Project #21 Creating a Custom Shield
129(4)
The Hardware
129(1)
The Schematic
129(1)
The Layout of the ProtoShield Board
130(1)
The Desi gn
130(1)
Soldering the Components
131(2)
Testing Your ProtoShield
133(1)
Expanding Sketches with Libraries
133(4)
Downloading an Arduino Library as a ZIP File
134(2)
Importing an Arduino Library with Library Manager
136(1)
SD Memory Cards
137(3)
Connecting the Card Module
138(1)
Testing Your SD Card
139(1)
Project #22 Writing Data to the Memory Card
140(2)
The Sketch
140(2)
Project #23 Creating a Temperature-Logging Device
142(2)
The Hardware
42(100)
The Sketch
142(2)
Timing Applications with millis() and micros))
144(2)
Project #24 Creating a Stopwatch
146(1)
The Hardware
146(1)
The Schematic
147(1)
The Sketch
147(1)
Interrupts
148(2)
Interrupt Modes
150(1)
Configuring Interrupts
150(1)
Activating or Deactivating Interrupts
150(1)
Project #25 Using Interrupts
151(1)
The Sketch
151(1)
Looking Ahead
152(1)
8 Led Numeric Displays And Matrices
153(14)
LED Numeric Displays
154(4)
Installing the Library
155(3)
Project #26 Digital Stopwatch
158(2)
Project #27 Using LED Matrix Modules
160(6)
Installing the Library
161(3)
Editing the Display Font
164(2)
Looking Ahead
166(1)
9 Liquid Crystal Displays
167(18)
Character LCD Modules
167(5)
Using a Character LCD in a Sketch
169(1)
Displaying Text
170(1)
Displaying Variables or Numbers
171(1)
Project #28 Defining Custom Characters
172(1)
Graphic LCD Modules
173(3)
Connecting the Graphic LCD
174(1)
Using the LCD
174(1)
Controlling the Display
174(2)
Project #29 Seeing the Text Functions in Action
176(1)
The Sketch
176(1)
Running the Sketch
177(1)
Creating More Complex Display Effects with Graphic Functions
177(2)
Project #30 Seeing the Graphic Functions in Action
179(2)
The Sketch
179(2)
Project #31 Creating a Temperature History Monitor
181(3)
The Algorithm
181(1)
The Hardware
181(1)
The Sketch
182(2)
Running the Sketch
184(1)
Modifying the Sketch
184(1)
Looking Ahead
184(1)
10 Creating Your Own Arduino Libraries
185(18)
Creating Your First Arduino Library
186(4)
Anatomy of an Arduino Library
187(1)
The Header File
187(1)
The Source File
188(1)
The KEYWORDS.TXT File
189(1)
Installing Your New Arduino Library
190(5)
Creating a ZIP File Using Windows 7 and Later
190(2)
Creating a ZIP File Using Mac OS X or Later
192(1)
Installing Your New Library
193(2)
Creating a Library That Accepts Values to Perform a Function
195(2)
Creating a Library That Processes and Displays Sensor Values
197(5)
Looking Ahead
202(1)
11 Numeric Keypads
203(8)
Using a Numeric Keypad
203(3)
Wiring a Keypad
204(1)
Programming for the Keypad
205(1)
Testing the Sketch
206(1)
Making Decisions with switch case
206(1)
Project #32 Creating a Keypad-Controlled Lock
207(3)
The Sketch
207(2)
Understanding the Sketch
209(1)
Testing the Sketch
209(1)
Looking Ahead
210(1)
12 Accepting User Input With Touchscreens
211(12)
Touchscreens
211(2)
Connecting the Touchscreen
212(1)
Project #33 Addressing Areas on the Touchscreen
213(2)
The Hardware
213(1)
The Sketch
213(1)
Testing the Sketch
214(1)
Mapping the Touchscreen
215(1)
Project #34 Creating a Two-Zone On/Off Touch Switch
215(3)
The Sketch
216(1)
Understanding the Sketch
217(1)
Testing the Sketch
218(1)
Using the map() Function
218(1)
Project #35 Creating a Three-Zone Touch Switch
218(3)
The Touchscreen Map
219(1)
The Sketch
219(2)
Understanding the Sketch
221(1)
Looking Ahead
221(2)
13 Meet The Arduino Family
223(18)
Project #36 Creating Your Own Breadboard Arduino
224(9)
The Hardware
224(3)
The Schematic
227(3)
Running the Sketch
230(3)
The Many Arduino and Alternative Boards
233(7)
Arduino Uno
235(1)
Freetronics Eleven
235(1)
The Adafruit Pro Trinket
236(1)
The Arduino Nano
236(1)
The LilyPad
237(1)
The Arduino Mega 2560
237(1)
The Freetronics EtherMega
238(1)
The Arduino Due
238(2)
Looking Ahead
240(1)
14 Motors And Movement
241(36)
Making Small Motions with Servos
241(3)
Selecting a Servo
242(1)
Connecting a Servo
243(1)
Putting a Servo to Work
243(1)
Project #37 Building an Analog Thermometer
244(3)
The Hardware
244(1)
The Schematic
245(1)
The Sketch
245(2)
Using Electric Motors
247(1)
Selecting a Motor
247(1)
The TIP 120 Darlington Transistor
247(1)
Project #38 Controlling the Motor
248(3)
The Hardware
248(1)
The Schematic
249(1)
The Sketch
250(1)
Using Small Stepper Motors
251(3)
Project #39 Building and Controlling a Robot Vehicle
254(8)
The Hardware
255(1)
The Schematic
256(1)
Connecting the Motor Shield
257(1)
The Sketch
258(4)
Connecting Extra Hardware to the Robot
262(1)
Sensing Collisions
262(1)
Project #40 Detecting Robot Vehicle Collisions with a Microswitch
262(1)
The Schematic
263(1)
The Sketch
264(2)
Infrared Distance Sensors
266(1)
Wiring It Up
266(1)
Testing the IR Distance Sensor
267(2)
Project #41 Detecting Robot Vehicle Collisions with an IR Distance Sensor
269(2)
The Sketch
269(2)
Modifying the Sketch: Adding More Sensors
271(1)
Ultrasonic Distance Sensors
271(2)
Connecting the Ultrasonic Sensor
272(1)
Testing the Ultrasonic Sensor
272(1)
Project #42 Detecting Collisions with an Ultrasonic Distance Sensor
273(2)
The Sketch
273(2)
Looking Ahead
275(2)
15 Using Gps With Your Arduino
277(14)
What Is GPS?
278(2)
Testing the GPS Shield
280(1)
Project #43 Creating a Simple GPS Receiver
281(3)
The Hardware
282(1)
The Sketch
282(1)
Running the Sketch
283(1)
Project #44 Creating an Accurate GPS-Based Clock
284(2)
The Hardware
284(1)
The Sketch
284(2)
Project #45 Recording the Position of a Moving Object over Time
286(4)
The Hardware
286(1)
The Sketch
286(3)
Running the Sketch
289(1)
Looking Ahead
290(1)
16 Wireless Data
291(24)
Using Low-Cost Wireless Modules
291(2)
Project #46 Creating a Wireless Remote Control
293(5)
The Transmitter Circuit Hardware
293(1)
The Transmitter Schematic
293(1)
The Receiver Circuit Hardware
294(1)
The Receiver Schematic
294(2)
The Transmitter Sketch
296(1)
The Receiver Sketch
297(1)
Using LoRa Wireless Data Modules for Greater Range and Faster Speed
298(1)
Project #47 Remote Control over LoRa Wireless
299(5)
The Transmitter Circuit Hardware
299(1)
The Transmitter Schematic
299(2)
The Receiver Circuit Hardware
301(1)
The Receiver Schematic
301(1)
The Transmitter Sketch
302(1)
The Receiver Sketch
303(1)
Project #48 Remote Control over LoRa Wireless with Confirmation
304(5)
The Transmitter Circuit Hardware
304(1)
The Transmitter Schematic
305(1)
The Transmitter Sketch
306(1)
The Receiver Sketch
307(2)
Project #49 Sending Remote Sensor Data Using LoRa Wireless
309(5)
The Transmitter Circuit Hardware
309(1)
The Receiver Circuit Hardware
309(1)
The Receiver Schematic
309(1)
The Transmitter Sketch
310(2)
The Receiver Sketch
312(2)
Looking Ahead
314(1)
17 Infrared Remote Control
315(10)
What Is Infrared?
315(1)
Setting Up for Infrared
316(2)
The IR Receiver
316(1)
The Remote Control
316(1)
A Test Sketch
317(1)
Testing the Setup
317(1)
Project #50 Creating an IR Remote Control Arduino
318(3)
The Hardware
319(1)
The Schematic
319(1)
The Sketch
320(1)
Modifying the Sketch
321(1)
Project #51 Creating an IR Remote Control Robot Vehicle
321(3)
The Hardware
321(1)
The Sketch
321(3)
Looking Ahead
324(1)
18 Reading RFID Tags
325(12)
Inside RFID Devices
326(1)
Testing the Hardware
327(1)
The Schematic
327(1)
Testing the Schematic
327(1)
The Test Sketch
327(1)
Displaying the RFID Tag ID Number
328(1)
Project #52 Creating a Simple RFID Control System
328(3)
The Sketch
329(1)
Understanding the Sketch
330(1)
Storing Data in the Arduino's Built-in EEPROM
331(2)
Reading and Writing to the EEPROM
332(1)
Project #53 Creating an RFID Control with "Last Action" Memory
333(3)
The Sketch
333(3)
Understanding the Sketch
336(1)
Looking Ahead
336(1)
19 Data buses
337(14)
The I2C Bus
338(1)
Project #54 Using an External EEPROM
339(4)
The Hardware
340(1)
The Schematic
340(1)
The Sketch
341(1)
Running the Sketch
342(1)
Project #55 Using a Port Expander IC
343(3)
The Hardware
343(1)
The Schematic
343(2)
The Sketch
345(1)
The SPI Bus
346(2)
Pin Connections
346(1)
Implementing the SPI
346(1)
Sending Data to an SPI Device
347(1)
Project #56 Using a Digital Rheostat
348(2)
The Hardware
348(1)
The Schematic
348(1)
The Sketch
349(1)
Looking Ahead
350(1)
20 Real-Time Clocks
351(16)
Connecting the RTC Module
352(1)
Project #57 Adding and Displaying Time and Date with an RTC
352(4)
The Hardware
352(1)
The Sketch
353(2)
Understanding and Running the Sketch
355(1)
Project #58 Creating a Simple Digital Clock
356(4)
The Hardware
356(1)
The Sketch
357(2)
Understanding and Running the Sketch
359(1)
Project #59 Creating an RFID Time-Clock System
360(5)
The Hardware
360(1)
The Sketch
361(3)
Understanding the Sketch
364(1)
Looking Ahead
365(2)
21 The Internet
367(14)
What You'll Need
367(2)
Project #60 Building a Remote Monitoring Station
369(4)
The Hardware
369(1)
The Sketch
369(3)
Troubleshooting
372(1)
Understanding the Sketch
372(1)
Project #61 Creating an Arduino Tweeter
373(2)
The Hardware
373(1)
The Sketch
373(2)
Controlling Your Arduino from the Web
375(1)
Project #62 Setting Up a Remote Control for Your Arduino
375(4)
The Hardware
376(1)
The Sketch
377(1)
Controlling Your Arduino Remotely
377(2)
Looking Ahead
379(2)
22 Cellular Communications
381(14)
The Hardware
382(3)
Hardware Configuration and Testing
383(2)
Project #63 Building an Arduino Dialer
385(3)
The Hardware
386(1)
The Schematic
386(1)
The Sketch
387(1)
Understanding the Sketch
387(1)
Project #64 Building an Arduino Texter
388(2)
The Sketch
388(1)
Understanding the Sketch
389(1)
Project #65 Setting Up an SMS Remote Control
390(3)
The Hardware
390(1)
The Schematic
390(1)
The Sketch
391(2)
Understanding the Sketch
393(1)
Looking Ahead
393(2)
Index 395
John Boxall has been an electronics enthusiast for over thirty years, spending much of that time in the electronics retail, wholesale, and consulting fields. He also spent several years writing Arduino tutorials, projects, and reviews of kits and accessories for tronixstuff. Arduino Workshop was his first book.