Book Image

Learning C for Arduino

By : Syed Omar Faruk Towaha
Book Image

Learning C for Arduino

By: Syed Omar Faruk Towaha

Overview of this book

This book will start with the fundamentals of C programming and programming topics, such data types, functions, decision making, program loops, pointers, and structures, with the help of an Arduino board. Then you will get acquainted with Arduino interactions with sensors, LEDs, and autonomous systems and setting up the Arduino environment. Moving on you will also learn how to work on the digital and analog I/O, establish serial communications with autonomous systems, and integrate with electronic devices. By the end of the book, you will be able to make basic projects such as LED cube and smart weather system that leverages C.
Table of Contents (17 chapters)
Learning C for Arduino
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Summary


In this chapter, we have learned a number of important things for Arduino. We learned how to declare functions, how we can play with functions, how to connect an SD card to an Arduino, how to read a file from the SD card using Arduino Uno, and how to create a new file on the SD card with Arduino. We have also developed code for handling files with Arduino. There are a number of exercises in this chapter. These exercises are for broadening your thoughts about Arduino. What you can do with a small piece on computer. I hope you learn all the techniques in this chapter in order to gain a better understanding of Arduino programming. If you have enough knowledge about file handling, then I welcome you to the next chapter of this book: Chapter 6, Arduino and C++.