Home Page Icon
Home Page
Table of Contents for
Title Page
Close
Title Page
by
Arduino Workshop, 2nd Edition
Reviews for the first edition of Arduino Workshop
Title Page
Copyright
Dedication
About the Author
Acknowledgments
Chapter 1: Getting Started
The Possibilities Are Endless
Strength in Numbers
Parts and Accessories
Required Software
macOS
Windows 10
Ubuntu Linux
Using Arduino Safely
Looking Ahead
Chapter 2: Exploring the Arduino Board and the IDE
The Arduino Board
Taking a Look Around the IDE
The Command Area
The Text Area
The Output Window
Creating Your First Sketch in the IDE
Comments
The setup() Function
Controlling the Hardware
The loop() Function
Verifying Your Sketch
Uploading and Running Your Sketch
Modifying Your Sketch
Looking Ahead
Chapter 3: First Steps
Planning Your Projects
About Electricity
Current
Voltage
Power
Electronic Components
The Resistor
The Light-Emitting Diode
The Solderless Breadboard
Project #1: Creating a Blinking LED Wave
The Algorithm
The Hardware
The Schematic
The Sketch
Running the Sketch
Using Variables
Project #2: Repeating with for Loops
Varying LED Brightness with Pulse-Width Modulation
Project #3: Demonstrating PWM
More Electric Components
The Transistor
The Rectifier Diode
The Relay
Higher-Voltage Circuits
Looking Ahead
Chapter 4: Building Blocks
Using Schematic Diagrams
Identifying Components
Wires in Schematics
Dissecting a Schematic
The Capacitor
Measuring the Capacity of a Capacitor
Reading Capacitor Values
Types of Capacitors
Digital Inputs
Project #4: Demonstrating a Digital Input
The Algorithm
The Hardware
The Schematic
The Sketch
Understanding the Sketch
Modifying Your Sketch: Making More Decisions with if-else
Boolean Variables
Comparison Operators
Making Two or More Comparisons
Project #5: Controlling Traffic
The Goal
The Algorithm
The Hardware
The Schematic
The Sketch
Running the Sketch
Analog vs. Digital Signals
Project #6: Creating a Single-Cell Battery Tester
The Goal
The Algorithm
The Hardware
The Schematic
The Sketch
Doing Arithmetic with an Arduino
Float Variables
Comparison Operators for Calculations
Improving Analog Measurement Precision with a Reference Voltage
Using an External Reference Voltage
Using the Internal Reference Voltage
The Variable Resistor
Piezoelectric Buzzers
Piezo Schematic
Project #7: Trying Out a Piezo Buzzer
Project #8: Creating a Quick-Read Thermometer
The Goal
The Hardware
The Schematic
The Sketch
Looking Ahead
Chapter 5: Working with Functions
Project #9: Creating a Function to Repeat an Action
Project #10: Creating a Function to Set the Number of Blinks
Creating a Function to Return a Value
Project #11: Creating a Quick-Read Thermometer That Blinks the Temperature
The Hardware
The Schematic
The Sketch
Displaying Data from the Arduino in the Serial Monitor
The Serial Monitor
Project #12: Displaying the Temperature in the Serial Monitor
Debugging with the Serial Monitor
Making Decisions with while Statements
while
do-while
Sending Data from the Serial Monitor to the Arduino
Project #13: Multiplying a Number by Two
long Variables
Project #14: Using long Variables
Looking Ahead
Chapter 6: Numbers, Variables, and Arithmetic
Generating Random Numbers
Using Ambient Current to Generate a Random Number
Project #15: Creating an Electronic Die
The Hardware
The Schematic
The Sketch
Modifying the Sketch
A Quick Course in Binary
Binary Numbers
Byte Variables
Increasing Digital Outputs with Shift Registers
Project #16: Creating an LED Binary Number Display
The Hardware
The Schematic
The Sketch
Project #17: Making a Binary Quiz Game
The Algorithm
The Sketch
Arrays
Defining an Array
Referring to Values in an Array
Writing to and Reading from Arrays
Seven-Segment LED Displays
Controlling the LED
Project #18: Creating a Single-Digit Display
The Hardware
The Schematic
The Sketch
Modifying the Sketch: Displaying Double Digits
Project #19: Controlling Two Seven-Segment LED Display Modules
The Hardware
The Schematic
Modulo
Project #20: Creating a Digital Thermometer
The Hardware
The Sketch
Looking Ahead
Chapter 7: Expanding Your Arduino
Shields
ProtoShields
Project #21: Creating a Custom Shield
The Hardware
The Schematic
The Layout of the ProtoShield Board
The Design
Soldering the Components
Testing Your ProtoShield
Expanding Sketches with Libraries
Downloading an Arduino Library as a ZIP File
Importing an Arduino Library with Library Manager
SD Memory Cards
Connecting the Card Module
Testing Your SD Card
Project #22: Writing Data to the Memory Card
The Sketch
Project #23: Creating a Temperature-Logging Device
The Hardware
The Sketch
Timing Applications with millis() and micros()
Project #24: Creating a Stopwatch
The Hardware
The Schematic
The Sketch
Interrupts
Interrupt Modes
Configuring Interrupts
Activating or Deactivating Interrupts
Project #25: Using Interrupts
The Sketch
Looking Ahead
Chapter 8: LED Numeric Displays and Matrices
LED Numeric Displays
Installing the Library
Project #26: Digital Stopwatch
Project #27: Using LED Matrix Modules
Installing the Library
Editing the Display Font
Looking Ahead
Chapter 9: Liquid Crystal Displays
Character LCD Modules
Using a Character LCD in a Sketch
Displaying Text
Displaying Variables or Numbers
Project #28: Defining Custom Characters
Graphic LCD Modules
Connecting the Graphic LCD
Using the LCD
Controlling the Display
Project #29: Seeing the Text Functions in Action
The Sketch
Running the Sketch
Creating More Complex Display Effects with Graphic Functions
Project #30: Seeing the Graphic Functions in Action
The Sketch
Project #31: Creating a Temperature History Monitor
The Algorithm
The Hardware
The Sketch
Running the Sketch
Modifying the Sketch
Looking Ahead
Chapter 10: Creating Your Own Arduino Libraries
Creating Your First Arduino Library
Anatomy of an Arduino Library
The Header File
The Source File
The KEYWORDS.TXT File
Installing Your New Arduino Library
Creating a ZIP File Using Windows 7 and Later
Creating a ZIP File Using Mac OS X or Later
Installing Your New Library
Creating a Library That Accepts Values to Perform a Function
Creating a Library That Processes and Displays Sensor Values
Looking Ahead
Chapter 11: Numeric Keypads
Using a Numeric Keypad
Wiring a Keypad
Programming for the Keypad
Testing the Sketch
Making Decisions with switch case
Project #32: Creating a Keypad-Controlled Lock
The Sketch
Understanding the Sketch
Testing the Sketch
Looking Ahead
Chapter 12: Accepting User Input with Touchscreens
Touchscreens
Connecting the Touchscreen
Project #33: Addressing Areas on the Touchscreen
The Hardware
The Sketch
Testing the Sketch
Mapping the Touchscreen
Project #34: Creating a Two-Zone On/Off Touch Switch
The Sketch
Understanding the Sketch
Testing the Sketch
Using the map() Function
Project #35: Creating a Three-Zone Touch Switch
The Touchscreen Map
The Sketch
Understanding the Sketch
Looking Ahead
Chapter 13: Meet the Arduino Family
Project #36: Creating Your Own Breadboard Arduino
The Hardware
The Schematic
Running the Sketch
The Many Arduino and Alternative Boards
Arduino Uno
Freetronics Eleven
The Adafruit Pro Trinket
The Arduino Nano
The LilyPad
The Arduino Mega 2560
The Freetronics EtherMega
The Arduino Due
Looking Ahead
Chapter 14: Motors and Movement
Making Small Motions with Servos
Selecting a Servo
Connecting a Servo
Putting a Servo to Work
Project #37: Building an Analog Thermometer
The Hardware
The Schematic
The Sketch
Using Electric Motors
Selecting a Motor
The TIP120 Darlington Transistor
Project #38: Controlling the Motor
The Hardware
The Schematic
The Sketch
Using Small Stepper Motors
Project #39: Building and Controlling a Robot Vehicle
The Hardware
The Schematic
Connecting the Motor Shield
The Sketch
Connecting Extra Hardware to the Robot
Sensing Collisions
Project #40: Detecting Robot Vehicle Collisions with a Microswitch
The Schematic
The Sketch
Infrared Distance Sensors
Wiring It Up
Testing the IR Distance Sensor
Project #41: Detecting Robot Vehicle Collisions with an IR Distance Sensor
The Sketch
Modifying the Sketch: Adding More Sensors
Ultrasonic Distance Sensors
Connecting the Ultrasonic Sensor
Testing the Ultrasonic Sensor
Project #42: Detecting Collisions with an Ultrasonic Distance Sensor
The Sketch
Looking Ahead
Chapter 15: Using GPS with Your Arduino
What Is GPS?
Testing the GPS Shield
Project #43: Creating a Simple GPS Receiver
The Hardware
The Sketch
Running the Sketch
Project #44: Creating an Accurate GPS-Based Clock
The Hardware
The Sketch
Project #45: Recording the Position of a Moving Object over Time
The Hardware
The Sketch
Running the Sketch
Looking Ahead
Chapter 16: Wireless Data
Using Low-Cost Wireless Modules
Project #46: Creating a Wireless Remote Control
The Transmitter Circuit Hardware
The Transmitter Schematic
The Receiver Circuit Hardware
The Receiver Schematic
The Transmitter Sketch
The Receiver Sketch
Using LoRa Wireless Data Modules for Greater Range and Faster Speed
Project #47: Remote Control over LoRa Wireless
The Transmitter Circuit Hardware
The Transmitter Schematic
The Receiver Circuit Hardware
The Receiver Schematic
The Transmitter Sketch
The Receiver Sketch
Project #48: Remote Control over LoRa Wireless with Confirmation
The Transmitter Circuit Hardware
The Transmitter Schematic
The Transmitter Sketch
The Receiver Sketch
Project #49: Sending Remote Sensor Data Using LoRa Wireless
The Transmitter Circuit Hardware
The Receiver Circuit Hardware
The Receiver Schematic
The Transmitter Sketch
The Receiver Sketch
Looking Ahead
Chapter 17: Infrared Remote Control
What Is Infrared?
Setting Up for Infrared
The IR Receiver
The Remote Control
A Test Sketch
Testing the Setup
Project #50: Creating an IR Remote Control Arduino
The Hardware
The Schematic
The Sketch
Modifying the Sketch
Project #51: Creating an IR Remote Control Robot Vehicle
The Hardware
The Sketch
Looking Ahead
Chapter 18: Reading RFID Tags
Inside RFID Devices
Testing the Hardware
The Schematic
Testing the Schematic
The Test Sketch
Displaying the RFID Tag ID Number
Project #52: Creating a Simple RFID Control System
The Sketch
Understanding the Sketch
Storing Data in the Arduino’s Built-in EEPROM
Reading and Writing to the EEPROM
Project #53: Creating an RFID Control with “Last Action” Memory
The Sketch
Understanding the Sketch
Looking Ahead
Chapter 19: Data Buses
The I2C Bus
Project #54: Using an External EEPROM
The Hardware
The Schematic
The Sketch
Running the Sketch
Project #55: Using a Port Expander IC
The Hardware
The Schematic
The Sketch
The SPI Bus
Pin Connections
Implementing the SPI
Sending Data to an SPI Device
Project #56: Using a Digital Rheostat
The Hardware
The Schematic
The Sketch
Looking Ahead
Chapter 20: Real-Time Clocks
Connecting the RTC Module
Project #57: Adding and Displaying Time and Date with an RTC
The Hardware
The Sketch
Understanding and Running the Sketch
Project #58: Creating a Simple Digital Clock
The Hardware
The Sketch
Understanding and Running the Sketch
Project #59: Creating an RFID Time-Clock System
The Hardware
The Sketch
Understanding the Sketch
Looking Ahead
Chapter 21: The Internet
What You’ll Need
Project #60: Building a Remote Monitoring Station
The Hardware
The Sketch
Troubleshooting
Understanding the Sketch
Project #61: Creating an Arduino Tweeter
The Hardware
The Sketch
Controlling Your Arduino from the Web
Project #62: Setting Up a Remote Control for Your Arduino
The Hardware
The Sketch
Controlling Your Arduino Remotely
Looking Ahead
Chapter 22: Cellular Communications
The Hardware
Hardware Configuration and Testing
Project #63: Building an Arduino Dialer
The Hardware
The Schematic
The Sketch
Understanding the Sketch
Project #64: Building an Arduino Texter
The Sketch
Understanding the Sketch
Project #65: Setting Up an SMS Remote Control
The Hardware
The Schematic
The Sketch
Understanding the Sketch
Looking Ahead
Index
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Reviews for the first edition of Arduino Workshop
Next
Next Chapter
Copyright
Arduino Workshop
2nd Edition
A Hands-on Introduction with 65 Projects
John Boxall
San Francisco
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset