Book Image

Raspberry Pi Home Automation with Arduino - Second Edition

By : Andrew K. Dennis
Book Image

Raspberry Pi Home Automation with Arduino - Second Edition

By: Andrew K. Dennis

Overview of this book

Table of Contents (16 chapters)
Raspberry Pi Home Automation with Arduino Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
4
Temperature Storage – Setting Up a Database to Store Your Results
Index

Arduino


Our first task is to install the Arduino IDE. The Arduino IDE is where we will write the code and upload it to the microcontroller.

Note

This piece of software can be found at http://arduino.cc/en/main/software.

Here, you will find the installation instructions for your operating system, including Linux, Windows, and Mac OS X. It is also possible to install the Arduino IDE directly on the Raspberry Pi. The following instructions will provide an overview of this process.

Installing the IDE on your Raspberry Pi

If you wish to install the IDE directly on your Raspberry Pi, you can do this via the command line. This will be necessary if you don't have a second computer on which you can install the Arduino IDE.

Once you have the Terminal window open, type the following command:

sudo apt-get install arduino

Accept any prompt that appears on the screen. The installation takes up about 81 MB of space.

Now that the installation is complete, you will be able to open the Arduino IDE on your Raspberry...