2. Soldering the headers
Before using your click
™
board, make sure
to solder 1x8 male headers to both left and
right side of the board. Two 1x8 male headers
are included with the board in the package.
1
ROTARY G
click
™
1. Introduction
2
3
4. Essential features
Rotary G click
™
with its LED ring is a perfect
solution for implementing an input knob into
your design (in contrast to a potentiometer,
a rotary encoder can be spun round
continuously). A single rotation is divided into
15 discrete steps.
The encoder outputs A and
B signals (out of phase to each other). The
knob is also a push-button outputted through
the interrupt line. The LED ring are controlled
through the SPI interface.
Turn the board upside down so that
the bottom side is facing you upwards.
Place shorter pins of the header into the
appropriate soldering pads.
Turn the board upward again. Make sure
to align the headers so that they are
perpendicular to the board, then solder the
pins carefully.
Rotary G click
™
carries a
15-pulse incremen-
tal rotary encoder
with detents, surrounded
by a
ring of 16 green LEDs.
It communicates
with the target board through mikroBUS
™
SPI lines
(CS, SCK, MISO, MOSI), and three
additional lines for outputting the Encoder
info: ENCB OUT, ENCA OUT and SW (in place
of the standard AN, RST and INT pins, re-
spectively). Rotary G click
™
can be used with
either a 3.3V or 5V power supply.
3. Plugging the board in
Once you have soldered the headers your
board is ready to be placed into the desired
mikroBUS
™
socket. Make sure to align the cut
in the lower-right part of the board with the
markings on the silkscreen at the mikroBUS
™
socket. If all the pins are aligned
correctly, push the board all
the way into the socket.
click
www.mikroe.com
ROTARY G click
™
manual
ver 1.00
™
BOARD
0100000078105
5. Schematic
VCC 3.3V
PWR SEL.
7. SMD jumper
VCC 5V
1
2
3
VCC
C3
100nF
C4
100nF
There is one
zero-ohm
SMD jumper
J1 used to
select whether
3.3V or 5V I/O
voltage level is used. Jumper J1 is soldered in
3.3V position by default.
VCC 5V
ENC_A
C6
100nF
U5
VCC 5V
VCC 5V
ENC_B
U4
VCC 5V
VCC
R17
2K2
VCC
VCC
1
2
3
VccA VccB
GND DIR
A
B
74LVC1T45
6
5
4
R25
10K
ENCA_OUT
C5
100nF
1
2
3
VccA VccB
GND DIR
A
B
74LVC1T45
6
5
4
R24
10K
ENCB_OUT
C1
100nF
C2
100nF
PWR
U2
VCC
VCC 3.3V
VCC 5V
LED02
LED03
LED04
LED05
LED06
LED07
LED08
1
2
3
4
5
6
7
8
Q1
Q2
Q3
Q4
Q5
Q6
Q7
GND
U3
LED10
LED11
LED12
LED13
LED14
LED15
LED16
1
2
3
4
5
6
7
8
Q1
Q2
Q3
Q4
Q5
Q6
Q7
GND
VCC
Q0
DS
OE
STCP
SHCP
MR
Q7S
16
15
14
13
12
11
10
9
VCC
Q0
DS
OE
STCP
SHCP
MR
Q7S
16
15
14
13
12
11
10
9
VCC
LED01
SDI
LATCH
SCK
RST
LED15
LED16
LED01
LED02
LED09
LATCH
SCK
RST
SDO
LED03
LED04
LED05
LED06
R15
220
R16
220
R1
220
R2
220
R3
220
R4
220
R5
220
R6
220
1
2
3
4
16
LED
LED
LED
LED
LED
LED
5
LED
6
LED
7
LED
8
15
LED
14
LED
13
LED
R14
220
R13
LED
LED
LED
LED
12
11
10
9
220
R12
220
R11
220
R10
220
R9
220
R8
220
R7
220
VCC 5V
LED14
LED13
LED12
U1
LED11
LED10
LED09
LED08
LED07
C7
10nF
ENC_B
ENC_A
R22
0R
R23
0R
C8
10nF
R20
22K
R21
22K
VCC 5V
VCC
8. Code examples
Once you have done all the necessary
preparations, it’s time to get your click
™
board
up and running. We have provided examples
for mikroC
™
, mikroBasic
™
and mikroPascal
™
compilers on our
Libstock
website. Just
download them and you are ready to start.
R18
4K7
74HC595
ENCB_OUT
RST
LATCH
SCK
SDO
SDI
R19
4K7
AN
RST
CS
SCK
MISO
MOSI
+3.3V
GND
PWM
INT
TX
RX
SCL
SDA
+5V
GND
ENCA_OUT
SW
74HC595
3
2
1
B
E
A
EC12D
D
C
4
5
SW
MIKROBUS DEVICE CONN.
74HC595
74HC595
.com
6. Dimensions
25.4 mm
≈
1000 mils
9. Support
mm
LENGTH
WIDTH
HEIGHT
mils
2244
1024
787
57
26
20
MikroElektronika assumes no responsibility
or liability for any errors or inaccuracies
that may appear in the present document.
Specification and information contained in
the present schematic are subject to change
at any time without notice.
Copyright © 2015 MikroElektronika.
All rights reserved.
MikroElektronika offers
free tech support
(www.mikroe.com/support)
until the end of
the product’s lifetime, so if something goes
wrong, we’re ready and willing to help!
57.15 mm
≈
2250 mils