FREE E-BOOK Beginning C for Arduino Learn C programming for the Arduino

FREE E-BOOK Beginning C for Arduino: Learn C programming for the Arduino

FREE E-BOOK Beginning C for Arduino: Learn C programming for the Arduino
FREE E-BOOK Beginning C for Arduino: Learn C programming for the Arduino

Author(s): Jack Purdum
Publisher: Apress, Year: 2012


The beginning of Arduino C is written for those who have no prior experience in microcontrollers or programming but who would like to try and learn both. This book introduces you to the C programming language, which strengthens every programming structure with a simple demonstration of how C is used to control the Arduino family of microcontrollers. The author Jack Purdum uses an attractive method to teach good programming techniques using examples refined during 25 years of university teaching.

Beginning C informs you of Arduino:

* C programming language.
* How to use C to control the microcontroller and related devices
* How to expand C by creating your own library procedures
Throughout the book, you will learn the basics of programming, such as working with data types, decision-making, and writing control episodes. You will then advance to some of the more difficult aspects of C programming, such as using indicators effectively, working with pre-C processor, and I / O file processing. Each chapter ends with a series of exercises and review questions to test your knowledge and reinforce what you have learned.

What you will learn

* Build C programming language as defined in Arduino
Tried and true coding practices (applicable to any programming language)
* How to design, coding, and debug programs that drive Arduino microcontrollers
* How to expand C functions
* How to integrate low-cost hardware armor ready for use in your own projects

For whom is this book

The book aims at a complete beginner without a programming background. No prior experience in programming or hardware design is assumed and written for creative and curious people who want to mix the hardware and software learning experience in one fun endeavor.

I can remember buying my first electronic calculator. I was teaching a graduate level statistics course and I had to have a calculator with a square root function. Back in the late 1960s, that was a pretty high-end requirement for a calculator. I managed to purchase one at the “educational discount price” of $149.95! Now, I look down at my desk at an ATmega2560 that is half the size for less than a quarter of the cost and think of all the possibilities built into that piece of hardware. I am amazed by what has happened to everything from toasters to car engines. Who-da-thunk-it 40 years ago? 

I am coming to the microcontroller world from a different direction than many people who have a similar interest. My primary area of expertise has been software engineering. However, I have always loved electronics and maintain my amateur radio license, which I got more than 50 years ago. Yet, all the potential processing power that is built into the Atmel family of microcontrollers is dormant unless some form of software unleashes that power. Indeed, artfully craft the two areas of hardware and software together and you really have something exciting.

 The purpose of this text is to teach you the C programming language. To those whose eyes just glazed over while muttering: “Just what we need...another C programming text, “ I hope to convince you that this book is different. First, many texts seem to relegate programming to the back seat, concentrating instead on the hardware aspects of the microcontroller development process. Indeed, after reading some microcontroller books, you come away with the feeling that software in general, and programming specifically, is an evil that one must simply endure. That is, the “really good stuff” is all in the hardware. Yet, great hardware running on so-so software is bound by a worst case reality of a so-so result. Crafting good software can be every bit as rewarding as a well-engineered piece of hardware.

 A second reason why this book is different is my teaching experience. I had an employee who was one of the most gifted programmers I ever met. One summer I assigned an intern to him, and, within a week, the intern quit in tears, saying he was impossible to work with, let alone learn anything from. Just because you are a good programmer or engineer does not automatically make you a good teacher. Not until you have seen 150 pairs of eyes staring at you like a deer in the headlights can you appreciate that what you thought was obvious really isn’t. Trial and error over 25 years has helped me develop teaching techniques that lift students over the most likely stumbling blocks.