更新时间:2021-07-23 20:45:24
coverpage
Arduino Essentials
Credits
About the Author
About the Reviewer
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Disclaimer
Chapter 1. Meeting the Arduino Family
A game changer
Common features
Just one to rule them all
Users teaching users
Summary
Chapter 2. The Arduino Development Environment
A multiplatform tool
Downloading the package
Installing the software
Installing the drivers
Running the Arduino development environment for the first time
Preflight checks
Uploading our first sketch
Main menus and commands
The Arduino language
Chapter 3. Interacting with the Environment the Digital Way
Digital versus analog signals
Our first circuit
Chapter 4. Controlling Outputs Softly with Analog Outputs
Dealing with analog signals
The analog output circuit
Connections diagram
Analog control through code
Motor control with a transistor
Chapter 5. Sensing the Real World through Digital Inputs
Sensing by using inputs
Connecting a button as a digital input
The momentary push button
Complete circuit schematic
Breadboard connections diagram
Writing code to react to a press
Timing and debouncing
Other types of digital sensors
Using an optocoupler as a coin detector
The schematic of the coin detector
The breadboard connections diagram
The complete example code
A real working project
Chapter 6. Analog Inputs to Feel Between All and Nothing
Sensing analog values
The Arduino map function
An ambient light meter
An ambient light meter circuit
DC motor speed control revisited
Chapter 7. Managing the Time Domain
Time control functions
Making some noise
A bigger project – a metronome
Chapter 8. Communicating with Others
Serial communications concepts
Other types of serial communication
Calibrating sensors serially
Sending data to Arduino
A computer connected dial thermometer
Chapter 9. Dealing with Interrupts
The concept of an interruption
The tachograph project
A dial tachograph
Chapter 10. Arduino in a Real Case – Greenhouse Control
A greenhouse controller
The greenhouse controller code
Index