smoke2
2.0.0.0
|
Smoke 2 Click is a compact add-on board that contains the most efficient version of the smoke detector. This board features the ADPD188BI, a complete photometric system for smoke detection using optical dual-wavelength technology from Analog Devices.
We provide a library for the Smoke2 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 Smoke2 Click driver.
smoke2_cfg_setup
Config Object Initialization function. smoke2_init
Initialization function. smoke2_default_cfg
Click Default Configuration function. smoke2_get_int_pin
This function eget state of int pin of Smoke 2 click board. smoke2_write_data
This function is generic for writing data to register of Smoke 2 click board. smoke2_read_data
This function is generic for reading data from registar of Smoke 2 click board. This example is made to see how Smoke 2 clicks work. The purpose of this example is that, depending on the way we choose,
it collects data from the external environment about smoke, processes it, and prints it via the UART terminal.
The demo application is composed of two sections :
Initialization of communication modules, additional pins, Mapping pins and configures device for measurement.
Example shows module working depending on example mode. We can choose between: EXAMPLE_MODE_PROXIMITY and EXAMPLE_MODE_SMOKE.
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.