Getting Started with Arduino: The Open Source Electronics Prototyping Platform [Third edition] 9781449363338, 1449363334

Arduino is the open source electronics prototyping platform that has taken the Maker Movement by storm. This thorough in

853 127 2MB

English Pages 245 pages: illustrations; 22 cm [262] Year 2014;2015

Report DMCA / Copyright

DOWNLOAD FILE

Getting Started with Arduino: The Open Source Electronics Prototyping Platform [Third edition]
 9781449363338, 1449363334

Table of contents :
Copyright......Page 4
Table of Contents......Page 5
Preface to the Second Edition......Page 9
Acknowledgments for Michael Shiloh......Page 12
Conventions Used in This Book......Page 13
Safari® Books Online......Page 14
How to Contact Us......Page 15
Chapter 1. Introduction......Page 17
Intended Audience......Page 18
What Is Physical Computing?......Page 19
Prototyping......Page 21
Tinkering......Page 22
Patching......Page 23
Circuit Bending......Page 25
Keyboard Hacks......Page 27
We Love Junk!......Page 28
Hacking Toys......Page 29
Collaboration......Page 30
The Arduino Hardware......Page 31
The Software Integrated Development Environment (IDE)......Page 34
Configuring the Drivers: Macintosh......Page 35
Port Identification: Macintosh......Page 36
Configuring the Drivers: Windows......Page 37
Port Identification: Windows......Page 38
Sensors and Actuators......Page 41
Blinking an LED......Page 42
Arduino Is Not for Quitters......Page 47
The Code, Step by Step......Page 48
What We Will Be Building......Page 52
What Is Electricity?......Page 53
Using a Pushbutton to Control the LED......Page 56
How Does This Work?......Page 60
One Circuit, a Thousand Behaviours......Page 61
Trying Out Other On/Off Sensors......Page 69
Controlling Light with PWM......Page 72
Use a Light Sensor Instead of the Pushbutton......Page 80
Analogue Input......Page 82
Try Other Analogue Sensors......Page 85
Serial Communication......Page 86
Driving Bigger Loads (Motors, Lamps, and the Like)......Page 88
Complex Sensors......Page 90
How Is This Arduino Different from All Other Arduinos?......Page 93
Other Differences Between the Arduino Leonardo and the Arduino Uno......Page 94
Leonardo Keyboard Message Example......Page 96
How Does This Work?......Page 98
Leonardo Button Mouse Control Example......Page 99
How Does This Work?......Page 102
More Leonardo Differences......Page 103
Chapter 7. Talking to the Cloud......Page 107
Planning......Page 109
Coding......Page 110
Assembling the Circuit......Page 117
Here’s How to Assemble It......Page 119
Chapter 8. Automatic Garden-Irrigation System......Page 121
Planning......Page 123
Testing the Real Time Clock (RTC)......Page 126
Testing the Relays......Page 132
Electronic Schematic Diagrams......Page 135
Testing the Temperature and Humidity Sensor......Page 148
Setting the On and Off Times......Page 153
Assembling the Circuit......Page 174
Laying Out Your Project on the Proto Shield......Page 180
Irrigation Project Shopping List......Page 207
Understanding......Page 209
Testing the Arduino Board......Page 210
Testing Your Breadboarded Circuit......Page 212
Isolating Problems......Page 214
Problems with the IDE on Windows......Page 215
Identifying the Arduino COM Port on Windows......Page 216
Other Debugging Techniques......Page 217
How to Get Help Online......Page 219
Appendix A. The Breadboard......Page 223
Appendix B. Reading Resistors and Capacitors......Page 227
Special Symbols......Page 231
Variables......Page 232
Control Structures......Page 235
Arithmetic and Formulas......Page 238
Boolean Operators......Page 239
Input and Output Functions......Page 240
Time Functions......Page 242
Math Functions......Page 243
Random Number Functions......Page 245
Serial Communication......Page 246
Appendix D. Reading Schematic Diagrams......Page 249
Index......Page 253

Polecaj historie