Beginning C for Arduino, Second Edition is written for those who have no prior experience with microcontrollers or programming but would like to experiment and learn both. Updated with new projects and new boards, 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, Second Edition 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 libraries, including an introduction to object-oriented programming
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.
Jack Purdum teaches in the department of Computer Technology at Purdue University. He received his B.A. degree from Muskingum College and M.A. and Ph.D. degrees from Ohio State University (and Purdue still hired him). He has more than 25 years of teaching experience and has several awards for teaching excellence. He is a best-selling author of more than a dozen programming books and was president of a software firm that specialized in compilers and other programming tools. He also holds a U.S. patent for imaging software he developed and has served as an expert witness for the legal profession
Introduction to Arduino Microcontrollers Arduino C Data Types Decision Making in C Program Loops Functions in C Storage Classes and Scope Introduction to Pointers Using Pointers Effectively I/O Operations The C Preprocessor A Gentle Introduction to Object-Oriented Programming Arduino Libraries Arduino I/O Appendix A - Suppliers Appendix B - Hardware Components
"The book is highly readable and starts from basics, like how to install the Arduino integrated development environment (IDE). The appendix of the book has a lot of good information on how and where to order the parts and boards. ... I would strongly advise reading the book in a hands-on fashion and not just reading it alone. ... High school and beginning college students will have a blast reading it and implementing the programs. I highly recommend it." (Naga Narayanaswamy, Computing Reviews, April, 2016)