How does it work?
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
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.
Specifications
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
Pinout diagram
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).
Onboard settings and indicators
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 |
Rotary Switch Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | – | 5 | V |
Actuator Rotation | – | – | 360 | deg |
Software Support
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:
- MikroSDK.Board
- MikroSDK.Log
- Click.RotarySwitch
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.
mikroSDK
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.