20%
OFF
MIKROE-5146
18 g
Status:
IR Gesture 2 Click is a compact add-on board that provides contactless gesture recognition. This board features the MAX25405, a data-acquisition system for the gesture and proximity sensing from Analog Devices. Detection distance is improved by integrating a complete optical system with a lens, aperture, visible light filter, and a 6x10 photodetector array. The proximity, hand detection, and gesture recognition functions of the MAX25405 operate by detecting the light reflected from the controlled IR-LED light sources driven directly from the MAX25405. It can also detect these gestures even when exposed to bright ambient light and process data from the sensor through an SPI interface. This Click board™ is suitable for various gesture sensing applications, from hand swipe gestures (left, right, up, down, wave), air click, and flicks to multizone proximity detection.
IR Gesture 2 Click is supported by a mikroSDK compliant library, which includes functions that simplify software development. This Click board™ comes as a fully tested product, ready to be used on a system equipped with the mikroBUS™ socket.
This product is no longer in stock
Availability date:
IR Gesture 2 Click as its foundation uses the MAX25405, a data-acquisition system for gesture and proximity sensing from Analog Devices. This Click board™ represents an infrared-based dynamic optical solution that can sense a broader range of motions at extended distances. The MAX25405 detects broader movement proximity and doubles the sensing range to 40cm compared to earlier generations. It recognizes the following independent gestures: hand swipe gestures (left, right, up, down, wave), air click and flicks, finger and hand rotation (clockwise and counter-clockwise), and multizone proximity detection.
Along with integrated optics and a 6x10 infrared sensor array, the MAX25405 also includes a glass lens which increases sensitivity and improves the signal-to-noise ratio. The proximity, hand detection, and gesture recognition functions of the MAX25405 operate by detecting the light reflected from the controlled IR-LED light sources (SFH 4248-VAW and SFH 4249-UV) driven directly from the MAX25405. It can also detect these gestures even when exposed to bright ambient light and process data from the sensor through a serial interface. The light source PWM duty cycle is programmable from 1/16 to 16/16, where LEDs are pulsed on one or more times in a programmable sequence repeated for every sample.
IR Gesture 2 Click communicates with MCU using the 12-bit SPI serial interface compatible with standard SPI, QSPI™, MICROWIRE™, and digital signal processors (DSPs), with a maximum frequency of 6MHz. This Click board™ also possesses an additional interrupt pin, routed to the INT pin on the mikroBUS™ socket, indicating when a specific interrupt event occurs, such as the end of a conversation sample sequence.
This Click board™ can be operated only with a 3.3V logic voltage level. The board must perform appropriate logic voltage level conversion before using MCUs with different logic levels. However, the Click board™ comes equipped with a library containing functions and an example code that can be used, as a reference, for further development.
Type
Motion
Applications
Can be used for various gesture sensing applications, from hand swipe gestures (left, right, up, down, wave), air click, and flicks to multizone proximity detection
On-board modules
MAX25405 - data-acquisition system for gesture and proximity sensing from Analog Devices
Key Features
Flexible gesture-sensing solution, low power consumption, supports swipe, rotation, and proximity gestures, highly integrated, detect gestures even when exposed to bright ambient light, and more
Interface
SPI
Feature
No ClickID
Compatibility
mikroBUS™
Click board size
M (42.9 x 25.4 mm)
Input Voltage
3.3V
This table shows how the pinout on IR Gesture 2 Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | - | Power LED Indicator |
LD6&LD8 | - | - | Infrared Emitter (SFH 4249-UV) |
LD7&LD9 | - | - | Infrared Emitter (SFH 4248-VAW) |
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | - | 3.3 | - | V |
IR LED Wavelenght | - | 940 | - | nm |
Field of View | - | ±30 | - | Deg |
Resolution | - | 12 | - | bits |
Operating Temperature Range | -40 | +25 | +85 | °C |
We provide a library for the IR Gesture 2 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Library Description
This library contains API for IR Gesture 2 Click driver.
Key functions
irgesture2_get_int_pin
This function returns the INT pin logic state.
irgesture2_read_pixels
This function reads the raw ADC values of entire 60-pixel IR photodiode array.
irgesture2_write_register
This function writes a data byte to the selected register by using SPI serial interface.
Example Description
This example demonstrates the use of IR Gesture 2 Click board™ by reading and displaying the raw ADC values of entire 60-pixel IR photodiode array.
void application_task ( void )
{
// Wait for an end of conversion interrupt
while ( irgesture2_get_int_pin ( &irgesture2 ) );
int16_t pixels[ IRGESTURE2_NUM_SENSOR_PIXELS ];
if ( IRGESTURE2_OK == irgesture2_read_pixels ( &irgesture2, pixels, false ) )
{
for ( uint8_t cnt = 0; cnt < IRGESTURE2_NUM_SENSOR_PIXELS; cnt++ )
{
if ( 0 == ( cnt % IRGESTURE2_SENSOR_X_SIZE ) )
{
log_printf( &logger, "rn" );
}
log_printf( &logger, "%dt", pixels[ cnt ] );
}
log_printf( &logger, "rn" );
}
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
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. UART terminal is available in all MikroElektronika compilers.
This 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.
For more information about mikroSDK, visit the official page.
NOTE: Please be advised that any peripheral devices or accessories shown connected to the Click board™ are not included in the package. Check their availability in our shop or in the YMAN section below.