Categories


Tamper 2 click

Product Code: MIKROE-2552

Tamper 2 click
Tamper 2 click
Tamper 2 click
Tamper 2 click
Tamper 2 click

₹1,369.00
GST inclusive



Qty:

Availability: 1 In Stock


Add to Wish List



Tamper 2 click contains a levered D2HW-A221D switch by Omron, which outputs signal in both positions - pressed and released. Omron switches, also known as microswitches, are well renowned for their reliability and endurance. The PCB of this click is designed so that the lever of the microswitch is easily accessible, making the click useful for all kinds of different applications, where precise, two position switches are required. Both the NO (Normally Open) and NC (Normally Closed) pins of the microswitch are routed to mikroBUS™, so it can be easily connected to the microcontroller.

Switches of this kind are widely used in many different applications. The most common use of the Tamper 2 click is door opening or closing detection, detecting the end of travel of a linear actuator, a Morse code input device and so on.

How does it work?

Tamper 2 click contains a levered D2HW-A221D microswitch by Omron, specifically positioned on the board so it is easily accessible for interacting with various objects that could press the lever, activating the microswitch that way. The microswitch is actuated by applying very little physical force, using a tipping-point mechanism which results in fast and reliable snap-in action. It also has both NC and NO contacts routed to the mikroBUS™ so both states of the switch can be detected. Both lines are equipped with the RC filters, which serve as debouncing elements for the switch and also to pull down the lines when they are left afloat. This way, the contact bouncing is reduced even further, resulting in an accurate detection of the switching event.

The switch itself is very endurable and its rated up to 42VDC / 0.5A, also can endure a very high number of switching cycles – up to 1000000. 

The click board™ also features an onboard jumper selector, which is used to select the voltage level that is connected to the microswitch input pin, making it usable for both 3V3 and 5V capable microcontoller pins.

Specifications

Type Button
Applications Door opening or closing detection, detecting the end of travel of a linear actuator, a Morse code input device, etc.
On-board modules D2HW-A221D switch by Omron
Key Features High-quality Omron microswitch, high mechanical and electrical durability, debouncing features
Interface GPIO
Input Voltage 3.3V or 5V
Click board size S (28.6 x 25.4 mm)

Pinout diagram

This table shows how the pinout on Tamper 2 click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).

Notes Pin Mikrobus logo.png Pin Notes
Normally closed NCL 1 AN PWM 16 NC  
  NC 2 RST INT 15 NOP Normally open
  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 3V3 7 3.3V 5V 10 5V Power supply
Ground GND 8 GND GND 9 GND Ground

Tamper 2 click electrical specifications

Description Min Typ Max Unit
Contact resistance      100 mΩ
Mechanical durability (30 operations/min)      1 milion cycles
Electrical durability (20 operations/min)     10000 cycles

Onboard settings and indicators

Label Name Default Description
JP1 VCC SEL Left Power supply voltage selection. Left position 3V3, right position 5V
LD1 Power LED   Power LED indicates that the click is powered on
S1 SWITCH   Onboard switch

Software support

We provide an example for the Tamper 2 click 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.

Examples Description

The application is composed of three sections :

  • System Initialization - Initializes UART module used for data logging
  • Application Initialization - Initializes Tamper 2 click GPIO pins
  • Application Task - Check the state of both GPIO pins and reports current state by logging information to UART
void Tamper_2_click_Task()
{
    if (TAMPER_ON_STATE == 1)
    {
        UART0_Write_text("Tamper 2 click is in ON statern");
    }
    
    if (TAMPER_OFF_STATE == 1)
    {
        UART0_Write_text("Tamper 2 click is in OFF statern");
    }
    
    Delay_ms(500);
}

The example code for all architectures and compilers, and ready to use projects can be found on our LibStock page.


Other mikroE Libraries used in the example:

  • UART


Additional notes and information

Depending on the development board you are using, you may need USB UART clickUSB UART 2 clickor 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.

Downloads

 mikroBUS™ Standard specifications 

 D2HW-A221D datasheet

Tamper 2 click schematic

LibStock: Tamper 2 click library 

Write a review
Your Name:


Your Review:
Note: HTML is not translated!
Rating:
Bad           Good

Enter the code in the box below:


Tags: Tamper, 2, click, MIKROE, 2552,

© 2024, MG Automation Technologies. Powered by MG Super LABS.Find us on Google+
Designed with by