Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
About This eBook
Title Page
Copyright Page
Contents at a Glance
Table of Contents
About the Author
Dedication
Acknowledgments
We Want to Hear from You!
Reader Services
Introduction
Programming the Arduino
Who Should Read This Book?
Conventions Used in This Book
Part I: The Arduino Programming Environment
Hour 1. Introduction to the Arduino
What Is an Arduino?
Introducing the Arduino Family
Exploring Arduino Shields
Summary
Workshop
Hour 2. Creating an Arduino Programming Environment
Exploring Microcontroller Internals
Moving Beyond Machine Code
Creating Arduino Programs
Installing the Arduino IDE
Summary
Workshop
Hour 3. Using the Arduino IDE
Overview of the IDE
Walking Through the Menus
Exploring the Toolbar
Exploring the Message Area and Console Window
Setting Up the Arduino IDE
Using the Serial Monitor
Summary
Workshop
Hour 4. Creating an Arduino Program
Building an Arduino Sketch
Creating Your First Sketch
Interfacing with Electronic Circuits
Summary
Workshop
Part II: The C Programming Language
Hour 5. Learning the Basics of C
Working with Variables
Using Operators
Exploring Arduino Functions
Summary
Workshop
Hour 6. Structured Commands
Working with the if Statement
Grouping Multiple Statements
Using else Statements
Using else if Statements
Understanding Comparison Conditions
Creating Compound Conditions
Negating a Condition Check
Expanding with the switch Statement
Summary
Workshop
Hour 7. Programming Loops
Understanding Loops
Using while Loops
Using do-while Loops
Using for Loops
Using Arrays in Your Loops
Using Multiple Variables
Nesting Loops
Controlling Loops
Summary
Workshop
Hour 8. Working with Strings
What’s a String?
Understanding C-Style Strings
Introducing the Arduino String Object
Manipulating String Objects
Summary
Workshop
Hour 9. Implementing Data Structures
What’s a Data Structure?
Creating Data Structures
Using Data Structures
Manipulating Data Structures
Arrays of Structures
Working with Unions
Summary
Workshop
Hour 10. Creating Functions
Basic Function Use
Returning a Value
Passing Values to Functions
Handling Variables in Functions
Calling Functions Recursively
Summary
Workshop
Hour 11. Pointing to Data
What Is a Pointer?
Working with Pointers
Using Special Types of Pointers
Pointer Arithmetic
Strings and Pointers
Combining Pointers and Structures
Using Pointers with Functions
Summary
Workshop
Hour 12. Storing Data
Arduino Memory Refresher
Taking a Closer Look at SRAM
Creating Dynamic Variables
Using Flash to Store Data
Using the EEPROM Memory
Summary
Workshop
Hour 13. Using Libraries
What Is a Library?
Using the Standard Libraries
Using Contributed Libraries
Creating Your Own Libraries
Summary
Workshop
Part III: Arduino Applications
Hour 14. Working with Digital Interfaces
Digital Overview
Using Digital Outputs
Experimenting with Digital Output
Working with Digital Inputs
Experimenting with Digital Input
Summary
Workshop
Hour 15. Interfacing with Analog Devices
Analog Overview
Working with Analog Input
Modifying the Input Result
Using Input Mapping
Changing the Reference Voltage
Analog Output
Using the Analog Output
Summary
Workshop
Hour 16. Adding Interrupts
What Are Interrupts?
Types of Interrupts
Using External Interrupts
Testing External Interrupts
Using Pin Change Interrupts
Working with Timer Interrupts
Ignoring Interrupts
Summary
Workshop
Hour 17. Communicating with Devices
Serial Communication Protocols
Using the Serial Port
Working with the SPI Port
Working with I2C
Summary
Workshop
Hour 18. Using Sensors
Interfacing with Analog Sensors
Working with Voltage
Using a Voltage-Based Sensor
Working with Resistance Output
Using a Resistance-Based Sensor
Using Touch Sensors
Working with Touch Sensors
Summary
Workshop
Hour 19. Working with Motors
Types of Motors
Using DC Motors
Experimenting with Motors
Using Servo Motors
Summary
Workshop
Hour 20. Using an LCD
What Is an LCD?
Interfacing with LCD Devices
The LiquidCrystal Library
The LCD Shield
Summary
Workshop
Hour 21. Working with the Ethernet Shield
Connecting the Arduino to a Network
The Ethernet Shield Library
Writing a Network Program
Summary
Workshop
Hour 22. Advanced Network Programming
The Web Protocol
Reading Sensor Data from a Web Server
Controlling an Arduino from the Web
Summary
Workshop
Hour 23. Handling Files
What Is an SD Card Reader?
SD Cards and the Arduino
The SD Library
Interfacing with the SD Card
Storing Sensor Data
Summary
Workshop
Hour 24. Prototyping Projects
Determining Project Requirements
Determining Interface Requirements
Listing Components
Creating a Schematic
Creating the Breadboard Circuit
Designing the Sketch
Writing the Sketch
Testing the Sketch
Creating a Prototype Board
Summary
Workshop
Index
← Prev
Back
Next →
← Prev
Back
Next →