irsense4
2.1.0.0
|
IR Sense 4 Click is a compact add-on board that can be used in short-range IR sensing applications. This board features the STHS34PF80, a low-power high-sensitivity infrared (IR) sensor from STMicroelectronics. It is a sensor for presence and motion detection and can reach up to 4m without a lens for object measuring. The sensor can detect stationary objects and distinguish them from moving objects.
We provide a library for the IR Sense 4 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.
This library contains API for IR Sense 4 Click driver.
irsense4_cfg_setup
Config Object Initialization function. irsense4_init
Initialization function. irsense4_default_cfg
Click Default Configuration function. irsense4_get_presence_data
IR Sense 4 get the presence detection data function. irsense4_get_motion_data
IR Sense 4 get the motion detection data function. irsense4_get_amb_temperature
IR Sense 4 get the ambient temperature function. This example demonstrates the use of theIR Sense 4 Click boardâ„¢, by showing parameters for detection of the presence and motion as well as ambient temperature.
The demo application is composed of two sections :
The initialization of I2C or SPI module and log UART. After driver initialization, the app sets the default configuration.
The application checks for the human presence and motion detection and display output data, using embedded algorithms, and ambient temperature in degrees Celsius. Results are being sent to the UART Terminal, where you can track their changes.
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.