Beginning C for Arduino

Learn C Programming for the Arduino

By Jack Purdum

Learn how to program in C, and how to apply that knowledge to the Arduino microcontroller.

Full Description

  • ISBN13: 978-1-4302-4776-0
  • 280 Pages
  • User Level: Beginner to Intermediate
  • Publication Date: December 17, 2012
  • Available eBook Formats: EPUB, MOBI, PDF
  • Print Book Price: $39.99
  • eBook Price: $27.99
Buy eBook Buy Print Book Add to Wishlist

Related Titles

Full Description

Beginning C for Arduino is written for those who have no prior experience with microcontrollers or programming but would like to experiment and learn both. This book introduces you to the C programming language, reinforcing each programming structure with a simple demonstration of how you can use C to control the Arduino family of microcontrollers. Author Jack Purdum uses an engaging style to teach good programming techniques using examples that have been honed during his 25 years of university teaching.

Beginning C for Arduino will teach you:

  • The C programming language
  • How to use C to control a microcontroller and related hardware
  • How to extend C by creating your own library routines

During the course of the book, you will learn the basics of programming, such as working with data types, making decisions, and writing control loops. You'll then progress onto some of the trickier aspects of C programming, such as using pointers effectively, working with the C preprocessor, and tackling file I/O. Each chapter ends with a series of exercises and review questions to test your knowledge and reinforce what you have learned.

What you’ll learn

  • The syntax of the C programming language as defined for the Arduino
  • Tried and true coding practices (applicable to any programming language)
  • How to design, code, and debug programs that drive Arduino microcontrollers
  • How to extend the functionality of C
  • How to integrate low cost, off-the-shelf, hardware shields into your own projects

Who this book is for

The book is aimed at a complete novice with no programming background. It assumes no prior programming or hardware design experience and is written for creative and curious people who would like to blend a software and hardware learning experience into a single, enjoyable endeavor.

Table of Contents

Table of Contents

  1. Introduction to Arduino Microcontrollers
  2. Arduino C
  3. Data Types
  4. Decision Making in C
  5. Program Loops
  6. Functions in C
  7. Storage Classes and Scope
  8. Introduction to Pointers
  9. Using Pointers Effectively
  10. I/O Operations
  11. The C Preprocessor
  12. Arduino Libraries
  13. Appendix A - Suppliers
  14. Appendix B - Hardware Components
Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.

Errata

Please Login to submit errata.

No errata are currently published