TOP Contributors

  1. MIKROE (2762 codes)
  2. Alcides Ramos (374 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (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 (139255 times)
  2. FAT32 Library (71751 times)
  3. Network Ethernet Library (57122 times)
  4. USB Device Library (47430 times)
  5. Network WiFi Library (43082 times)
  6. FT800 Library (42404 times)
  7. GSM click (29835 times)
  8. mikroSDK (28078 times)
  9. PID Library (26885 times)
  10. microSD click (26198 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

HVAC click

Rating:

5

Author: MIKROE

Last Updated: 2021-07-05

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Environmental

Downloaded: 1852 times

Not followed.

License: MIT license  

HVAC Click is a compact add-on board that contains Sensirion’s next-generation miniature CO2 sensor. This board features the SCD41, a carbon dioxide sensor build on the photoacoustic sensing principle, and Sensirion’s patented PASens® and CMOSens® technology to offer high accuracy at a minor form factor. On-chip signal compensation is realized with the build-in humidity and temperature sensor. It operates within a specified range from 400 to 5’000 ppm, configurable through the I2C interface with a single shot mode supported. This Click board™ is also suitable for indoor air quality applications using an additional SPS30 that allows smart ventilation systems to regulate ventilation in the most energy-efficient and human-friendly way, maintaining low CO2 concentration for a healthy, productive environment.

No Abuse Reported

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

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

Do you want to report abuse regarding "HVAC 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

HVAC click

HVAC click

Native view of the HVAC click board.

View full image
HVAC click

HVAC click

Front and back view of the HVAC click board.

View full image

Library Description

The library covers all the necessary functions to control the HVAC Click board.
A library performs the communication with the SCD40 Sensor via the I2C interface
and with the SPS30 via the I2C or UART interface.

Key functions:

  • void hvac_scd40_read_measurement ( measuremen_data_t *m_data ) - SCD40 read measurement function.
  • void hvac_sps30_start_measurement ( void ) -
    SPS30 starts the measurement command function.
  • void hvac_sps30_read_measured_data ( mass_and_num_cnt_data_t *m_n_c_data ) -
    TSPS30 read measured data function.

Examples description

The application is composed of three sections :

  • System Initialization - Initializes I2C or UART and start to write log.
  • Application Initialization - Initialization driver enables - I2C or UART,
     SCD40: perform factory reset, serial number, features, product type
     platform type, product version and
     SPS30: perform start measurement mode, also write log.
  • Application Task - (code snippet) This is an example which demonstrates the use of HVAC Click board.
     HVAC Click board can be used to measure :
     Concentration of CO2 in air,
     Temperature ( degree Celsius ),
     Relative Humidity ( % ),
     Mass Concentration of PM1.0, PM2.5, PM4.0, PM10 and
     Number Concentration of PM0.5, PM1.0, PM2.5, PM4.0 and PM10.
     All data logs write on USB uart changes.
void application_task ( )
{
    if ( select_communication == I2C_COMMUNICATION )
    {
        hvac_scd40_send_cmd( HVAC_MEASURE_SINGLE_SHOT );
        Delay_ms( 5000 );

        hvac_scd40_read_measurement( &hvac_data );
        Delay_ms( 100 );

        WordToStr( hvac_data.co2_concent, log_text );
        mikrobus_logWrite( " CO2 Concent = ", _LOG_TEXT );
        mikrobus_logWrite( log_text, _LOG_LINE );

        FloatToStr( hvac_data.temperature, log_text );
        mikrobus_logWrite( " Temperature = ", _LOG_TEXT );
        mikrobus_logWrite( log_text, _LOG_TEXT );
        mikrobus_logWrite( " C", _LOG_LINE );

        FloatToStr( hvac_data.r_humidity, log_text );
        mikrobus_logWrite( " R. Humidity = ", _LOG_TEXT );
        mikrobus_logWrite( log_text, _LOG_TEXT );
        mikrobus_logWrite( " %", _LOG_LINE );
        mikrobus_logWrite( "- - - - - - - - - - - - - ", _LOG_LINE );

        while ( hvac_sps30_get_ready_flag( ) != HVAC_SPS30_NEW_DATA_IS_READY );
    }
    mikrobus_logWrite( "   Mass Concentration :   ", _LOG_LINE );
    hvac_sps30_read_measured_data( &sps30_data );
    Delay_ms( 100 );

    FloatToStr( sps30_data.mass_pm_1_0, log_text );
    mikrobus_logWrite( " PM 1.0 = ", _LOG_TEXT );
    mikrobus_logWrite( log_text, _LOG_TEXT );
    mikrobus_logWrite( " ug/m3", _LOG_LINE );

    FloatToStr( sps30_data.mass_pm_2_5, log_text );
    mikrobus_logWrite( " PM 2.5 = ", _LOG_TEXT );
    mikrobus_logWrite( log_text, _LOG_TEXT );
    mikrobus_logWrite( " ug/m3", _LOG_LINE );

    FloatToStr( sps30_data.mass_pm_4_0, log_text );
    mikrobus_logWrite( " PM 4.0 = ", _LOG_TEXT );
    mikrobus_logWrite( log_text, _LOG_TEXT );
    mikrobus_logWrite( " ug/m3", _LOG_LINE );

    FloatToStr( sps30_data.mass_pm_10, log_text );
    mikrobus_logWrite( " PM 10  = ", _LOG_TEXT );
    mikrobus_logWrite( log_text, _LOG_TEXT );
    mikrobus_logWrite( " ug/m3", _LOG_LINE );
    mikrobus_logWrite( "-   -   -   -   -   -   - ", _LOG_LINE );

    mikrobus_logWrite( "  Number Concentration :  ", _LOG_LINE );
    FloatToStr( sps30_data.num_pm_0_5, log_text );
    mikrobus_logWrite( " PM 0.5 = ", _LOG_TEXT );
    mikrobus_logWrite( log_text, _LOG_TEXT );
    mikrobus_logWrite( " n/cm3", _LOG_LINE );

    FloatToStr( sps30_data.num_pm_1_0, log_text );
    mikrobus_logWrite( " PM 1.0 = ", _LOG_TEXT );
    mikrobus_logWrite( log_text, _LOG_TEXT );
    mikrobus_logWrite( " n/cm3", _LOG_LINE );

    FloatToStr( sps30_data.num_pm_2_5, log_text );
    mikrobus_logWrite( " PM 2.5 = ", _LOG_TEXT );
    mikrobus_logWrite( log_text, _LOG_TEXT );
    mikrobus_logWrite( " n/cm3", _LOG_LINE );

    FloatToStr( sps30_data.num_pm_4_0, log_text );
    mikrobus_logWrite( " PM 4.0 = ", _LOG_TEXT );
    mikrobus_logWrite( log_text, _LOG_TEXT );
    mikrobus_logWrite( " n/cm3", _LOG_LINE );

    FloatToStr( sps30_data.num_pm_10, log_text );
    mikrobus_logWrite( " PM 10  = ", _LOG_TEXT );
    mikrobus_logWrite( log_text, _LOG_TEXT );
    mikrobus_logWrite( " n/cm3", _LOG_LINE );
    mikrobus_logWrite( "--------------------------", _LOG_LINE );
    Delay_ms( 2000 );
}
}

Other mikroE Libraries used in the example:

  • 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 5 Click

0

Altitude 5 Click is a compact add-on board allowing high-resolution barometric pressure measurement. This board features the KP236, an analog barometric air pressure sensor based on a capacitive principle from Infineon Technologies. The KP236 is primarily developed for measuring barometric air pressure but can also be used in other application fields. It is surface micro-machined with a monolithic integrated signal conditioning circuit implemented in BiCMOS technology. The calibrated transfer function converts pressure into an analog output signal in a range of 40kPa to 115kPa. However, the choice of signal processing is up to the user; more precisely, the user can process the output signal in analog or digital form. The high accuracy and the high sensitivity of the KP236 make this Click board™ suitable for advanced automotive applications and industrial and consumer applications.

[Learn More]

Heart Rate 9 click

5

The Heart Rate 9 click is a Click boardâ„¢ which features PIC16F1779 8-bit MCU and SFH 7060 heart rate and pulse oximetry monitoring sensor. This Click boar employs a very sensitive analog front-end IC with high dynamic range, which ensures accurate and reliable readings.

[Learn More]

Current 6 Click

0

Current 6 Click is a compact add-on board providing a precise and accurate current sensing solution. This board features the MAX40080, a fast-response bi-directional current-sense amplifier from Analog Devices. The device features ultra-low 5uV input offset voltage, very-low 0.2% gain error, and includes an analog-to-digital converter with programmable sample rate and 12-bit resolution featuring I2C compatible interface. It also features a wake-up current-threshold and auto-shutdown mode when the I2C is inactive, both designed to minimize power consumption. The current-shunt monitor can measure voltage signals on common-mode voltages ranging from -0.1V (ground sensing) to 36V, independent of the supply voltage. This Click board™ delivers higher performance to industrial control and automation applications, load and power supplies monitoring, telecom equipment, and many more.

[Learn More]