mikroElektronika ROTARY R click Quick Start Manual

Page 1
2. Soldering the headers
Before using your click 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.
board, make sure
1
ROTARY R click
1. Introduction
Rotary R click™ carries a 15-pulse incremen-
tal rotary encoder with detents, surrounded
by a ring of 16 red 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,
respectively). Rotary R click™ can be used
with either a 3.3V or 5V power supply.
2 3
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.
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.
4. Essential features
Rotary R 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.
click
www.mikroe.com
ROTARY R click™ manual
ver 1.00
0100000077399
Page 2
5. Schematic
100nF
VCC 5V
ENC_A ENC_B
U5
1
VccA
C6
100nF
2
GND
3
A B
74LVC1T45
VCC 5V VCC 5V
6
VccB
5
DIR
ENCA_OUT ENCB_OUT
4
R25
10K
VCC 3.3V
C3
100nF
VCC 5V
C5
1
VCC
PWR SEL.
2
VCC 5V
7. SMD jumper
3
C4
100nF
VCC
1 2 3
U4
VccA GND A B
74LVC1T45
6
VccB
5
DIR
4
R24
10K
R17 2K2
PWR
VCC VCC
C1
100nF
C2
100nF
voltage level is used. Jumper J1 is soldered in
3.3V position by default.
There is one
zero-ohm
SMD jumper
J1 used to
select whether
3.3V or 5V I/O
VCC VCC 3.3V VCC 5V
R18 4K7
RST LATCH SCK SDO SDI
R19 4K7
AN RST CS SCK MISO MOSI +3.3V GND
MIKROBUS DEVICE CONN.
6. Dimensions
57.15 mm 2250 mils
STCP SHCP
STCP SHCP
VCC
16
VCC
Q0 DS OE
MR
VCC
Q0 DS OE
MR
LED01
15 14 13 12 11 10 9
16 15 14 13 12 11 10 9
LATCH
LED09
LATCH
SDI
SCK RST
SCK RST
SDO
R15
LED15
220 R16
LED16
220
1 LED
R1
LED01
220
2 LED
R2
LED02
220
3 LED
R3
LED03
220
4 LED
R4
LED04 LED09
220
LED6LED7LED8LED
R5
LED05
220
5
R6
LED06
220
13
LED14LED15LED16LED
R14
220 R13
220
12LED
R12
220
11LED
R11
220
10LED
R10
220
9LED
R9
220 R8
220 R7
220
LED14
LED13
LED12
LED11
LED10
LED08
LED07
ENC_B
ENC_A
VCC 5V
R20 22K
C7
10nFC810nF
VCC 5V
VCC
R21 22K
U1
R22
3
B
0R
2
E
R23
1
A
0R
EC12D
4
SW
D
5
C
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.
LED02 LED03 LED04 LED05 LED06 LED07 LED08
ENCA_OUTENCB_OUT
PWM
INT
TX RX
SCL SDA +5V GND
SW
LED10 LED11 LED12 LED13 LED14 LED15 LED16
Q1
2
Q2
3
Q3
4
Q4
5
Q5
6
Q6
7
Q7 GND8Q7S
74HC595
U3
1
Q1
2
Q2
3
Q3
4
Q4
5
Q5
6
Q6
7
Q7 GND8Q7S
74HC595
74HC595
74HC595
U2
1
.com
9. Support
MikroElektronika oers 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!
25.4 mm 1000 mils
LENGTH
WIDTH
HEIGHT*
* without headers
mm mils
57.15 2250
25.4 1000
20 787
MikroElektronika assumes no responsibility
or liability for any errors or inaccuracies
that may appear in the present document.
Specication and information contained in
the present schematic are subject to change
at any time without notice.
Copyright © 2015 MikroElektronika.
All rights reserved.
Loading...