Programming Arduino getting started with sketches

"Using clear, easy-to-follow examples, Programming Arduino: Getting Started with Sketches reveals the software side of Arduino and explains how to write well-crafted sketches using the modified C language of Arduino. No prior programming experience is required! The downloadable sample programs...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
1. Verfasser: Monk, Simon
Format: E-Book Buch
Sprache:Englisch
Veröffentlicht: New York McGraw-Hill Education 2012
McGraw-Hill Publishing
McGraw-Hill
Ausgabe:First edition.
Schriftenreihe:McGraw-Hill's AccessEngineering
Schlagworte:
ISBN:9780071784221, 0071784225, 9780071784238, 0071784233, 1259641635, 9781259641633
Online-Zugang:Volltext
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Inhaltsangabe:
  • A. Dedication -- B. About the Author -- C. Acknowledgments -- D. Introduction -- So, What Is Arduino? -- What Will I Need? -- Using this Book -- Resources -- 1. This Is Arduino -- Microcontrollers -- A Tour of an Arduino Board -- The Origins of Arduino -- The Arduino Family -- Arduino Clones and Variants -- Conclusion -- 2. Getting Started -- Powering Up -- Installing the Software -- Uploading Your First Sketch -- The Arduino Application -- Conclusion -- 3. C Language Basics -- Programming -- What Is a Programming Language? -- Blink?Again! -- Variables -- Experiments in C -- Commands -- The #define Directive -- Conclusion -- 4. Functions -- What Is a Function? -- Parameters -- Global, Local, and Static Variables -- Return Values -- Other Variable Types -- Coding Style -- Conclusion -- 5. Arrays and Strings -- Arrays -- String Arrays -- A Morse Code Translator -- Conclusion -- 6. Input and Output -- Digital Outputs -- Digital Inputs -- Analog Outputs -- Analog Input -- Conclusion -- 7. The Standard Arduino Library -- Random Numbers -- Math Functions -- Bit Manipulation -- Advanced I/O -- Interrupts -- Conclusion -- 8. Data Storage -- Constants -- The PROGMEM Directive -- EEPROM -- Compression -- Conclusion -- 9. LCD Displays -- A USB Message Board -- Using the Display -- Other LCD Library Functions -- Conclusion -- 10. Arduino Ethernet Programming -- Ethernet Shields -- Communicating with Web Servers -- Arduino as a Web Server -- Setting Arduino Pins over the Network -- Conclusion -- 11. C++ and Libraries -- Object Orientation -- Built-in Library Example -- Writing Libraries -- Conclusion.
  • Storing a String in EEPROM -- Clearing the Contents of EEPROM -- Compression -- Range Compression -- Conclusion -- 9 LCD Displays -- A USB Message Board -- Using the Display -- Other LCD Library Functions -- Conclusion -- 10 Arduino Ethernet Programming -- Ethernet Shields -- Communicating with Web Servers -- HTTP -- HTML -- Arduino as a Web Server -- Setting Arduino Pins over the Network -- Conclusion -- 11 C++ and Libraries -- Object Orientation -- Classes and Methods -- Built-in Library Example -- Writing Libraries -- The Header File -- The Implementation File -- Completing Your Library -- Conclusion -- Index -- A -- B -- C -- D -- E -- F -- G -- H -- I -- K -- L -- M -- N -- O -- P -- Q -- R -- S -- T -- U -- V -- W
  • Cover -- Contents -- Acknowledgments -- Introduction -- 1 This is Arduino -- Microcontrollers -- Development Boards -- A Tour of an Arduino Board -- Power Supply -- Power Connections -- Analog Inputs -- Digital Connections -- Microcontroller -- Other Components -- The Origins of Arduino -- The Arduino Family -- Uno, Duemilanove, and Diecimila -- Mega -- Nano -- Bluetooth -- Lilypad -- Other "Official" Boards -- Arduino Clones and Variants -- Conclusion -- 2 Getting Started -- Powering Up -- Installing the Software -- Uploading Your First Sketch -- The Arduino Application -- Conclusion -- 3 C Language Basics -- Programming -- What Is a Programming Language? -- Blink-Again! -- Variables -- Experiments in C -- Numeric Variables and Arithmetic -- Commands -- if -- for -- while -- The #define Directive -- Conclusion -- 4 Functions -- What is a Function? -- Parameters -- Global, Local, and Static Variables -- Return Values -- Other Variable Types -- floats -- boolean -- Other Data Types -- Coding Style -- Indentation -- Opening Braces -- Whitespace -- Comments -- Conclusion -- 5 Arrays and Strings -- Arrays -- Morse Code SOS Using Arrays -- String Arrays -- String Literals -- String Variables -- A Morse Code Translator -- Data -- Globals and Setup -- The loop function -- The flashSequence Function -- The flashDotOrDash Function -- Putting It All Together -- Conclusion -- 6 Input and Output -- Digital Outputs -- Digital Inputs -- Pull-up Resistors -- Internal Pull-up Resistors -- Debouncing -- Analog Outputs -- Analog Input -- Conclusion -- 7 The Standard Arduino Library -- Random Numbers -- Math Functions -- Bit Manipulation -- Advanced I/O -- Generating Tones -- Feeding Shift Registers -- Interrupts -- Conclusion -- 8 Data Storage -- Constants -- The PROGMEM Directive -- EEPROM -- Storing an int in EEPROM -- Storing a float in EEPROM (Unions)
  • Storing Data in Flash Memory -- EEPROM -- Storing an int in EEPROM -- Using the AVR EEPROM Library -- Storing a float in EEPROM -- Storing a String in EEPROM -- Clearing the Contents of EEPROM -- Compression -- Range Compression -- Conclusion -- 9 Displays -- Alphanumeric LCD Displays -- A USB Message Board -- Using the Display -- Other LCD Library Functions -- OLED Graphic Displays -- Connecting an OLED Display -- Software -- Conclusion -- 10 Arduino Internet of Things Programming -- Communicating with Web Servers -- HTTP -- HTML -- Arduino Uno as a Web Server -- Web-Controlled Arduino -- Node MCU Web Server -- Web-Controlled Node MCU -- Calling Web Services -- Arduino Uno and IFTTT -- Node MCU ESP8266 Board and IFTTT -- Other IoT Options -- Arduino Yun -- Particle Photon -- Conclusion -- 11 C++ and Libraries -- Object Orientation -- Classes and Methods -- Built-In Library Example -- Writing Libraries -- The Header File -- The Implementation File -- Completing Your Library -- Conclusion -- Index
  • Cover Page -- Title Page -- Copyright Page -- Dedication -- About the Author -- Contents -- Preface -- Acknowledgments -- Introduction -- 1 This Is Arduino -- Microcontrollers -- Development Boards -- A Tour of an Arduino Board -- Power Supply -- Power Connections -- Analog Inputs -- Digital Connections -- Microcontroller -- Other Components -- The Origins of Arduino -- The Arduino Family -- Uno and Leonardo -- Mega and Due -- The Micro and Small Arduino Boards -- Yun -- Lilypad -- Other "Official" Boards -- Arduino Clones and Variants -- Conclusion -- 2 Getting Started -- Powering Up -- Installing the Software -- Uploading Your First Sketch -- The Arduino Application -- Conclusion -- 3 C Language Basics -- Programming -- What Is a Programming Language? -- Blink-Again! -- Variables -- Experiments in C -- Numeric Variables and Arithmetic -- Commands -- if -- for -- while -- Constants -- Conclusion -- 4 Functions -- What Is a Function? -- Parameters -- Global, Local, and Static Variables -- Return Values -- Other Variable Types -- floats -- boolean -- Other Data Types -- Coding Style -- Indentation -- Opening Braces -- Whitespace -- Comments -- Conclusion -- 5 Arrays and Strings -- Arrays -- Morse Code SOS Using Arrays -- String Arrays -- String Literals -- String Variables -- A Morse Code Translator -- Data -- Globals and Setup -- The loop Function -- The flashSequence Function -- The flashDotOrDash Function -- Putting It All Together -- Conclusion -- 6 Input and Output -- Digital Outputs -- Digital Inputs -- Pull-Up Resistors -- Internal Pull-Up Resistors -- Debouncing -- Analog Outputs -- Analog Input -- Conclusion -- 7 The Standard Arduino Library -- Random Numbers -- Math Functions -- Bit Manipulation -- Advanced I/O -- Generating Tones -- Feeding Shift Registers -- Interrupts -- Conclusion -- 8 Data Storage -- Constants