# Title: Keylock 2 Click Board™ ## Description: Some operating procedures require switching of the electrical power to isolate a machine. After the power has been switched off the key can be released to take the next step, for example opening an access door. The Keylock 2 Click Board™ holds sealed mechanism that are mostly used in automated PC board processing and can be used as an actuator for various applications. If your project require rotary type of actuator the Keylock 2 Click Board™ might be a perfect solution for you. How Does The Keylock 2 Click Board™ Work? The Keylock 2 Click Board™ uses SK13AEG13 switch keylock from the company NKK Switches, with three position output states. The key can be removed from the lock in any of the three positions. The Click board package contains two keys and one protective cap. The SK13AEG13 key has hosing and brushing of high insulating material which withstands over 15 kilovolts of electrostatic discharge, thus providing antistatic protect for the main circuitry. This mechanism has mechanical life of 30,0000 cycles and electrical 20,0000 cycles with moving angle of 45° from position one to three there are no neutral positions. For switching task is in charge detent mechanism with its spring-operated steel ball, that gives district feel and crisp actuation for accurate switch setting as well as determining the exact position. This is very nice mechanical feedback that gives you more control during every switching movement. The SK13AEG13 casing is small and compact occupying very little space on the PCB. Mouthing position of this mechanism in vertical (relative to PCB) with 9mm diameter smooth bushing on the top for elegant implementation. For interaction with the system this boards have three GPIO outputs connected to the mikroBUS™ pins for each position state keylock mechanism has. Logic level on the output pins can be selected with the VCC SEL jumper on the board (JP1) for the desired host board from 3.3V to 5V. SPECIFICATIONS Type Pushbutton/Switches Applications Use the three different positions of the mechanism to turn applications on or off, for home security applications, for industrial equipment, etc. On-board modules Keylock switch with 3 positions Key Features Durability of minimum 30.000 mechanical cycles, subminiature size of the mechanism, removable key in three positions, Interface GPIO Compatibility mikroBUS Click board size M (42.9 x 25.4 mm) Input Voltage 3.3V or 5V PINOUT DIAGRAM This table shows how the pinout of the Keylock 2 Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns). Notes Pin Pin Notes NC 1 AN PWM 16 2 Output position 2 Output position 1 1 2 RST INT 15 3 Output position 3 NC 3 CS RX 14 NC NC 4 SCK TX 13 NC NC 5 MISO SCL 12 NC NC 6 MOSI SDA 11 NC Power Supply 3.3V 7 3.3V 5V 10 5V Power Supply Ground GND 8 GND GND 9 GND Ground ONBOARD SETTINGS AND INDICATORS Label Name Default Description LD1 PWR - Power LED Indicator JP1 ADDR Left Power supply voltage selection: left position 3V3, right position 5V SW1 - - Three position key lock mechanism KEYLOCK 2 CLICK ELECTRICAL SPECIFICATIONS Description Min Typ Max Unit Logic level 3.3V - 5V V Applicable current range 0.1 - 100 mA Mechanical life 30000 - - Cycles Contact resistance - - 100 mΩ Insulation resistance 100 - - MΩ ## Product type: Click Board ## Vendor: Mikroelektronika d.o.o. ## Tags: Click Board, HMI, MikroE, NKK Switches, Switch ## Price range: 17.5 - 17.5 GBP ## Link: https://thedebugstore.com/products/mikroe-3471-keylock-2-click-board-uk ## Compare-at price range: 25.0 - 25.0 GBP ## Options - Title: Default Title ## Collections - [New Products](https://thedebugstore.com/a/llms/collections/new-products-debug-store) - [Mikroelektronika d.o.o. (MikroE)](https://thedebugstore.com/a/llms/collections/mikroelektronika-catalogue-uk) - [HMI Interface Click Boards™](https://thedebugstore.com/a/llms/collections/hmi-interface-click-boards-catalogue-uk) - [MikroE Click Boards™](https://thedebugstore.com/a/llms/collections/mikroe-click-boards-catalogue-uk) - [Pushbutton/Switch Click Boards™](https://thedebugstore.com/a/llms/collections/pushbutton-switch-click-boards-catalogue) - [Click Boards™ Summer Sale](https://thedebugstore.com/a/llms/collections/inventory-sale) - [NKK Switches Device Support Catalogue - Debug Store](https://thedebugstore.com/a/llms/collections/nkk-switches-device-support) - [MikroE Sale](https://thedebugstore.com/a/llms/collections/mikroe-sale) - [MIKROE Stock](https://thedebugstore.com/a/llms/collections/mikroe-products-in-stock-sale) ## Variants - Default Title, SKU: MIKROE-3471, Available: yes, Inventory: 1 ## Metafields - full_description:
Some operating procedures require switching of the electrical power to isolate a machine. After the power has been switched off the key can be released to take the next step, for example opening an access door. The Keylock 2 Click Board™ holds sealed mechanism that are mostly used in automated PC board processing and can be used as an actuator for various applications. If your project require rotary type of actuator the Keylock 2 Click Board™ might be a perfect solution for you.
The Keylock 2 Click Board™ uses SK13AEG13 switch keylock from the company NKK Switches, with three position output states. The key can be removed from the lock in any of the three positions. The Click board package contains two keys and one protective cap.

The SK13AEG13 key has hosing and brushing of high insulating material which withstands over 15 kilovolts of electrostatic discharge, thus providing antistatic protect for the main circuitry. This mechanism has mechanical life of 30,0000 cycles and electrical 20,0000 cycles with moving angle of 45° from position one to three there are no neutral positions.
For switching task is in charge detent mechanism with its spring-operated steel ball, that gives district feel and crisp actuation for accurate switch setting as well as determining the exact position. This is very nice mechanical feedback that gives you more control during every switching movement.
The SK13AEG13 casing is small and compact occupying very little space on the PCB. Mouthing position of this mechanism in vertical (relative to PCB) with 9mm diameter smooth bushing on the top for elegant implementation.
For interaction with the system this boards have three GPIO outputs connected to the mikroBUS™ pins for each position state keylock mechanism has. Logic level on the output pins can be selected with the VCC SEL jumper on the board (JP1) for the desired host board from 3.3V to 5V.
| Type | Pushbutton/Switches |
| Applications | Use the three different positions of the mechanism to turn applications on or off, for home security applications, for industrial equipment, etc. |
| On-board modules | Keylock switch with 3 positions |
| Key Features | Durability of minimum 30.000 mechanical cycles, subminiature size of the mechanism, removable key in three positions, |
| Interface | GPIO |
| Compatibility | mikroBUS |
| Click board size | M (42.9 x 25.4 mm) |
| Input Voltage | 3.3V or 5V |
This table shows how the pinout of the Keylock 2 Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
| Notes | Pin | ![]() |
Pin | Notes | |||
|---|---|---|---|---|---|---|---|
| NC | 1 | AN | PWM | 16 | 2 | Output position 2 | |
| Output position 1 | 1 | 2 | RST | INT | 15 | 3 | Output position 3 |
| NC | 3 | CS | RX | 14 | NC | ||
| NC | 4 | SCK | TX | 13 | NC | ||
| NC | 5 | MISO | SCL | 12 | NC | ||
| NC | 6 | MOSI | SDA | 11 | NC | ||
| Power Supply | 3.3V | 7 | 3.3V | 5V | 10 | 5V | Power Supply |
| Ground | GND | 8 | GND | GND | 9 | GND | Ground |
| Label | Name | Default | Description |
|---|---|---|---|
| LD1 | PWR | - | Power LED Indicator |
| JP1 | ADDR | Left | Power supply voltage selection: left position 3V3, right position 5V |
| SW1 | - | - | Three position key lock mechanism |
| Description | Min | Typ | Max | Unit |
|---|---|---|---|---|
| Logic level | 3.3V | - | 5V | V |
| Applicable current range | 0.1 | - | 100 | mA |
| Mechanical life | 30000 | - | - | Cycles |
| Contact resistance | - | - | 100 | mΩ |
| Insulation resistance | 100 | - | - | MΩ |
The Keylock 2 Click Board™ carries an antistatic-process sealed keylock mechanism that has three positions. This board is intended to be used for implementation into applications which require mechanical lock mechanism, as well as for testing the same concepts in early development stage. To determine the position of the key three GPIO pins are used on the mikroBUS line (PWM, INT, and RST pin). Because it can easily be installed in place of the standard lock, it is perfectly suited for development of various home security applications, industrial equipment, etc
The Keylock 2 Click Board™ comes with two keys and a protective cap for the mechanism.
- amazon_main_image: https://www.thedebugstore.com/images/product/lg-keylock-2-click-3471-front_1.jpg - amazon_other_image_1: https://www.thedebugstore.com/images/product/lg-keylock-2-click-3471-back_1.jpg - amazon_other_image_2: https://www.thedebugstore.com/images/product/lg-keylock-2-click-3471-in-use_1.jpg - amazon_other_image_3: https://www.thedebugstore.com/images/product/lg-keylock-2-click-3471-in-use_1.jpg - amazon_browse_node: 428655031 - mpn: MIKROE-3471 - backorder_label: If no stock shown above, check availability - google_product_category: 2082 - condition: new - custom_product: false - mpn: MIKROE-3471 - google_product_category: Electronics - custom_label_0: Click Board - examples:We provide a library for the Keylock 2 Click Board™ on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
The library contains a function for reading the state of a pin and a function that, based on the state of 3 pins - detects the position of the key.
uint8_t keylock2_getPinState(uint8_t pin) - Get Pin State.uint8_t keylock2_getPosition() - Get Key Position.The application is composed of three sections :
void applicationTask()
{
keyPosition = keylock2_getPosition();
if(oldPosition != keyPosition)
{
if(keyPosition == _KEYLOCK2_POSITION_1)
{
mikrobus_logWrite(" -- FIRST position -- ", _LOG_LINE);
}
else if(keyPosition == _KEYLOCK2_POSITION_2)
{
mikrobus_logWrite(" -- SECOND position -- ", _LOG_LINE);
}
else
{
mikrobus_logWrite(" -- THIRD position -- ", _LOG_LINE);
}
}
oldPosition = keyPosition;
Delay_ms( 500 );
}
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
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. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.
The Keylock 2 Click Board™ is supported with mikroSDK - MikroElektronika 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.
- attachments: [{"download_file":[{"download_file":"Keylock 2 Click Board™ Schematic"}],"download_filetype":[{"download_filetype":"pdf"}]},{"download_file":[{"download_file":"nKK Switches Series SK Keyswitch Datasheet"}],"download_filetype":[{"download_filetype":"pdf"}]}] - device_vendor: NKK Switches - device_type: SK13AEG13 - warranty: 12 months - brand: MikroE - manufacturer: Mikroelektronika d.o.o. - badge: - widget:The Keylock 2 Click Board™ carries an antistatic-process sealed keylock mechanism that has three positions. This board is intended to be used for implementation into applications which require mechanical lock mechanism, as well as for testing the same concepts in early development stage. To determine the position of the key three GPIO pins are used on the mikroBUS line (PWM, INT, and RST pin). Because it can easily be installed in place of the standard lock, it is perfectly suited for development of various home security applications, industrial equipment, etc
The Keylock 2 Click Board™ comes with two keys and a protective cap for the mechanism.