Genie PCB218 User manual

This worksheet is copyright © New Wave Concepts Limited. All rights reserved.
It may be photocopied for classroom or non-commercial use.
w
ww
ww
w.
.g
ge
en
ni
ie
eo
on
nl
li
in
ne
e.
.c
co
om
m
Page 1 of 8 ®2
21
18
8GENIE 18 Project Kit.pdf ®Version 1.5
G
GE
EN
NI
IE
E1
18
8P
Pr
ro
oj
je
ec
ct
tK
Ki
it
t(
(P
PC
CB
B2
21
18
8)
)
Introduction 1
1
Battery connects here (red wire
to ‘+V’, black wire to ‘0V’)
18-pin GENIE
microcontroller
(the smart bit!)
B
Ba
at
tt
te
er
ry
yp
po
ow
we
er
rm
mu
us
st
t
b
be
eb
be
et
tw
we
ee
en
n4
4.
.5
5
v
vo
ol
lt
ts
sa
an
nd
d6
6v
vo
ol
lt
ts
s.
..
..
.
.
..
..
.t
th
ha
at
t’
’s
s3
3o
or
r4
4A
AA
A-
-
s
si
iz
ze
ed
db
ba
at
tt
te
er
ri
ie
es
s!
!
Driver chip (it contains 8 separate
transistors that allow each output to
control more powerful things)
Medium-power
outputs, controlled
by signals Q
Q0
0to Q
Q7
7
Low-power outputs signals (these are output signals Q0
and Q1 before they are ‘beefed-up’ by the driver chip)
Download socket (the
cable plugs in here so
that the GENIE
microcontroller can
talk to the computer) Reset switch (starts any
program running from
the beginning again)
Green status LED,
controlled by
output signal S
ST
T
Analogue inputs A
A0
0, A
A1
1and A
A2
2or
digital inputs D
D0
0, D
D1
1and D
D2
2
W
We
el
lc
co
om
me
et
to
ot
th
he
eG
GE
EN
NI
IE
E
m
mi
ic
cr
ro
oc
co
on
nt
tr
ro
ol
ll
le
er
rs
sy
ys
st
te
em
m!
!
The project kit is ideal when
you want to add intelligence
to other design or electronics
projects. Simply wire up your
inputs and outputs and away
you go!
Digital inputs D
D6
6and D
D7
7

This worksheet is copyright © New Wave Concepts Limited. All rights reserved.
It may be photocopied for classroom or non-commercial use.
w
ww
ww
w.
.g
ge
en
ni
ie
eo
on
nl
li
in
ne
e.
.c
co
om
m
Page 2 of 8 ®2
21
18
8GENIE 18 Project Kit.pdf ®Version 1.5
G
GE
EN
NI
IE
E1
18
8P
Pr
ro
oj
je
ec
ct
tK
Ki
it
t(
(P
PC
CB
B2
21
18
8)
)
Making the GENIE 2
2
Switch on the soldering iron. It will only take a
few minutes for the iron to reach operating
temperature. Once the soldering iron is hot,
clean the soldering iron tip with a moist sponge.
Melt some solder at the chamfered end of the
soldering iron tip. This is called ‘tinning’ and it
will aid the flow of solder from the soldering
iron to the copper track on the printed circuit
board and component pins.
Fit each component onto the board. When
fitting components such as resistors, you should
use long-nosed pliers to bend the legs through
90 degrees. This will make them easier to fit.
Some of the components need to be fitted the
correct way around:
®The 18-pin GENIE microcontroller should be
positioned so that the notch points towards
the download socket and the dot next to pin
1 is at the same corner as the ‘1’ shown on the
board.
®The driver chip should be positioned so that
the notch points towards the battery
connection and the dot next to pin 1 is at the
same corner as the ‘1’ shown on the board.
®The green LED should be fitted so that the flat
edge of the LED lines up with the flat edge
shown on the board.
®The diode should be positioned so that the
stripe on the diode matches the stripe shown
on the board.
®When fitting the electrolytic capacitor, you
need to ensure that the positive side of the
capacitor (the side without the stripe) is
nearest to the ‘+’ sign on the board.
T
o solder a pin, hold the soldering iron onto the
board for a few seconds, then quickly touch the
tip with a small amount of solder.
You should always remember to replace the
soldering iron back into the stand after soldering
and repeat cleaning the tip of the iron with the
moist sponge before the start of each soldering
operation.
Finally, cut off any
excess wire or
component legs for a
tidy finish.
C
Co
om
mp
po
on
ne
en
nt
ts
sL
Li
is
st
t
This is what you will need:
C
Co
om
mp
po
on
ne
en
nt
tQ
Qu
ua
an
nt
ti
it
ty
y
18-pin GENIE microcontroller 1
GENIE 18 project board (PCB218) 1
ULN2803 driver 1
Download (3.5mm stereo) socket 1
18-pin DIL socket 2
Battery clip 1
3 or 4 x AA battery holder 1
1N4148 diode 1
6 x 6mm switch 1
Green LED 1
220uF electrolytic capacitor 1
100nF capacitor 1
330 ohm resistor 1
(orange, orange, brown, gold)
4.7k ohm resistor 1
(yellow, violet, red, gold)
10k ohm resistor 5
(brown, black, orange, gold)
22k ohm resistor 1
(red, red, orange, gold)
100k ohm resistor 1
(brown, black, yellow, gold)

This worksheet is copyright © New Wave Concepts Limited. All rights reserved.
It may be photocopied for classroom or non-commercial use.
w
ww
ww
w.
.g
ge
en
ni
ie
eo
on
nl
li
in
ne
e.
.c
co
om
m
Page 3 of 8 ®2
21
18
8GENIE 18 Project Kit.pdf ®Version 1.5
G
GE
EN
NI
IE
E1
18
8P
Pr
ro
oj
je
ec
ct
tK
Ki
it
t(
(P
PC
CB
B2
21
18
8)
)
Telling the GENIE your wishes 3
3
A
Av
va
ai
il
la
ab
bl
le
eS
Si
ig
gn
na
al
ls
s
These are the i
in
np
pu
ut
ta
an
nd
do
ou
ut
tp
pu
ut
t
s
si
ig
gn
na
al
ls
savailable in your flowchart:
I
In
np
pu
ut
tD
De
es
sc
cr
ri
ip
pt
ti
io
on
n
A/D0 to A/D2 Analogue or digital
D6 and D7 Digital
O
Ou
ut
tp
pu
ut
tD
De
es
sc
cr
ri
ip
pt
ti
io
on
n
Q0 to Q7 Medium-power
First of all, you need to tell GENIE which type of chip you are using. To do this,
click on the M
Mi
ic
cr
ro
oc
co
on
nt
tr
ro
ol
ll
le
er
rbutton on the toolbar and choose P
Pr
ro
og
gr
ra
am
mS
Se
et
tt
ti
in
ng
gs
s.
For your project to work, you need to tell the GENIE microcontroller what it should do.
This involves writing a sequence of commands in a f
fl
lo
ow
wc
ch
ha
ar
rt
t. Your flowchart is then sent down the
cable and stored on the GENIE chip. By changing the flowchart, you can vary how the GENIE behaves.
Select an 18-pin G
GE
EN
NI
IE
Echip.
The inputs and output signals for this type
of microcontroller are fixed, so click on O
OK
K
when you are ready to continue.
Á
Á
Ã
Ã
Y
ou can now decide which commands you
want your GENIE to perform. To do this,
drag commands from the G
Ga
al
ll
le
er
ry
y.
See the next worksheet for flowchart ideas.

This worksheet is copyright © New Wave Concepts Limited. All rights reserved.
It may be photocopied for classroom or non-commercial use.
w
ww
ww
w.
.g
ge
en
ni
ie
eo
on
nl
li
in
ne
e.
.c
co
om
m
Page 4 of 8 ®2
21
18
8GENIE 18 Project Kit.pdf ®Version 1.5
G
GE
EN
NI
IE
E1
18
8P
Pr
ro
oj
je
ec
ct
tK
Ki
it
t(
(P
PC
CB
B2
21
18
8)
)
Telling the GENIE your wishes 4
4
T
Tu
ur
rn
ni
in
ng
go
ou
ut
tp
pu
ut
ts
so
on
na
an
nd
do
of
ff
f
You can use GENIE to turn outputs on and off.
This will make the output connected to Q0 go
high (if a bulb was connected, for example, the
bulb would light up).
In addition to changing the output, you can also
add a delay (GENIE programs run very quickly
and without a wait, sometimes signals change
too fast for you to see!).
There are eight medium-power outputs on the
project board (plus a green LED on output S
ST
T).
Double-clicking on an output command allows
you to control these signals, for example:
Use the H
HI
IG
GH
Hcommand to
turn a single output on.
Use the L
LO
OW
Wcommand to turn
a single output off.
Use the O
OU
UT
TP
PU
UT
TS
Scommand
to control several outputs.
The flowchart on the
right uses the HIGH and
LOW commands to
make output Q0 flash
on and off.
It loops back to make
the flashing repeat.
M
Ma
ak
ki
in
ng
gs
so
ou
un
nd
ds
so
or
rp
pl
la
ay
yi
in
ng
gt
tu
un
ne
es
s
GENIE microcontrollers can make sounds and
also play musical tunes.
This would play the
note middle C for one
second.
By playing two different
notes (one after the
other, as shown on the
right), you can create an
alarm. In this flowchart,
output Q0 is also made
high and low (to flash a
light for example).
To make a sound, you should connect up a
sounder or loudspeaker to an output (Q
Q0
0to Q
Q7
7)
and then use the SOUND command as follows:
You can use the TUNE command to play a
whole tune such as a mobile telephone ring
tone. For better quality sound and music, you
may wish to consider the GENIE 14 Audio Kit.
Use the S
SO
OU
UN
ND
Dcommand to
play a single note.
Use the T
TU
UN
NE
Ecommand to
play a whole musical tune.

This worksheet is copyright © New Wave Concepts Limited. All rights reserved.
It may be photocopied for classroom or non-commercial use.
w
ww
ww
w.
.g
ge
en
ni
ie
eo
on
nl
li
in
ne
e.
.c
co
om
m
Page 5 of 8 ®2
21
18
8GENIE 18 Project Kit.pdf ®Version 1.5
G
GE
EN
NI
IE
E1
18
8P
Pr
ro
oj
je
ec
ct
tK
Ki
it
t(
(P
PC
CB
B2
21
18
8)
)
Telling the GENIE your wishes 5
5
R
Re
es
sp
po
on
nd
di
in
ng
gt
to
od
di
ig
gi
it
ta
al
ls
si
ig
gn
na
al
ls
s
Some types of signal, such as push switches, can
only be either on or off. These are known as
d
di
ig
gi
it
ta
al
lsignals.
R
Re
es
sp
po
on
nd
di
in
ng
gt
to
oa
an
na
al
lo
og
gu
ue
es
si
ig
gn
na
al
ls
s
Other types of signal, such as temperature or
light, can be at a number of different levels.
These are known as a
an
na
al
lo
og
gu
ue
esignals.
Use the A
AN
NA
AL
LO
OG
GU
UE
Ecommand
to respond to analogue signals.
Use the D
DI
IG
GI
IT
TA
AL
Lcommand to
respond to a digital signals.
The ANALOGUE command allows you to check
if a signal lies within a given range.
With GENIE, analogue levels can vary between 0
0
(the lowest level) and 2
25
55
5(the highest).
Double-click on the command to select a sensor
to check and a range. GENIE will follow the ‘Y
Y’
(yes) path when the signal is in range, otherwise
it will follow the ‘N
N’ (no) path.
For example, to test if a light sensor on analogue
signal A0 is between 0 and 100, you should
enter the following:
The DIGITAL command allows you to make a
decision based on whether a digital signal is
either on (high) or off (low).
When a digital signal is on, it has the value ‘1
1’
whereas when it is off, it has the value ‘0
0’.
Double-click on the command to select which
digital inputs you wish to check. GENIE will
follow the ‘Y
Y’ (yes) path when the digital signal
matches the chosen pattern, otherwise it will
follow the ‘N
N’ (no) path.
The above pattern will test if, for example, a
push switch on digital input D6, for example, is
on (pressed). Y
ou can see below how to make
output Q0 high whenever the switch is pressed:
In a flowchart, this would look like:

This worksheet is copyright © New Wave Concepts Limited. All rights reserved.
It may be photocopied for classroom or non-commercial use.
w
ww
ww
w.
.g
ge
en
ni
ie
eo
on
nl
li
in
ne
e.
.c
co
om
m
Page 6 of 8 ®2
21
18
8GENIE 18 Project Kit.pdf ®Version 1.5
G
GE
EN
NI
IE
E1
18
8P
Pr
ro
oj
je
ec
ct
tK
Ki
it
t(
(P
PC
CB
B2
21
18
8)
)
Bringing the GENIE to life 6
6
As soon as the program has been
downloaded you will see the
above screen (c) and GENIE will
start running your flowchart.
Y
our GENIE project is now ready
to go! You can disconnect the
cable and use your GENIE board
away from the computer.
ü
ü
F
Fi
in
ni
is
sh
he
ed
d!
!
(
(a
a)
)
(
(b
b)
)
T
Th
he
eg
gr
re
ee
en
ns
st
ta
at
tu
us
sL
LE
ED
Do
on
nt
th
he
e
p
pr
ro
oj
je
ec
ct
tk
ki
it
tw
wi
il
ll
lf
fl
la
as
sh
ha
as
st
th
he
e
d
do
ow
wn
nl
lo
oa
ad
dt
ta
ak
ke
es
sp
pl
la
ac
ce
e.
.
I
It
tt
te
el
ll
ls
sy
yo
ou
ue
ev
ve
er
ry
yt
th
hi
in
ng
gi
is
sO
OK
K!
!
Once you have written your flowchart program,
you need to store it on the GENIE chip. Here’s
how you do it:
1
1Wire-up the built GENIE circuit board and
connect up a suitable battery power supply.
2
2Plug the GENIE cable into the download
socket on the GENIE circuit board.
3
3Once done, the P
Pr
ro
og
gr
ra
am
mpanel in the
software will then show a ‘Connected’
message (see picture a).
4
4Click on the R
Ru
un
nL
Li
iv
ve
eoption. Your flowchart
will be transferred onto the GENIE chip—this
is known as d
do
ow
wn
nl
lo
oa
ad
di
in
ng
g(see picture b).
(
(c
c)
)

This worksheet is copyright © New Wave Concepts Limited. All rights reserved.
It may be photocopied for classroom or non-commercial use.
w
ww
ww
w.
.g
ge
en
ni
ie
eo
on
nl
li
in
ne
e.
.c
co
om
m
Page 7 of 8 ®2
21
18
8GENIE 18 Project Kit.pdf ®Version 1.5
G
GE
EN
NI
IE
E1
18
8P
Pr
ro
oj
je
ec
ct
tK
Ki
it
t(
(P
PC
CB
B2
21
18
8)
)
Troubleshooting GENIE 7
7
If you are unable to connect to a GENIE microcontroller or download a program, you should go
through the following troubleshooting hints and tips.
R
Ru
un
nt
th
he
eG
GE
EN
NI
IE
Et
tr
ro
ou
ub
bl
le
es
sh
ho
oo
ot
ti
in
ng
gt
to
oo
ol
l
The GENIE troubleshooter will automatically
check your cable and software to ensure that
the computer can access the GENIE cable.
To run the GENIE troubleshooter, choose
T
Tr
ro
ou
ub
bl
le
es
sh
ho
oo
ot
tG
GE
EN
NI
IE
E.
..
..
.from the H
He
el
lp
pmenu of
the Circuit Wizard or GENIE software.
If that option is not shown in your version of
the software, you can download it separately
from w
ww
ww
w.
.g
ge
en
ni
ie
eo
on
nl
li
in
ne
e.
.c
co
om
m/
/c
ca
ab
bl
le
e.
Step through the on-screen instructions.
S
St
te
ep
pt
th
hr
ro
ou
ug
gh
ht
th
he
ef
fo
ol
ll
lo
ow
wi
in
ng
gc
ch
he
ec
ck
kl
li
is
st
to
of
fc
co
om
mm
mo
on
np
pr
ro
ob
bl
le
em
ms
s
C
Ca
ab
bl
le
e
• Circuit Wizard, GENIE Design Studio and the GENIE Programming Editor software all check
and report problems involving the cable. If given, follow through on the on-screen advice.
• Unplug the cable, wait a few seconds and then plug it back in. Windows can occasionally fail
to detect that a cable has been inserted.
P
Po
ow
we
er
r
• Check that the voltage of the battery is sufficient. For this board, the battery voltage should
be in the range of 4.5 volts to 6 volts.
• Check the voltage level across the power connections (+V and 0V) on the board. This can
identify if there is a problem with the battery clip or battery holder. Ensure that the wiring
has not become loose and the batteries are properly seated in the holder.
C
Ci
ir
rc
cu
ui
it
t
• Try plugging the cable into another GENIE board if you have one available. When powering
up this circuit, the green STATUS LED should flash once (when properly connected it will flash
repeatedly).
• Try with another GENIE microcontroller if possible.
• Visually inspect the board for bad solder joints or cases where soldering has incorrectly
bridged pins together. Note that for the download socket, the two left-most pins should be
connected together, as should the two right-most pins.
For more troubleshooting hints and tips, please read the separate G
GE
EN
NI
IE
ET
Tr
ro
ou
ub
bl
le
es
sh
ho
oo
ot
ti
in
ng
gG
Gu
ui
id
de
e.
A
B

This worksheet is copyright © New Wave Concepts Limited. All rights reserved.
It may be photocopied for classroom or non-commercial use.
w
ww
ww
w.
.g
ge
en
ni
ie
eo
on
nl
li
in
ne
e.
.c
co
om
m
Page 8 of 8 ®2
21
18
8GENIE 18 Project Kit.pdf ®Version 1.5
G
GE
EN
NI
IE
E1
18
8P
Pr
ro
oj
je
ec
ct
tK
Ki
it
t(
(P
PC
CB
B2
21
18
8)
)
GENIE E18
22k
PR
ST
0V
Download Socket
100k
4.5-6V
STATUS
10k
330
D7
1N4148
220µ F
100nF
D6 Q1
Q2
Q3
Q4
Q5
1
2
3
4
5
6
7
8
9 10
11
12
13
14
15
16
17
18
ULN2803
Q6
Q7
Q0
A/D2
A/D1
A/D0
D2/A
ST
PR
R
0V
Q0
Q1
Q2
Q3 Q4
Q5
Q6
Q7
+V
D6
D7
A/D0
A/D1
GENIE E18
RESET
4.7k
More information 8
8
This is the c
ci
ir
rc
cu
ui
it
td
di
ia
ag
gr
ra
am
m. It shows how all of the components in
the circuit are connected. You can compare it to the layout of the
components on the actual circuit board (shown below it).
L
The technical bit... it’s
only needed if you
want to learn more!
Popular Microcontroller manuals by other brands

GigaDevice Semiconductor
GigaDevice Semiconductor GD32F403 Series user manual

Microchip Technology
Microchip Technology PIC16C62B quick start guide

Cytron
Cytron SK40C user manual

Silicon Laboratories
Silicon Laboratories EFM32TG Reference manual

Cypress
Cypress CY4531 EZ-PD CCG3 EVK Guide

Intel
Intel Galileo Tutorial Guide