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

Tools | Serial Port menu is not visible


If you're using a USB Arduino board, make sure you have installed all the required drivers.

Make sure that the board is plugged in: the serial port menu refreshes whenever you open the Tools menu, so if you just unplugged the board, it won't be in the menu.

Check that you're not running any programs that scan all serial ports, such as PDA sync applications, Bluetooth USB drivers (for example, BlueSoleil), virtual daemon tools, and so on.

On Windows, the COM port assigned to the board may be too high. As described in Zeveland:

On the Mac, if you have an old version of the FTDI drivers, you may need to remove them and reinstall the latest version:

gnu.io.PortInUseException on Mac

Error inside Serial.<init>()
gnu.io.PortInUseException: Unknown
Application
at gnu.io.CommPortIdentifier.open
  (CommPortIdentifier.java:354)
at processing.app.Serial.<init>
  (Serial.java:127)
at processing.app.Serial.<init>(Serial...