
- 12 -
3.3 BACKGROUND-INFORMATION FOR THE
ARDUINO SOFTWARE
Arduino Software belongs to the Open Source-category and is uni-
versally available to all, including the source codes for the program-
ming platform.
The Arduino programming platform has been equipped with a text-
editor, a message window and a text-console. The programming
platform may directly contact the AAR for communication and allows
us to easily transfer programs into the processor.
Programs, which have been written in Arduino-language, are named
„sketches”. A normal text-editor is used for developing and editing
these programs. The “sketch”-files will be stored at your PC’s hard
disc. Sketches are identifiable by their file-extension „.ino“.
Saving-actions the sketch-files are reported in the message-window,
which also includes detected errors in the source-code. The right-
sided bottom of the window displays the currently active Arduino-
Board and the serial interface .
The basic Arduino-concept supplies us with libraries filled with extra
functionaility. A library defines a number of predefined functions,
which for recurrent programming sections may be reused at no ex-
tra cost for development.
Basically an Arduino-program may be structured in three sections:
•
structure,
•
definitions (for variables respectively constants) and
•
functions.
An Arduino-structure consists of a setup and a loop-function. The
setup is used to initialize variables, pin-definitions („Pin-Modes“) and
libraries-definitions.
The „Loop“-function will be repeated in an endless loop, which al-
lows the program to react permanently ad lib, until the system is
switched off.
The program uses „variable“-definitions to store and handle a pro
-
gram’s modifiable data whereas constants are used to define fixed
values such as pin-definitions for input- or output-functionality and
to define fixed voltage levels at pin-connections.
Содержание AAR-04
Страница 1: ...1 AAR AREXX The Netherlands V062012 MANUAL AAR 04 AREXX ARDUINO ROBOT...
Страница 25: ...25 APENDIX...
Страница 28: ...28 A MAIN PCB TOP...
Страница 29: ...29 B MAIN PCB BOTTOM...
Страница 30: ...30 C CIRCUIT AAR ATmega328P...