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