You are on page 1of 13

Copyright 2011

by e-Gizmo Mechatronix Central


All Rights Reserved www.e-Gizmo.com
gizDuino(Arduino Compatble) & Shields
Gizduino: Arduino Compatible Kit
(Atmega168 and Atmega328)
Hardware Manual Rev 1r0

e-Gizmo Learn to use and program microcontroller the
fast and easy way. e-Gizmos Gizduino platorm kit is a
single board AVR microcontroller platorm based on high-
ly popular open source Arduino design. It can be used as
well with AVRs tradional programming tools.
The Gizduino is a microcontroller board based on the
ATmega328 and ATmega168. It has 14 digital input/
output pins, 6 analog inputs, a 16 MHz crystal oscilla-
tor, a USB connecton, a power jack, an ICSP header,
and a reset buton. It contains everything needed to
support the microcontroller; simply connect it to a
computer with a USB cable or power it with a AC-to-
DC adapter or batery to get started.
it is an open source computng platorm based on a
simple input/output (I/O) board and the use of stand-
ard programming language; in otherwords, it is a tool
for implementng a program you have designed. Giz-
duino is programmed using the IDE (Integrated De-
velopment Environment).
Gizduino is ideal for beginner programmers and hob-
byists because of its simplicity compared to other
platorms. It is a multplatorm environment; it can
run on Windows, Macintosh, and Linux. It is program-
mable via USB cable, which makes it more accessible
and allows communicaton with the computer.
FEATURES & SPECIFICATIONS
Microcontroller: ATmega168 or ATmega328
User Interface: USB Port, DC Jack, Reset
Button, ICSP Port, Shield Connection Port
Debbuger Port: ICSP
Power Input: External:8V-12V USB:5V
DC Power Output: 3.3V
PCB Size: 2.7 x 2.1 inch
On-board Crystal: 16MHz and 12MHz
Copyright 2011
by e-Gizmo Mechatronix Central
All Rights Reserved www.e-Gizmo.com
gizDuino(Arduino Compatble) & Shields
Gizduino: Arduino Compatible Kit Datasheet Version 1
F
i
g
u
r
e

1
.

g
i
z
D
u
i
n
o

M
i
c
r
o
c
o
n
t
r
o
l
l
e
r

(
A
r
d
u
i
n
o

C
o
m
p
a
t
i
b
l
e
)

I
l
l
u
s
t
r
a
t
i
n
g

i
t
s

m
a
j
o
r

c
o
m
p
o
n
e
n
t
s
MAJOR COMPONENTS
Copyright 2011
by e-Gizmo Mechatronix Central
All Rights Reserved www.e-Gizmo.com
gizDuino(Arduino Compatble) & Shields
Figure 2. illustraton of PWR_SEL Jumper Header, 2
types of Power Selecton
PARTS & PINS DESCRIPTION Gizduino: Arduino Compatible Kit Datasheet Version 1
No. I.D. Descripton
1 AREF
analog reference pin for the
A/D Converter.
2 GND ground.
3 13 Digital I/O
4 12 Digital I/O
5 11 PWM OUT
6 10 PWM OUT / Digital I/O
7 9 PWM OUT / Digital I/O
8 8 Digital I/O
9 7 Digital I/O
10 6 PWM OUT / Digital I/O
11 5 PWM OUT / Digital I/O
12 4 Digital I/O
13 3 PWM OUT / Digital I/O
14 2 Digital I/O
15 1 TX / Digital I/O
16 0 RX / Digital I/O
No. I.D. Descripton
1 A0 Analog I/O
2 A1 Analog I/O
3 A2 Analog I/O
4 A3 Analog I/O
5 A4 Analog I/O
6 A5 Analog I/O
7 A6 Analog I/O
8 A7 Analog I/O
No. I.D. Descripton
1 Reset reset.
2 +3.3V 3.3V Device Power Supply
3 +5V 5V Device Power Supply
4 GND ground.
5 GND ground.
6 VIN 8-12V Device Power Supply
its a choice of ATmega168 or ATmega328 Microcontroller
Device Flash Mem. EEPROM RAM Interrupt Vector Size
ATmega168PA 16K Bytes 512 Bytes 1K Bytes 2 instructon words/vector
ATmega328P 32K Bytes 1K Bytes 2K Bytes 2 instructon words/vector
Table 4. Available Gizduino Microcontrollers Details:
Table 1. JP3,JP4 (Digital I/O) pin assignments: Table 2. JP2 (Analog I/O) pin assignments:
Table 3. JP1 (Power) pin assignments:
Copyright 2011
by e-Gizmo Mechatronix Central
All Rights Reserved www.e-Gizmo.com
gizDuino(Arduino Compatble) & Shields
Gizduino: Arduino Compatible Kit Datasheet Version 1
Figure 3. illustraton on how to connect the gizDuino to PC.
To begin, atach frst the USB cable to the JP9 of the Gizduino. At this point, it would not be advis-
able to connect the USB to the computer immediately. Before doing so, the user must acquire the sofware
that handles the Gizduino. Because it is a clone of the Arduino, the required sofware is obtainable from the
Arduino website (htp://www.arduino.cc/en/Main/Sofware) and is called the Arduino IDE. At the tme of
the writng of this manual the latest version of the Arduino IDE is 0021 (whose fle size is around 85.1 MBs).
When the fleis successfully downloaded the user will notce that it takes the form of a ZIP fle. As such, one
needs to extract or uncompress it frst. There are many ZIP fle programs found over the internet if the com-
puter is not able to recognize the ZIP fle, as a suggeston to this is one of the good ZIP fle programs WinRAR.
Once extracted, we strictly recommend that the user does not make any changes to the internal structures
and directories of the fles within the extracted Arduino IDE folder (such as fle names). This is because the
program is writen to fnd whatever data it requires according to exactly how the fles are initally named and
arranged. Changes made to these fles and directories would cause confusion with the running program and
will lead to errors.
PROGRAMMING SETUP
Copyright 2011
by e-Gizmo Mechatronix Central
All Rights Reserved www.e-Gizmo.com
gizDuino(Arduino Compatble) & Shields
Gizduino: Arduino Compatible Kit Datasheet Version 1
At this point, the user may now connect the free-end of the USB cable to one of the USB ports of the compu-
ter. Most computers will normally not be able to recognize the newly created Gizduino-to-PC USB connecton
initally. This is caused simply by the lack of the proper driver that handles the recogniton of the hardware
by the computer. The driver required by the Gizduino-to-PC connecton is the PL-2303 USB-to-Serial driver
(downloadable at htp://www.prolifc.com.tw/eng/downloads.asp?ID=31). When the driver is frst obtained
it comes in the form of a ZIP fle, as such the user must extract it frst. Afer extracton is done, run the
PL2303_Prolifc_DriverInstaller executable fle to initate the driver installaton process, there will be a brief
appearance of a loading window (Install Shield Wizard) before the introductory window prompt appears.
The succeeding page will just inform the user that the installer will install the PL-2303 driver, simply
contnue by clicking on Next >.
ARDUINO IDE SETUP
Copyright 2011
by e-Gizmo Mechatronix Central
All Rights Reserved www.e-Gizmo.com
gizDuino(Arduino Compatble) & Shields
Gizduino: Arduino Compatible Kit Datasheet Version 1
The next page would appear like this.
The installer will immediatly install the driver into the computer system. The installaton progress will
be displayed as a loading bar which will span a duraton of about 20 to 30 seconds to complete. There is the
chance occurence that even afer the loading bar has fnished and the window has minimized, the program
itself might seem not to respond. This peculiar efect is normal, and usually resolves itself within around 30
seconds. If it takes more than around 5 minutes, end the program using task manager and repeat the process
again, or repeat it afer restarfng the computer. If all goes well, the complefon page will appear.
Now that we have accomplished the preliminary driver setup, we are lef with the setup of the programming
applicaton Arduino IDE.
ARDUINO IDE SETUP
Copyright 2011
by e-Gizmo Mechatronix Central
All Rights Reserved www.e-Gizmo.com
gizDuino(Arduino Compatble) & Shields
Gizduino: Arduino Compatible Kit Datasheet Version 1
Before the Arduino IDE program can communicate with the Gizduino module, the user must frst set
the number of the COM port assigned to the USB cable. To identfy as to which COM port the USB cable is
currently atached to, open Start, then the Device Manager. Amongst the great list of devices present in the
computer, one should fnd the Ports category. Expanding on this category scrolls down the list of COM ports
under use. The COM port the user should take note of is that which is labeled Prolifc USB-to-Serial Comm
Port (COM9). This is the COM port where the Gizduino module is atached to.
As an example, we will use COM9 as shown in the fgure above. The user at this point is urged to
fnally open the Arduino IDE program now that we have the COM port number assigned to the Gizduino
module!
To open the Arduino IDE, navigate to the folder extracted from the ZIP fle previously menton. Upon
opening the folder named arduino-0021 by default, search for the fle that is highlighted in fgure 3 below.
ARDUINO IDE SETUP
Copyright 2011
by e-Gizmo Mechatronix Central
All Rights Reserved www.e-Gizmo.com
gizDuino(Arduino Compatble) & Shields
Gizduino: Arduino Compatible Kit Datasheet Version 1
Double-click on the fle to execute the Arduino IDE (Integrated Development Environment) program
proper. This is where all the programming codes and instructons are made and uploaded unto the Gizduino
module. These writen instructons or program codes are referred to by the -duino community as Sketches
and shall here be also called as such. The Arduino upon executon will at frst present a small loading screen
and then proceed to the program itself. The user is here advised to hold all urge to hastly play around with
the program as there are stll two necessary prerequisites to complete in order to ensure that the users crea-
tons here are communicated to the Gizduino. To do this, go to and click the opton Tools found at the menu
bar just below the top bar of the program window. Once there, a small list will drop down. Notce that there
will result a small amount of lag before the list is scrolled down, and that during this lag the D2 (orange LED)
blinks briefy. This is a good sign that the program bears some communicaton to the COM ports.
Of primary concern are the two optons found with the list are Board and Serial Port. First, place the
mouse cursor over the Serial Port opton to open another short list to its right. The list will display various
COM ports under use by the computer. We now assign the COM port that we earlier took note of at the De-
vice Manager Window, which is COM9. Once the COM9 choice is selected, the Tools list window will close.
If the user will go to the Serial Ports opton again, the COM9 choice should have a check mark beside it.
We now turn to the Board opton which is again found under the Tools menu. Opening the Board sub-list,
we will encounter a window with a list of diferent models and versions of the Arduino modules such as the
Arduino Uno or the Arduino Mega. The Gizduino module is modeled afer the Arduino Diecimila with the AT-
mega168. As such, select the Arduino Diecimila, Duemilanove, Nano w/ ATmega168, Nano w/ ATmega328.
ARDUINO IDE SETUP
Copyright 2011
by e-Gizmo Mechatronix Central
All Rights Reserved www.e-Gizmo.com
gizDuino(Arduino Compatble) & Shields
Gizduino: Arduino Compatible Kit Datasheet Version 1 ARDUINO IDE SETUP
Copyright 2011
by e-Gizmo Mechatronix Central
All Rights Reserved www.e-Gizmo.com
gizDuino(Arduino Compatble) & Shields
Gizduino: Arduino Compatible Kit Datasheet Version 1 BASIC PROGRAM SKETCHING
For the user with litle to no knowledge at all with the C - based programming language, amongst the
best ways to learn is to observe and analyze a simple existng working program code. In the Arduino IDE we
will fnd such simple works as sample fle in the program. To access these sample program codes, while on
the Arduino IDE click on the File menu to open a sub-list of other optons. Some of these optons have the
basic program operatons such as New; which creates a new blank document, and Open...; which allows
the program to open an already existng document. The user will also see an Examples category, and if the
mouse cursor is placed on it, another list under it will appear containing the diferent kinds of sample codes
made available to the user.It is highly recommended for those users who are new to the Arduino/Gizduino
modules to frst open samples under the 1.Basics opton (It is common for new tmers to use the blinking
LED program code as a learning basis for coding).
Copyright 2011
by e-Gizmo Mechatronix Central
All Rights Reserved www.e-Gizmo.com
gizDuino(Arduino Compatble) & Shields
Gizduino: Arduino Compatible Kit Datasheet Version 1
While it is beyond the scope of the manual to discuss in greater detail on the subjects about the
Gizduino code programming, the user may wish to instead visit the e-Gizmo ofcial website (htp://e-gizmo.
com/wordpress/) and the Arduino ofcial website learning page (htp://arduino.cc/en/Tutorial/HomePage).
Both these websites ofer tutorials regarding programming in the Arduino IDE and the programming tutorials
available at the Arduino page ofer codes ranging from the simple and basic to the more complex and ad-
vanced levels. However, there are some diferences between the Arduino and the Gizduino board, and those
who wish to learn basic code compatble with a Gizduino module should start of at the e-Gizmo Gizduino
tutorial web pages (such as htp://e-gizmo.com/wordpress/?p=639).
Another indispensible page found at the Arduino website is the References page (htp://arduino.
cc/en/Reference/HomePage). It is the web page where most of the important and common language codes
recognized and used by the Arduino IDE are given descripton. Users are encouraged to have this page open
whilst they are along the analysis of a sample codes. Doing so will provide easier understanding of workings
of a given code.
For the users who have inquiries about the Gizduino whose answers lie beyond that which was pro-
vided in the web pages suggested above, they are encouraged to register at the e-Gizmo technical blog/fo-
rum secton (htp://e-gizmo.com/wordpress/) and post their inquiries and curiosites there. The Arduino
forum webpage is also good for those who have their questons or ideas about the Arduino technologies
(htp://www.arduino.cc/cgi-bin/ yabb2/YaBB.pl).
UPLOADING CODES TO GIZDUINO
Assuming that the user has now created a body of programming code in the Arduino IDE, it now must
be uploaded to the Gizduino module. To do this, simply go to File in the Arduino IDE main menu, and select
Upload to I/O Board. However, it is highly recommended that the user save the program code in order to
ensure that whatever error might happen in the upload the program code is backed-up. In additon to this
the user is also encouraged to practce the habit of frst pretestng the body of programming before it is up-
loaded to the Gizduino module by selectng the Verify/Compile command found under the Sketch main
menu opton. The command simulates the programming code and returns any errors about the writng of the
code, saving users the trouble of errors and crashes resultng for a hasty upload of an erroneous code unto
the Gizduino.
For gizDuino and other Shields operatons or manuals simply scroll down or click the Manual Selecton on
the Lower right of the manuals page.
UPLOADING CODES
Copyright 2011
by e-Gizmo Mechatronix Central
All Rights Reserved www.e-Gizmo.com
gizDuino(Arduino Compatble) & Shields
PCB Board Presentaton
Figure 5. Gizduino Arduino Compatble Kit
Copper Patern (Top Layer)
Figure 6. Gizduino Arduino Compatble Kit
Copper Patern (Botom Layer)
Figure 4. Gizduino Arduino Compatble Kit
(silkscreen layout)
Gizduino: Arduino Compatible Kit Datasheet Version 1
Copyright 2011
by e-G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