Beginning Arduino Programming [electronic resource] /
Evans, Brian.author.
Beginning Arduino Programming allows you to quickly and intuitively develop your programming skills through sketching in code. This clear introduction provides you with an understanding of the basic framework for developing Arduino code, including the structure, syntax, functions, and libraries needed to create future projects. You will also learn how to program your Arduino interface board to sense the physical world, to control light, movement, and sound, and to create objects with interesting behavior. With Beginning Arduino Programming, you'll get the knowledge you need to master the fundamental aspects of writing code on the Arduino platform, even if you have never before written code. It will have you ready to take the next step: to explore new project ideas, new kinds of hardware, contribute back to the open source community, and even take on more programming languages.
Title Page; Copyright Page; Contents at a Glance; Table of Contents; About the Author; About the Technical Reviewer; Acknowledgments; Introduction; Who This Book is For; Reading This Book; Arduino 1.0; Conventions; Downloading the Code; CHAPTER 1 Getting Started; Arduino is for Makers; The Arduino Ecosystem; The Arduino Platform; Open-Source Hardware; Community; Arduinoland; Arduino is C... Mostly; What's Needed; Getting Up and Running; Installing the Software; Connecting the Arduino; Opening a Sketch; Selecting the Board and Serial Port; Uploading a Sketch; Summary; CHAPTER 2 Sketching in Code
What is Sketching in Code?Project 1: RGB Blink; Hooking It Up; Uploading the Source Code; Source Code Summary; The Structure of Arduino C; Using Comments; Basic Functions; Statements and Syntax; Verifying and Uploading; Verifying; Saving; Uploading; Common Errors; Summary; CHAPTER 3 Working with Variables; Project 2: 7-Color Blink; Hooking It Up; Uploading the Source Code; Source Code Summary; What's a Variable?; Declaring Variables; Variable Names; Data Types; Variable Qualifiers; Predefined Constants; Variable Scope; Using Operators; Arithmetic Operators: +, -, *, /
Compound Operators: ++, --, +=, -=, *=, /=Order of Operations; Summary; CHAPTER 4 Making Decisions; Project 3: Tilt Blink; Hooking It Up; Uploading the Source Code; Source Code Summary; Comparative and Logical Operators; Control Statements; For; While; Do; Switch; Break; Continue; Summary; CHAPTER 5 Digital Ins and Outs; Arduino I/O Demystified; Project 4: Noisy Cricket; Hooking It Up; Uploading the Source Code; Source Code Summary; Digital Functions; pinMode(); digitalWrite(); digitalRead(); State Changes; Toggle; Counting; Modality; Summary; CHAPTER 6 Analog In, Analog Out
Analog DemystifiedProject 5: Telematic Breath; Hooking It Up; Uploading the Source Code; Source Code Summary; Analog Functions; analogRead(); analogWrite(); analogReference(); Analog Serial Monitor; Reading Analog Values; Using the Serial Monitor; How It Works; Mapping Values; map(); constrain(); Summary; CHAPTER 7 Advanced Functions; Timing Functions; delay(); delayMicroseconds(); millis(); micros(); Random Functions; random(); randomSeed(); Project 6: Ambient Temps; Hooking It Up; Uploading the Source Code; Source Code Summary; Writing Functions; Declaring Functions; Calling Functions
Function ReturnsFunction Parameters; Project 7: HSB Color Mixer; Hooking It Up; Uploading the Source Code; Source Code Summary; Hardware Interrupts; attachInterrupt(); detachInterrupt(); Summary; CHAPTER 8 Arrays and Memory; Project 8: Decision Machine; Hooking It Up; Uploading the Source Code; Source Code Summary; Inclusions and Declarations; setup() and loop(); Functions; Arrays; Declaring Arrays; Using Arrays; Arrays of Values; Array Limits and sizeof(); Assigning Array Values; Character Arrays; Multidimensional Arrays; Arduino Memory; Checking Free RAM; Using Program Memory; Using EEPROM
Summary
Includes index.
Includes index.
Beginning Arduino Programming allows you to quickly and intuitively develop your programming skills through sketching in code. This clear introduction provides you with an understanding of the basic framework for developing Arduino code, including the structure, syntax, functions, and libraries needed to create future projects. You will also learn how to program your Arduino interface board to sense the physical world, to control light, movement, and sound, and to create objects with interesting behavior. With Beginning Arduino Programming, you'll get the knowledge you need to master the fundamental aspects of writing code on the Arduino platform, even if you have never before written code. It will have you ready to take the next step: to explore new project ideas, new kinds of hardware, contribute back to the open source community, and even take on more programming languages.
Computer input-output equipment.
Programming languages (Electronic computers).
Hardware and Maker.
Programming Languages, Compilers, Interpreters.