MikroElektronika
Tilt 2 Click
Tilt 2 Click
SKU:MIKROE-3343
Out of stock
Couldn't load pickup availability
Share
There are many applications that use this kind of switches. It can be used in various consumer electronic devices, such as portable heaters, video games, pinball machines, various kinds of position-activated toys, and similar applications, but it can also be used for some safety and security control systems, for soldering irons, etc.
How does it work?
Conventional tilt sensors are usually made by using a drop of mercury in an enclosed casing. When tilted, the liquid mercury will close its contacts. Although efficient, this approach is not very safe, as the mercury could escape the enclosure, and if not properly sealed, there might be some mercury vapor leakage through the enclosure itself. Mercury vapors are very toxic and should be avoided.
The RB-441-45, a 45° rolling ball sensor switch by C&K Switches, a factory specialized in the production of various kinds of switches. The RB-441-45 sensor does not use any mercury. It has a gold-plated ball in a PBT plastic enclosure. The PBT plastic enclosure ensures a high electrical insulation, while the gold plating ensures a low ON resistance. However, the sensor is not intended to be operated on high voltages. It should not be operated at more than 24V, while only a low signal-level current up to 25mA is allowed to flow through its contacts.
The working principle of the RB-441-45 sensor switch with the rolling ball is simple. While it stands still, perpendicular to the ground surface, a small gold-plated rolling ball will be in contact with all four gold-plated terminals. As the ball moves, it will break the contacts. This is guaranteed to happen when the enclosure is tilted by 45° (±15°). Both the ball and the contacts are gold-plated for several reasons: the ball will not stick to the contacts, the contact resistance will be minimized, and there will be no corrosion of the outer layer, ensuring the long life-cycle. The endurance of the tilt switch is specified to 100,000 cycles. The maximum voltage across the terminals should not exceed 24VDC, while the current should stay below 25mA. This prevents forming of micro-arcs that could cause surface damage and shorten the life-cycle of the sensor switch.
Besides the tilt, the RB-441-45 sensor switch is also able to detect shaking, since any displacement of the ball will break the circuit. This extends its usability to various applications where a sudden movement might occur, such when hitting or punching something. By being able to sense even this type of movements, the switch can be used in various public entertainment machines (slot, pinball, videogame consoles…).
Besides the RB-441-45 sensor switch, Tilt 2 click features a LED, which is driven via the NPN transistor: when the tilt sensor switch is closed, the transistor will be in a conductive state, and LED labeled as ACTIVE will be turned ON. When the switch contacts are broken (when tilted more than 45° or while being shaken), the ACTIVE LED will be turned OFF. The VCC voltage is brought to the PIN 1. The VCC voltage can be selected by an SMD Jumper labeled as VCC SEL. It can be used to select either 3.3V or 5V from the mikroBUS™ power rails.
Besides the LED, the INT pin from the mikroBUS™ is also connected to the sensor switch, allowing the host MCU to read the state of this switch. This pin is pulled to a LOW logic level by a resistor, so when deactivated, it will not float, but pulled to a LOW Logic level instead. When Activated, this pin will be set to a HIGH logic level, determined by a VCC SEL jumper. This allows the Click board™ to be used with both 3.3V and 5V MCUs. To ensure a reliable detection and bounce-free operation, the user should utilize the debouncing routines in the software. Due to the nature of the sensor switch, the software debouncing is a better solution in this case. Unlike the hardware solution, the software debouncing allows selecting the debouncing time, according to the specific application.
Specifications
Type | Motion |
Applications | It can be used in various consumer electronic devices, such as portable heaters, video games, pinball machines, various kinds of position-activated toys, and similar applications, but it can also be used for some safety and security control systems, for soldering irons, etc. |
On-board modules | RB-441-45, a 45° rolling ball sensor switch by C&K Switches |
Key Features | A high durability, up to 100,000 cycles, no mercury is used, gold plated ball and contacts ensure low ON resistance. PBT plastic casing has a high dielectric constant |
Interface | GPIO |
Input Voltage | 3.3V or 5V |
Click board size | M (42.9 x 25.4 mm) |
Pinout diagram
This table shows how the pinout on Tilt 2 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 | ACTIVE | - | Activation LED indicator |
LD2 | PWR | - | Power LED indicator |
J1 | VCC SEL | Left | Power supply voltage selection: left position 3.3V, right position 5V |
Software support
We provide a library for the Tilt 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.
Library Description
The library contains a tilt detection function.
Key functions:
-
uint8_t tilt2_tiltDetection()
- Tilt detection.
Examples description
The application is composed of the three sections :
- System Initialization - Sets INT pin as INPUT for tilt detection.
- Application Initialization - Initialization driver init.
- Application Task - (code snippet) - Tilt detection, if the tilt is detected, the message is logs on USBUART.
void applicationTask() { uint8_t tilt; tilt = tilt2_tiltDetection(); if(tilt == _TILT2_TILT_DETECTION) { mikrobus_logWrite(" Tilt detection.. ", _LOG_LINE); Delay_ms( 300 ); } }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
GPIO
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. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.




New Products
-
Sold out
OAK 4 D Pro Wide
Vendor:LuxonisRegular price Rs. 117,969.00Regular priceUnit price / perSold out -
Sold out
OAK 4 D Pro Fixed Focus
Vendor:LuxonisRegular price Rs. 106,719.00Regular priceUnit price / perSold out -
Sold out
OAK 4 D Pro Auto Focus
Vendor:LuxonisRegular price Rs. 106,719.00Regular priceUnit price / perSold out -
Sold out
OAK 4 D Auto Focus
Vendor:LuxonisRegular price Rs. 95,479.00Regular priceUnit price / perSold out -
Sold out
OAK 4 D Fixed Focus
Vendor:LuxonisRegular price Rs. 95,479.00Regular priceUnit price / perSold out -
Sold out
OAK 4 D Wide
Vendor:LuxonisRegular price Rs. 106,719.00Regular priceUnit price / perSold out -
Sold out
OAK-FFC IMX577 M12
Vendor:POLOLURegular price Rs. 8,499.00Regular priceUnit price / perSold out -
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 20A
Vendor:POLOLURegular price Rs. 329.00Regular priceUnit price / perSold out -
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 25A
Vendor:POLOLURegular price Rs. 439.00Regular priceUnit price / perSold out -
Pololu I²C Isolator, ISO1640
Vendor:POLOLURegular price Rs. 449.00Regular priceUnit price / per -
3pi+ 32U4 OLED Robot Kit with 30:1 MP Motors (Standard Edition Kit)
Vendor:POLOLURegular price Rs. 15,549.00Regular priceUnit price / per -
Conductivity Calibration K 1.0 Set (4 pouches)
Vendor:Atlas ScientificRegular price Rs. 1,599.00Regular priceUnit price / perSold out -
Analog Discovery 3 Pro Bundle
Vendor:DigilentRegular price Rs. 42,569.00Regular priceUnit price / per -
Lighthouse swarm bundle - Crazyflie 2.1+ (250mAh batteries)
Vendor:BitcrazeRegular price Rs. 474,999.00Regular priceUnit price / perSold out -
Loco Swarm bundle - Crazyflie 2.1+ (250mAh batteries)
Vendor:BitcrazeRegular price Rs. 544,999.00Regular priceUnit price / per -
Kopis X8 Cinelifter 5" Kit - Caged (Frame Kit)
Vendor:HolybroRegular price Rs. 28,199.00Regular priceUnit price / per -
Atlas Scientific i3 InterLink
Vendor:Atlas ScientificRegular price Rs. 6,349.00Regular priceUnit price / per -
PoE Injector
Vendor:LuxonisRegular price Rs. 2,099.00Regular priceUnit price / per -
1-Port VINT Hub Phidget
Vendor:PhidgetsRegular price Rs. 2,699.00Regular priceUnit price / per -
Power Distribution Board (PDB) Board (With XT30 Pre-soldered)
Vendor:HolybroRegular price Rs. 1,099.00Regular priceUnit price / per -
Holybro 1045 Propeller 2 Pair CW+CCW-Black
Vendor:HolybroRegular price Rs. 1,549.00Regular priceUnit price / per -
ACS37220LEZATR-100B3 Current Sensor Large Carrier -100A to +100A, 3.3V
Vendor:POLOLURegular price Rs. 829.00Regular priceUnit price / per -
CT433-HSWF50MR TMR Current Sensor Compact Carrier -50A to +50A, 3.3V
Vendor:POLOLURegular price Rs. 1,039.00Regular priceUnit price / per -
A5984 Stepper Motor Driver Carrier, Adjustable Current, Blue Edition
Vendor:POLOLURegular price Rs. 409.00Regular priceUnit price / per -
A5984 Stepper Motor Driver Carrier, Fixed 1A@5V / 660mA@3.3V, Blue Edition (Soldered Header Pins)
Vendor:POLOLURegular price Rs. 489.00Regular priceUnit price / per