TOP Contributors

  1. MIKROE (2657 codes)
  2. Alcides Ramos (354 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136896 times)
  2. FAT32 Library (70032 times)
  3. Network Ethernet Library (56005 times)
  4. USB Device Library (46308 times)
  5. Network WiFi Library (41934 times)
  6. FT800 Library (41231 times)
  7. GSM click (29021 times)
  8. PID Library (26434 times)
  9. mikroSDK (26401 times)
  10. microSD click (25387 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

Smoke 2 click

Rating:

5

Author: MIKROE

Last Updated: 2021-02-16

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Proximity

Downloaded: 1628 times

Not followed.

License: MIT license  

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.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Smoke 2 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Smoke 2 click" changes.

Do you want to report abuse regarding "Smoke 2 click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

Smoke 2 Click

Smoke 2 Click

Native view of the Smoke 2 Click board.

View full image
Smoke 2 Click

Smoke 2 Click

Front and back view of the Smoke 2 Click board.

View full image

Library Description

Library provides functions for communicating and fully control device. There are specific functions for reading data from slots A and B, setting interrupt mask and reseting device.

Key functions:

  • uint8_t smoke2_get_int_pin ( void ) - Get state of int pin
  • uint16_t smoke2_read_data ( uint8_t reg ) - Generic function for reading data from registar
  • void smoke2_write_data ( uint8_t reg, uint16_t tx_data ) - Generic function for writing bit state

Examples description

The application is composed of three sections :

  • System Initialization - Initialization of communication modules and additional pins
  • Application Initialization - Mapping pins and configures device for measurement
  • Application Task - Example shows module working depending on example mode
void application_task ( )
{
    if ( EXAMPLE_MODE_SMOKE == example_mode )
    {
        smoke_example(  );
    }
    else
    {
        proximity_example(  );
    }
}


Additional Functions :

  • void smoke_example () - Example checks if sensor data is gone over thershold set
  • void proximity_example () - Reads sensor data and logs it

The full application code, and ready to use projects can be found on our LibStock page.

Other mikroE Libraries used in the example:

  • SPI
  • I2C
  • UART
  • Conversions

Additional notes and informations

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

ALSO FROM THIS AUTHOR

Altitude 4 click

5

Altitude 4 Click introduces an absolute pressure sensor with digital output for low-cost applications labeled as NPA-201. The NovaSensor NPA-201 Digital Output Absolute Pressure Sensor provides low power consumption and compact size, making it ideal for battery-powered and mobile applications or any application where size is a constraint.

[Learn More]

16x9 G click

5

16x9 G click contains a green LED matrix and the IS31FL3731 audio modulated matrix LED driver. The dimension of the LED matrix is 16x9. Each LED can be controlled individually – both for on/off control and light intensity.

[Learn More]

Barometer 5 click

0

Barometer 5 Click is a compact add-on board used to measure air pressure in a specific environment. This board features the MS5637-02BA03, a high accuracy low voltage barometric and temperature sensor from TE Connectivity Measurement Specialties. The MS5637-02BA03 includes a high-linearity pressure sensor and an ultra-low-power 24-bit ΔΣ ADC with internal factory-calibrated coefficients, providing a precise digital 24-bit pressure and temperature value, and different operation modes allowing the user to optimize for conversion speed and current consumption. It comes with a configurable host interface that supports I2C serial communication and measures pressure in a range from 300mbar up to 1.2bar with an accuracy of ±2mbar over a wide operating temperature range.

[Learn More]