
32
ARDUINO
It all began with the installation of the Arduino board on my PC. As it is written in
11
guide all went smooth and easy. The only thing I had do to after
drivers folder to install proper drivers.
In the next step I had to familiarize myself with
the programming environment supplied with Arduino
board. Arduino alpha v.0.0.2.2 is an open project
written, debugged and supported by Massimo Banzi,
David Caurtielles, Tom Igoe, Gianluca Martino and
Reas and Ben Fry. As whole language is mostly based
on C++ this process was limited to recognize syntax
distinctive for Arduino bo
Arduino project website where essential code examples
are placed appeared to be very useful in understanding
of how does it work.
After few days of playing with Arduino the time
for WiFly shield has come. Everything went smoother
as in this case bigger technical support is provided.
The last step was application of the BlackBox. To
do this the handling of analog input as well as two
modes of work, manual (manual control over servos) and automatic (setting light intensity
without controlling over the servo) were needed.
Let us now focus on source code written for Arduino Uno board. Whole syntax
consists of main 4 parts. To avoid huge amount of text I will only describe more complex
and essential functions. Full listing can be found in appendix A
12
The first thing are declarations. In this part we declare all the libraries, variables,
structures and registers we will need.
11
http://arduino.cc/en/Guide/Windows
12
See page 61
Figure 28. Arduino alpha v.0.0.2.2
Figure 29. Arduino alpha v.0.0.2.2 GUI
Comentarios a estos manuales