Mikroelektronika d.o.o.
Keylock Click Board
Keylock Click Board
Couldn't load pickup availability
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.
![Mikroelektronika d.o.o. MIKROE-2564 Keylock Click Board - The Debug Store UK](http://thedebugstore.com/cdn/shop/products/mikroelektronika-d-o-o-click-board-keylock-click-board-30245938757821.jpg?v=1685029623&width=1445)
![Mikroelektronika d.o.o. MIKROE-2564 Keylock Click Board - The Debug Store UK](http://thedebugstore.com/cdn/shop/products/mikroelektronika-d-o-o-click-board-keylock-click-board-30245971525821.jpg?v=1685223118&width=1445)
![Mikroelektronika d.o.o. MIKROE-2564 Keylock Click Board - The Debug Store UK](http://thedebugstore.com/cdn/shop/products/mikroelektronika-d-o-o-click-board-keylock-click-board-30245915427005.jpg?v=1685029791&width=1445)
![Mikroelektronika d.o.o. MIKROE-2564 Keylock Click Board - The Debug Store UK](http://thedebugstore.com/cdn/shop/products/mikroelektronika-d-o-o-click-board-keylock-click-board-30245915263165.jpg?v=1685223121&width=1445)
![Mikroelektronika d.o.o. MIKROE-2564 Keylock Click Board - The Debug Store UK](http://thedebugstore.com/cdn/shop/products/mikroelektronika-d-o-o-click-board-keylock-click-board-29637152571581.jpg?v=1685029796&width=1445)
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).
Software Support
Code examples for Keylock Click Board™, written for MikroElektronika hardware and compilers are available on Libstock.
CODE SNIPPET
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 }
Keylock Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.
![banner Image](http://thedebugstore.com/cdn/shopifycloud/shopify/assets/no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c244f437e4f8ba93bbf7b11b53f7824c_medium.gif)