You are on page 1of 2

xii 30 Arduino Projects for the Evil Genius

Arduino button or spend some time with your connection. When over the middle and bottom
favorite search engine or an online auction site to pins, the board will be powered from an external
find lower-cost alternatives. In the next chapter, power supply plugged into the socket below. On
step-by-step instructions are provided for installing the newer Duemilanove boards, there is no such
the software on all three platforms. jumper and the supply switches automatically from
There are, in fact, several different designs of USB to the 9V socket.
Arduino board. These are intended for different The power supply can be any voltage between
types of applications. They can all be programmed 7 and 12 volts. So a small 9V battery will work
from the same Arduino development software, and just fine for portable applications. Typically, while
in general, programs that work on one board will you are making your project, you will probably
work on all. power it from USB for convenience. When you are
In this book we mostly use the Arduino ready to cut the umbilical cord (disconnect the
Duemilanove, sometimes called Arduino 2009, USB lead), you will want to power the board
which is an update of the popular board, the independently. This may be with an external power
Diecimila. Duemilanove is Italian for 2009, the adaptor or simply with a 9V battery connected to a
year of its release. The older Diecimila name plug to fit the power socket.
means 10,000 in Italian, and was named that after There are two rows of connectors on the edges
10,000 boards had been manufactured. Most of the board. The row at the top of the diagram is
compatible boards such as the Freeduino are based mostly digital (on/off) pins, although any marked
on the Diecimila and Duemilanove designs. with “PWM” can be used as analog outputs. The
Most of the projects in this book will work with bottom row of connectors has useful power
a Diecimila, Duemilanove, or their clone designs, connections on the left and analog inputs on
apart from one project that uses the Arduino the right.
Lilypad. These connectors are arranged like this so that
When you are making a project with an so-called “shield” boards can be plugged on to the
Arduino, you will need to download programs onto main board in a piggyback fashion. It is possible to
the board using a USB lead between your buy ready-made shields for many different
computer and the Arduino. This is one of the most purposes, including:
convenient things about using an Arduino. Many ■ Connection to Ethernet networks
microcontroller boards use separate programming
■ LCD displays and touch screens
hardware to get programs into the microcontroller.
With Arduino, it’s all contained on the board itself. ■ XBee (wireless data communications)
This also has the advantage that you can use the ■ Sound
USB connection to pass data back and forth ■ Motor control
between an Arduino board and your computer. For
■ GPS tracking
instance, you could connect a temperature sensor
to the Arduino and have it repeatedly tell your ■ And many more
computer the temperature. You can also use prototyping shields to create
On the older Diecimila boards, you will find a your own shield designs. We will use these
jumper switch immediately below the USB socket. Protoshields in some of our projects. Shields
With the jumper fitted over the top two pins, the usually have through connectors on their pins,
board will receive its power from the USB which means that you can stack them on top of
Introduction xiii

each other. So a design might have three layers: an Most of the projects in this book can be
Arduino board on the bottom, a GPS shield on it, constructed without the need for soldering; instead
and then an LCD display shield on top of that. we use a breadboard. A breadboard is a plastic
block with holes in it with sprung metal
connections behind. Electronic components are
The Projects pushed through the holes at the front. These are
not expensive, and a suitable breadboard is also
The projects in this book are quite diverse. We
listed in the appendix. However, if you wish to
begin with some simple examples using standard
make your designs more permanent, the book
LEDs and also the ultra high-brightness Luxeon
shows you how to do that, too, using the
LEDs.
prototyping board.
In Chapter 5, we look at various sensor projects
Sources for all the components are listed in the
for logging temperature and measuring light and
appendix, along with some useful suppliers. The
pressure. The USB connection to the Arduino
only things you will need in addition to these
makes it possible to take the sensor readings in
components are an Arduino board, a computer,
these projects and pass them back to the computer,
some wire, and a piece of breadboard. The
where they can be imported into a spreadsheet and
software for all the projects is available for
charts drawn.
download from www.arduinoevilgenius.com.
We then look at projects using various types of
display technology, including an alphanumeric
LCD message board (again using USB to get Without Further Ado
messages from your computer), as well as seven-
segment and multicolor LEDs. The Evil Genius is not noted for their patience, so
in the next chapter we will show you how to get
Chapter 7 contains four projects that use sound
started with Arduino as quickly as possible. This
as well as a simple oscilloscope. We have a simple
chapter contains all the instructions for installing
project to play tunes from a loudspeaker, and build
the software and programming your Arduino
up to a light harp that changes the pitch and
board, including downloading the software for the
volume of the sound by waving your hand over
projects, so you will need to read it before you
light sensors. This produces an effect rather like
embark on your projects.
the famous Theremin synthesizer. The final project
in this chapter uses sound input from a In Chapter 2 we take a look at some of the
microphone. It is a VU meter that displays the essential theory that will help you build the
intensity of the sound on an LED display. projects described in this book, and go on to
design projects of your own. Most of the theory is
The final chapters contain a mixture of projects.
contained in this chapter, so if you are the kind of
Among others, there is, as we have already
Evil Genius who prefers to just make the projects
mentioned, an unfathomable binary clock using an
and find out how they work afterwards, you may
Arduino Lilypad board that indicates the time in an
prefer, after reading Chapter 1, to just to pick a
obscure binary manner only readable by an Evil
project and start building. Then if you get stuck,
Genius, a lie detector, a motor-controlled swirling
you can use the index or read some of the early
hypnotizer disk, and, of course, the computer-
chapters.
controlled-servo-guided laser.

You might also like