Hardware Reference
In-Depth Information
Figure 16-16:
he complete
system
wired up.
Programming the Arduino
Next you have to be able to program the Arduino. To do this you need to use the Arduino
IDE. You have a choice of either doing this on your laptop or desktop computer or loading a
version into the Raspberry Pi. Using a PC or Mac is much faster than using the Pi, but I have
successfully used the Raspberry Pi to program the Arduino. I will show you how to use the
Raspberry Pi here.
To install it is simple enough: From a command line just type
$ sudo apt-get update
$ sudo apt-get install arduino
Depending on your Internet access speed this could take 20 minutes or more as you have to
download the Java code that supports it. Note that this code might take up more space than you
would like; you will be informed of the size before you commit to the download. After it is down-
loaded start up the desktop and open the File Manager window. Navigate to /usr/bin and
double-click the arduino ile. A pop-up window will invite you to do various options; click
Execute. Plug in your Arduino Uno directly to one of the Raspberry Pi's USB sockets. I have found
 
Search WWH ::




Custom Search