OFF
MIKROE-6332
19 g
Status:
Rotary Switch Click is a compact add-on board for applications requiring precise rotary input. This board is based on the RDS6-16S-1065-1-SMT, a 16-position notched cap surface-mount rotary DIP switch from Same Sky. This switch features continuous 360-degree actuator rotation, a 2.54mm pin pitch, and robust construction with a contact resistance of 80mΩ and a maximum operating torque of 700gf*cm, ensuring reliable operation for up to 10,000 steps. The board supports the innovative Click Snap feature, allowing the rotary switch to operate autonomously when detached, providing flexibility in various implementations. It connects to the host MCU via the TCA9536, a 4-bit I2C I/O expander from Texas Instruments, simplifying switch state monitoring. Ideal for industrial equipment, consumer electronics, and automotive systems, Rotary Switch Click offers a versatile and durable solution for mode selection and user-configurable settings in demanding environments.
Rotary Switch Click is fully compatible with the mikroBUS™ socket and can be used on any host system supporting the mikroBUS™ standard. It comes with the mikroSDK open-source libraries, offering unparalleled flexibility for evaluation and customization. What sets this Click board™ apart is the groundbreaking ClickID feature, enabling your host system to seamlessly and automatically detect and identify this add-on board, alongside a Click Snap feature introducing a new level of flexibility and ease of use.
This product is no longer in stock
Availability date:
Rotary Switch Click is based on the RDS6-16S-1065-1-SMT, a 16-position notched cap surface-mount rotary DIP switch from Same Sky designed for applications requiring precise rotary input. This high-quality switch offers a 2.54mm pin pitch and continuous 360-degree actuator rotation, making it suitable for various user-selectable settings. Its rotary actuator, designed for durability, features a maximum operating torque of 700gf*cm and a contact resistance of 80mΩ, ensuring reliable operation with every step. The switch is rated for an operating life of approximately 10,000 steps, demonstrating its suitability for repetitive use in applications requiring consistent performance.
The RDS6-16S-1065-1-SMT is designed for ease of integration, with its notched cap enabling tactile feedback at each position, providing precise manual control over adjustments. The compact form makes it ideal for space-constrained designs, while the robust construction ensures it can withstand demanding operating environments. Its reliable performance and long lifespan make it an excellent choice for applications ranging from mode selection in industrial equipment to user-configurable settings in consumer electronics or control interfaces in automotive systems.
This Click board™ is designed in a unique format supporting the newly introduced MIKROE feature called "Click Snap." Unlike the standardized version of Click boards, this feature allows the main sensor area to become movable by breaking the PCB, opening up many new possibilities for implementation. Thanks to the Snap feature, the RDS6-16S-1065-1-SMT can operate autonomously by accessing its signals directly on the pins marked 1-8. Additionally, the Snap part includes a specified and fixed screw hole position, enabling users to secure the Snap board in their desired location.
This Click board™ connects to the host MCU via the TCA9536, a 4-bit general-purpose I/O expander from Texas Instruments. Using the I2C communication protocol, the TCA9536 enables straightforward monitoring of the switch's position by reporting its state to the host MCU. This integration simplifies interpreting the switch's output, reducing the need for additional hardware or complex wiring.
This Click board™ can operate with either 3.3V or 5V logic voltage levels selected via the VCC SEL jumper. This way, both 3.3V and 5V capable MCUs can use the communication lines properly. Also, this Click board™ comes equipped with a library containing easy-to-use functions and an example code that can be used as a reference for further development.
Click Snap is an innovative feature of our standardized Click add-on boards, introducing a new level of flexibility and ease of use. This feature allows for easy detachment of the main sensor area by simply snapping the PCB along designated lines, enabling various implementation possibilities. For detailed information about Click Snap, please visit the official page dedicated to this feature.
Type
Pushbutton/Switches
Applications
Ideal for industrial equipment, consumer electronics, and automotive systems
On-board modules
RDS6-16S-1065-1-SMT - 16-position notched cap surface mount DIP switch from Same Sky
Key Features
Continuous 360-degree actuator rotation with tactile notches, rated for 10,000 operational steps, I/O expander with I2C interface, Click Snap feature, selectable 3.3V or 5V operation, and more
Interface
I2C
Feature
Click Snap,ClickID
Compatibility
mikroBUS™
Click board size
L (57.15 x 25.4 mm)
Input Voltage
3.3V or 5V
This table shows how the pinout on Rotary Switch Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | - | Power LED Indicator |
JP1 | VCC SEL | Left | Power Voltage Level Selection 3V3/5V: Left position 3V3, Right position 5V |
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | - | 5 | V |
Actuator Rotation | - | - | 360 | deg |
We provide a library for the Rotary Switch Click as well as a demo application (example), developed using MIKROE compilers. The demo can run on all the main MIKROE development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager (recommended), downloaded from our LibStock™ or found on MIKROE github account.
Library Description
This library contains API for Rotary Switch Click driver.
Key functions
rotaryswitch_get_position
This function reads the rotary switch position.
rotaryswitch_write_reg
This function writes a desired data to the selected register by using I2C serial interface.
rotaryswitch_read_reg
This function reads data from the selected register by using I2C serial interface.
Example Description
This example demonstrates the use of Rotary Switch Click by reading and displaying the switch position on the USB UART.
void application_task ( void )
{
static uint8_t old_position = 0xFF;
uint8_t position = 0;
if ( ( ROTARYSWITCH_OK == rotaryswitch_get_position ( &rotaryswitch, &position ) ) &&
( position != old_position ) )
{
Delay_ms ( 20 );
// Double-check for debouncing
if ( ( ROTARYSWITCH_OK == rotaryswitch_get_position ( &rotaryswitch, &position ) ) &&
( position != old_position ) )
{
old_position = position;
log_printf ( &logger, " Switch position: %.1Xrn", ( uint16_t ) position );
}
}
Delay_ms ( 20 );
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager (recommended), downloaded from our LibStock™ or found on MIKROE github account.
Other MIKROE Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MIKROE compilers.
This Click board™ is supported with mikroSDK - MIKROE Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
For more information about mikroSDK, visit the official page.
NOTE: Please be advised that any peripheral devices or accessories shown connected to the Click board™ are not included in the package. Check their availability in our shop or in the YMAN section below.