Beginning Arduino Programming
Beginning Arduino Programming provides a clear introduction to writing Arduino code, building your skills with Arduino through a series of well-designed hardware and software building blocks. Once you have read this book, you’ll be ready to program Arduino in exactly the ways you want for your future projects.
Beginning Arduino Programming lets you discover new journeys with your Arduino board through programming. While everyone knows that Arduino is a platform for hardware hackers—be they engineers, artist or maker-enthusiasts—your Arduino board cannot function without code. This book will show you the fundamentals of programming and how to program your Arduino board to do the things you want it to do.
You’ll learn from first principles the core Arduino programming language, examining how to program loops, variables, arrays, and functions. While these features are common to many languages, you’ll also learn how they are used specifically for Arduino. Beginning Arduino Programming uses the sketching analogy, which means you’ll find yourself writing snippets of code that do interesting things very quickly. You’ll also learn how to code in a good, succinct Arduino style that other programmers will respect.
As you read Beginning Arduino Programming, you’ll learn how to make your Arduino code talk directly to the chips and sensors on your boards, taking into account pulse width, timing and sensor characteristics, all under your control. You’ll then be ready to discover the joys of the existing Arduino open source libraries, so you can benefit from the code that other people have already created, and even think about sharing your own Arduino code projects in the future.
What you’ll learn
- Start programming quickly with Arduino sketches
- Get up to speed with the Arduino programming language
- Write code that interacts with devices such as sensors and motors
- How to code around pulse widths, timing and sensor characteristics
- Work with time delays in your Arduino coding projects
- Write your own, new Arduino functions
- Write concise and well-written code that other programmers will respect
- Use existing Arduino libraries, and create new ones!
Who this book is for
This book is for all Arduino board users who want to learn to program the Arduino board, regardless of hardware version or which devices are connected to the board. You do not need to have programmed before, but if you have, then you’ll learn how to apply core coding features in the Arduino context.
Table of Contents
- Getting Started
- Sketching in Code
- Working With Variables
- Making Decisions
- Digital Ins and Outs
- Analog in, Analog out
- Functions, Time, and Interrupts
- Arrays for Arduino
- Writing New Functions for Arduino
- Arduino Libraries
- Arduino Hardware 10
- Where to Go from Here?
- Appendix A: Common Circuits
- Appendix B: Arduino Math
- Paperback: 272 pages
- Publisher: Apress (October 2011)
- Language: English
- ISBN-10: 1430237775
- ISBN-13: 978-1430237778