Book Image

Arduino BLINK Blueprints

By : Utsav Shah
Book Image

Arduino BLINK Blueprints

By: Utsav Shah

Overview of this book

Arduino is an open-source prototyping platform based on easy-to-use hardware and software. Arduino has been used in thousands of different projects and applications by a wide range of programmers and artists, and their contributions have added up to an incredible amount of accessible knowledge that can be of great help to novices and experts alike. Want to build exciting LED projects with Arduino? This book will be your companion to bring out the creative genius in you. To begin with, you will get introduced to the maker movement and the open source hardware development Arduino boards. You will then move on to develop a mood lamp and a remote-controlled TV backlight. As you progress through the book, you will develop an LED cube and will learn to use sound visualization to develop a sound-controlled LED Christmas tree. You will then move on to build a persistence of vision wand. At the end of each chapter, you’ll see some common problems, their solutions, and some workarounds.
Table of Contents (14 chapters)

Arduino IDE


As, initially, Arduino was initially designed for artists and designers, the Arduino team has tried to develop Arduino software (IDE) as simply as possible without compromising on the power of the tool. Before you run your "Hello World" program, you need to install Arduino IDE on your computer.

Installing Arduino IDE

Arduino IDE is supported on all major operating systems, initially Windows, Mac, and Linux.

On Windows

  1. Go to https://www.arduino.cc/en/Main/Software.

  2. Download "Windows Installer" or "Windows ZIP file for non admin install".

  3. If you have downloaded "Windows Installer", double click on it and it will be installed.

  4. If you have downloaded "Windows ZIP file for non admin install", extract it and you will find arduino.exe. Double click on it to get started with the Arduino IDE.

On Linux

  1. Go to https://www.arduino.cc/en/Main/Software.

  2. Download "Linux 32 bits" or "Linux 64 bits" depending on your OS type.

  3. Extract it and run the Arduino executables to get started with the Arduino IDE.

On Mac

  1. Go to https://www.arduino.cc/en/Main/Software.

  2. Download "Mac OS X 10.7 Lion or newer".

  3. Extract it and run the Arduino executables to get started with the Arduino IDE.

Understanding Arduino IDE

If you have used IDEs such as Visual Studio, XCode, and Eclipse before, you'd better lower your expectations, because Arduino IDE is very simple. It mainly consists of an editor, a compiler, a loader, and a serial monitor. It has no advanced features such as a debugger or code completion:

Let's look into each button separately:

  • A: Verify button: This will compile the program that's currently in the editor. It does not only verify the program syntactically. It also turns it into a representation suitable for the Arduino board.

  • B: Upload button: This will compile and upload the current program to the connected Arduino Board.

  • C: New button: This creates a new program by opening a new editor window.

  • D: Open button: With this button, you can open an existing program from the file system.

  • E: Save button: This saves the current program.

  • F: Serial monitor: Arduino can communicate with a computer via a serial connection. Clicking the Serial Monitor button opens a serial monitor window that allows you to watch the data sent by Arduino and also to send data back. You will learn more about it in the Using serial communication section.

  • G: Editor window: This is where you will write the code.

  • H: Error console: This is where you will see all the error messages of your code.

  • I: Status bar: This will show the connected Arduino board name along with the COM port number.