What is Arduino?
Arduino is an open-source physical computing
platform based on a simple microcontroller
board, and a development environment for
writing software for the board.
Arduino can be used to develop interactive
objects, taking inputs from a variety of switches
or sensors, and controlling a variety of lights,
motors, and other physical outputs.
Arduino projects can be stand-alone, or they can
be communicate with software running on your
computer
gizDuino X is the latest addition to our
growing family of Arduino compatible
controllers. It is based on an ATMEGA1281
MCU, a family member of the ATMEGA1280
used in Arduino Mega board.
Arduino comes with its own open-source
Integrated Development Environment (IDE).
Why Arduino?
Inexpensive
Cross-platform
Simple, clear programming environment
Open-source and extensible software
Open-source and extensible hardware
Getting Started
1. Make sure you have the following:
Arduino Icon
Arduino Software
6. Opening a Sketch
Open the LED blink
example sketch by:
File > Examples >
Basics > Blink.
Blink Sketch
7. Select your board
Youll need to select the
entry in the Tools >
Board menu that
corresponds to your
Arduino. Select
Gizduino X
(ATmega1281).
8. Select your serial port
Select the serial device of the Arduino board from
the Tools | Serial Port menu. This is likely to be
COM3 or higher (COM1 and COM2 are usually
reserved for hardware serial ports). To find out, you
can disconnect your Arduino board and re-open the
menu; the entry that disappears should be the
Arduino board. Reconnect the board and select that
serial port.
9. Upload the program
Now, simply click the "Upload" button in the
environment.
if (someVariable ?? value)
{
doSomething;
}
if else
if else allows for either-or decisions to be made. For
example, if you wanted to test a digital input, and do one
thing if the input went HIGH or instead do another thing if
the input was LOW, you would write that this way:
if (inputPin == HIGH)
{
doThingA;
}
else
{
doThingB;
}
for
The for statement is used to repeat a block of
statements enclosed in curly braces a specified number
of times. An increment counter is often used to
increment and terminate the loop. There are three
parts, separated by semicolons (;), to the for loop
header:
do
{
doSomething;
} while (someVariable ?? value);
ARDUINO
ATMEGA1281
gizDuino X
gizDuino X is the latest addition to our growing family of Arduino
compatible controllers. It is based on an ATMEGA1281 MCU, a
family member of the ATMEGA1280 used in Arduino Mega board.
Hardware Specifications:
54 I/Os,
3 hardware SPI,
2- hardware UART,
large memory capacities: 128K FLASH, 8K SRAM, and 4K EEPROM
3 additional timers
10 additional timer OCR
1 additional ICR
2 additional PWMs.
Pin Assignments