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 B click 2 3 4. Essential features 1. Introduction Rotary B 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 B click carries a 15-pulse incremen- 3. Plugging the board in tal rotary encoder with detents, surrounded click by a ring of 16 blue 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 B click manual of the standard AN, RST and INT pins, re- socket. If all the pins are aligned ver 1.00 spectively). Rotary B click can be used with correctly, push the board all either a 3.3V or 5V power supply. the way into the socket. 01000000763475. Schematic 7. SMD jumper PWR SEL. VCC 3.3V VCC 5V There is one VCC zero-ohm C3 C4 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 select whether C1 C2 VccA VccB VccA VccB 2K2 C6 2 5 ENCA OUT C5 2 5 ENCB OUT GND DIR GND DIR 3 4 3 4 100nF 100nF A B A B 3.3V or 5V I/O 100nF 100nF 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 LED02 1 16 VCC 5V VCC 5V VCC 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 8 9 LED01 LED12 preparations, its time to get your click board GND Q7S 220 220 U1 74HC595 2 LED LED 11 R2 R11 up and running. We have provided examples LED02 LED11 ENCB OUT ENCA OUT U3 R22 AN PWM ENC B 3 4 SW RST SW 220 220 B D RST INT LED10 1 16 LATCH Q1 VCC 3 LED LED 10 0R 2 R3 R10 for mikroC , mikroBasic and mikroPascal CS TX LED11 2 15 LED09 LED03 LED10 E SCK Q2 Q0 R23 SCK RX LED12 3 14 ENC A 1 5 SDO Q3 DS 220 220 A C MISO SCL LED13 4 13 SDI Q4 OE 4 LED LED 9 0R compilers on our Libstock website. Just 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 4K7 GND GND LED16 7 10 RST download them and you are ready to start. 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 5 6 7 8 R6 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.15 2250 Specification and information contained in wrong, were ready and willing to help WIDTH 25.4 1000 the present schematic are subject to change at any time without notice. HEIGHT 20 787 57.15 mm 2250 mils * without headers Copyright 2015 MikroElektronika. All rights reserved. 25.4 mm 1000 mils 74HC595 74HC595 1 2 3