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

Few common errors


Let's list a few common errors.

Arduino is connected but cannot be found by the computer

If you face this problem, then check the A to B cable is properly connected to both the Arduino and the computer. You can also check if the USB port is broken or if the Arduino's port is working.

If both the connections are good, then there might be the problem with the Arduino IDE installation. Just remove the Arduino IDE and reinstall the software again.

Cannot upload programs to the Arduino board

There are a number of things that are responsible for this kind of error. They include: the drivers for the board, the board and serial port selections in the Arduino IDE, access to the serial port, the physical connection to the board and more. Here are some specific suggestions for troubleshooting the problems.

Arduino software

Make sure you have the right item selected in the Tools | Board menu. If you have an Arduino Uno, you'll need to choose it. if you have an Arduino Mega, you need to select...