# Title: Keylock Click Board™ ## Description: The Keylock Click Board™ carries a processed sealed key lock mechanism that can be set in three different positions. The click is designed to run on either 3.3V or 5V power supply. It communicates with the target microcontroller over the PWM, INT, and AN pin on the mikroBUS™ line. The key can be removed from the lock in any of the three positions. The package contains two keys and one protective cap. KEYLOCK FEATURES The contact mechanism provides unequaled logic-level reliability and smoother, positive detent actuation. Detent mechanism, with its spring-operated steel ball, gives crisp, positive action for accurate switch setting. 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 Detent mechanism, with its spring-operated steel ball, gives crisp, positive action for accurate switch setting Interface GPIO Compatibility mikroBUS Click board size S (28.6 x 25.4 mm) Input Voltage 3.3V or 5V PINOUT DIAGRAM This table shows how the pinout of the Keylock Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns). Notes Pin Pin Notes Output position 1 1 1 AN PWM 16 2 Output position 2 NC 2 RST INT 15 3 Output position 3 NC 3 CS TX 14 NC NC 4 SCK RX 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 ## Product type: Click Board ## Vendor: Mikroelektronika d.o.o. ## Tags: Click Board, HMI, MikroE, NKK Switches, Switch ## Price range: 18.9 - 18.9 GBP ## Link: https://thedebugstore.com/products/mikroe-2564-keylock-click-board-uk ## Compare-at price range: 27.0 - 27.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-2564, Available: yes, Inventory: 1 ## Metafields - full_description:
The Keylock Click Board™ carries a processed sealed key lock mechanism that can be set in three different positions. The click is designed to run on either 3.3V or 5V power supply. It communicates with the target microcontroller over the PWM, INT, and AN pin on the mikroBUS™ line.

The key can be removed from the lock in any of the three positions. The package contains two keys and one protective cap.
The contact mechanism provides unequaled logic-level reliability and smoother, positive detent actuation.
Detent mechanism, with its spring-operated steel ball, gives crisp, positive action for accurate switch setting.
| 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 | Detent mechanism, with its spring-operated steel ball, gives crisp, positive action for accurate switch setting |
| Interface | GPIO |
| Compatibility | mikroBUS |
| Click board size | S (28.6 x 25.4 mm) |
| Input Voltage | 3.3V or 5V |
This table shows how the pinout of the Keylock Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
- description_tag: The Keylock Click Board™ carries a processed sealed key lock mechanism that can be set in three different positions. The Click Board™ is designed to run on either 3.3V or 5V power supply. It communicates with the target microcontroller over the PWM, INT, and AN pin on the MikroBUS line. Available from Debug Store UK. - title_tag: MikroE Keylock Click Board™ (MIKROE-2564) - manufacturer: Mikroelektronika d.o.o. - warranty: 12 months - amazon_enable: TRUE - amazon_title: Keylock Click Board - amazon_product_type: computercomponent - amazon_block: FALSE - amazon_prime_enable: FALSE - amazon_search: MikroElektronika Microelectronica MIKROE-1100 - amazon_uk_price: 22 - amazon_uk_currency: GBP - amazon_de_currency: EUR - amazon_de_price: 24.86 - amazon_fr_currency: EUR - amazon_fr_price: 24.86 - amazon_es_currency: EUR - amazon_es_price: 24.86 - amazon_nl_currency: EUR - amazon_nl_price: 24.86 - amazon_it_currency: EUR - amazon_it_price: 24.86 - amazon_se_curency: SEK - amazon_se_price: 250.8 - amazon_product_id: 8606018711444 - amazon_product_id_type: EAN - amazon_update: Update - amazon_short_description: The Keylock Click Board™ carries a processed sealed key lock mechanism that can be set in three different positions. The Click Board™ is designed to run on either 3.3V or 5V power supply. It communicates with the target microcontroller over the PWM, INT, and AN pin on the MikroBUS line.The Click Board™ comes with two keys and a protective cap for the mechanism. - amazon_long_description:
The Keylock Click Board™ carries a processed sealed key lock mechanism that can be set in three different positions. The Click is designed to run on either 3.3V or 5V power supply. It communicates with the target microcontroller over the PWM, INT, and AN pin on the mikroBUS line.
.
The key can be removed from the lock in any of the three positions. The package contains two keys and one protective cap.
The contact mechanism provides unequaled logic-level reliability and smoother, positive detent actuation.
Detent mechanism, with its spring-operated steel ball, gives crisp, positive action for accurate switch setting.
Code examples for Keylock Click Board™, written for MikroElektronika hardware and compilers are available on Libstock.
This is a simple example of how the Keylock Click Board™ works, depending on the state of the Keylock click the appropriate position will be detected.
01 uint8_t state;
02 char txt[20];
03
04 void systemInit()
05 {
06 ANCON0 = 0x00;
07 ANCON1 = 0x00;
08 ANCON2 = 0x00;
09 UART1_Init(9600);
10 }
11
12 void Keylock_Init()
13 {
14 KEYLOCK_STATE_1_Direction = 1;
15 KEYLOCK_STATE_2_Direction = 1;
16 KEYLOCK_STATE_3_Direction = 1;
17 }
18
19 void Keylock_Task()
20 {
21 state = KEYLOCK_STATE_1*1 + KEYLOCK_STATE_2*2 + KEYLOCK_STATE_3*3;
22 UART1_Write_text("Keylock is in state:");
23 IntToStr(state,txt) ;
24 UART1_Write_Text(txt);
25 UART1_Write_Text( "rn" );
26 delay_ms(500);
27 }
28
29 void main()
30 {
31 systemInit();
32 Keylock_Init();
33
34 while( 1 )
35 {
36 Keylock_Task();
37 }
38 }
The Keylock Click Board™ carries a processed sealed key lock mechanism that can be set in three different positions. The Click Board™ is designed to run on either 3.3V or 5V power supply. It communicates with the target microcontroller over the PWM, INT, and AN pin on the MikroBUS line.
The Keylock Click Board™ comes with two keys and a protective cap for the mechanism.