# Title: Environment 2 Click Board™ ## Description: How Does The Environment 2 Click Board™ Work? The Environment 2 Click Board™ as its foundation uses the SHT40 and SGP40, a high-accuracy best-in-class SHT relative humidity, and a temperature sensor combined with MOx based gas sensor from Sensirion. The SHT40 offers reduced power consumption, improved accuracy specifications, and a fully calibrated digital I2C Fast Mode Plus interface for the fastest data transfer. It covers extended operating humidity and temperature ranges from 0 to 100%RH and from -40°C to 125°C with accuracies of ±1.8%RH and ±0.2°C. On the other side, an additional gas sensor of this combo solution, the SGP40, provides a humidity-compensated VOC-based indoor air quality signal in addition to a temperature-controlled micro hot plate. The SHT40 shows the best performance when operated within the recommended average temperature and humidity range of 5-60°C and 20-80%RH. Long-term exposure to conditions outside recommended normal range, especially at high relative humidity, may temporarily offset the RH signal. After returning to the recommended average temperature and humidity range, the sensor will recover to within specifications by itself. The output signal of the SGP40 is processed by Sensirion's VOC Algorithm, which automatically adapts to the environment the sensor is exposed to to translate the raw signal into a VOC Index. Sensing element and VOC Algorithm feature unmatched robustness against contaminating gases present in real-world applications enabling exceptional long-term stability and low drift, high reproducibility, and reliability. The Environment 2 Click Board™ communicates with MCU using the standard I2C 2-Wire interface. Since both sensors for operation requires a 3.3V logic voltage level only, this Click board™ also features the PCA9306 voltage-level translator from Texas Instruments. The I2C interface bus lines are routed to the dual bidirectional voltage-level translator, allowing this Click board™ to work with both 3.3V and 5V MCUs properly. The Environment 2 Click Board™ can operate with both 3.3V and 5V logic voltage levels selected via the VIO SEL jumper. This way, it is allowed for both 3.3V and 5V capable MCUs to properly use the I2C communication lines. However, the Click board™ comes equipped with a library containing easy-to-use functions and an example code that can be used, as a reference, for further development. SPECIFICATIONS Type Environmental Applications Can be used for indoor air quality and various temperature and humidity-related applications. On-board modules SHT40 and SGP40 - high-accuracy best-in-class SHT relative humidity, and a temperature sensor combined with MOx based gas sensor from Sensirion Key Features Low power consumption, high accuracy, covers extended operating humidity and temperature ranges, long-term stability and lifetime, and more. Interface I2C Compatibility mikroBUS Click board size M (42.9 x 25.4 mm) Input Voltage 3.3V or 5V PINOUT DIAGRAM This table shows how the pinout on Environment 2 Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns). Notes Pin Pin Notes NC 1 AN PWM 16 NC NC 2 RST INT 15 NC NC 3 CS RX 14 NC NC 4 SCK TX 13 NC NC 5 MISO SCL 12 SCL I2C Clock NC 6 MOSI SDA 11 SDA I2C Data Power Supply 3.3V 7 3.3V 5V 10 5V Power Supply Ground GND 8 GND GND 9 GND Ground ONBOARD SETTINGS AND INDICATORS Label Name Default Description LD1 PWR - Power LED Indicator JP1 VIO SEL Left Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V ENVIRONMENT 2 CLICK ELECTRICAL SPECIFICATIONS Description Min Typ Max Unit Supply Voltage 3.3 - 5 V SHT40 Temperature Accuracy - ±0.2 - °C SHT40 Relative Humidity Accuracy - ±1.8 - %RH SHT40 Operating Humidity Range 0 - 100 %RH SGP40 Measurement Range 0 - 1000 ppm SGP40 Operating Humidity Range 0 - 90 %RH Operating Temperature Range -10 +25 +50 °C ## Product type: Click Board ## Vendor: Mikroelektronika d.o.o. ## Tags: Click Board, Environment, MikroE, Sensirion AG, Sensor ## Price range: 16.1 - 16.1 GBP ## Link: https://thedebugstore.com/products/mikroe-4558-environment-2-click-board-uk ## Compare-at price range: 23.0 - 23.0 GBP ## Options - Title: Default Title ## Collections - [New Products](https://thedebugstore.com/a/llms/collections/new-products-debug-store) - [Mikroelektronika d.o.o. (MikroE)](https://thedebugstore.com/a/llms/collections/mikroelektronika-catalogue-uk) - [Sensirion AG Device Support: Debug Boards & Tools for Flow, Environmental & Gas Sensors](https://thedebugstore.com/a/llms/collections/sensiron-sg-device-support) - [Sensor Click Boards™](https://thedebugstore.com/a/llms/collections/sensor-click-boards-catalogue) - [MikroE Click Boards™](https://thedebugstore.com/a/llms/collections/mikroe-click-boards-catalogue-uk) - [Environmental Sensor Click Boards™](https://thedebugstore.com/a/llms/collections/environmental-sensor-click-boards-catalogue) - [Click Boards™ Summer Sale](https://thedebugstore.com/a/llms/collections/inventory-sale) - [MikroE Sale](https://thedebugstore.com/a/llms/collections/mikroe-sale) - [MIKROE Stock](https://thedebugstore.com/a/llms/collections/mikroe-products-in-stock-sale) ## Variants - Default Title, SKU: MIKROE-4558, Available: yes, Inventory: 1 ## Metafields - manufacturer: Mikroelektronika d.o.o. - warranty: 12 months - amazon_enable: TRUE - amazon_title: Environment 2 Click Board - amazon_product_type: computercomponent - amazon_block: FALSE - amazon_prime_enable: FALSE - amazon_search: MikroElektronika Microelectronica MIKROE-1100 - amazon_uk_currency: GBP - amazon_de_currency: EUR - amazon_fr_currency: EUR - amazon_es_currency: EUR - amazon_nl_currency: EUR - amazon_it_currency: EUR - amazon_se_curency: SEK - amazon_product_id: 8606027382079 - amazon_product_id_type: EAN - amazon_update: Update - title_tag: MikroE Environment 2 Click Board™ (MIKROE-4558) - backorder_label: If no stock shown above, check availability - mpn: MIKROE-4558 - badge: - widget:

Customer Reviews

Be the first to write a review
0%
(0)
0%
(0)
0%
(0)
0%
(0)
0%
(0)
- description_tag: The Environment 2 Click Board™ is a compact add-on board containing best-in-class SHT humidity and SGP air-quality sensing solutions from Sensirion. Available from Debug Store UK. - full_description:

How Does The Environment 2 Click Board™ Work?

The Environment 2 Click Board™ as its foundation uses the SHT40 and SGP40, a high-accuracy best-in-class SHT relative humidity, and a temperature sensor combined with MOx based gas sensor from Sensirion. The SHT40 offers reduced power consumption, improved accuracy specifications, and a fully calibrated digital I2C Fast Mode Plus interface for the fastest data transfer. It covers extended operating humidity and temperature ranges from 0 to 100%RH and from -40°C to 125°C with accuracies of ±1.8%RH and ±0.2°C. On the other side, an additional gas sensor of this combo solution, the SGP40, provides a humidity-compensated VOC-based indoor air quality signal in addition to a temperature-controlled micro hot plate.

Environment 2 Click Board™

The SHT40 shows the best performance when operated within the recommended average temperature and humidity range of 5-60°C and 20-80%RH. Long-term exposure to conditions outside recommended normal range, especially at high relative humidity, may temporarily offset the RH signal. After returning to the recommended average temperature and humidity range, the sensor will recover to within specifications by itself.

The output signal of the SGP40 is processed by Sensirion's VOC Algorithm, which automatically adapts to the environment the sensor is exposed to to translate the raw signal into a VOC Index. Sensing element and VOC Algorithm feature unmatched robustness against contaminating gases present in real-world applications enabling exceptional long-term stability and low drift, high reproducibility, and reliability.

The Environment 2 Click Board™ communicates with MCU using the standard I2C 2-Wire interface. Since both sensors for operation requires a 3.3V logic voltage level only, this Click board™ also features the PCA9306 voltage-level translator from Texas Instruments. The I2C interface bus lines are routed to the dual bidirectional voltage-level translator, allowing this Click board™ to work with both 3.3V and 5V MCUs properly.

The Environment 2 Click Board™ can operate with both 3.3V and 5V logic voltage levels selected via the VIO SEL jumper. This way, it is allowed for both 3.3V and 5V capable MCUs to properly use the I2C communication lines. However, the Click board™ comes equipped with a library containing easy-to-use functions and an example code that can be used, as a reference, for further development.

SPECIFICATIONS

Type Environmental
Applications Can be used for indoor air quality and various temperature and humidity-related applications.
On-board modules SHT40 and SGP40 - high-accuracy best-in-class SHT relative humidity, and a temperature sensor combined with MOx based gas sensor from Sensirion
Key Features Low power consumption, high accuracy, covers extended operating humidity and temperature ranges, long-term stability and lifetime, and more.
Interface I2C
Compatibility mikroBUS
Click board size M (42.9 x 25.4 mm)
Input Voltage 3.3V or 5V

PINOUT DIAGRAM

This table shows how the pinout on Environment 2 Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).

Notes Pin Mikrobus logo.png Pin Notes
NC 1 AN PWM 16 NC
NC 2 RST INT 15 NC
NC 3 CS RX 14 NC
NC 4 SCK TX 13 NC
NC 5 MISO SCL 12 SCL I2C Clock
NC 6 MOSI SDA 11 SDA I2C Data
Power Supply 3.3V 7 3.3V 5V 10 5V Power Supply
Ground GND 8 GND GND 9 GND Ground

ONBOARD SETTINGS AND INDICATORS

Label Name Default Description
LD1 PWR - Power LED Indicator
JP1 VIO SEL Left Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V

ENVIRONMENT 2 CLICK ELECTRICAL SPECIFICATIONS

Description Min Typ Max Unit
Supply Voltage 3.3 - 5 V
SHT40 Temperature Accuracy - ±0.2 - °C
SHT40 Relative Humidity Accuracy - ±1.8 - %RH
SHT40 Operating Humidity Range 0 - 100 %RH
SGP40 Measurement Range 0 - 1000 ppm
SGP40 Operating Humidity Range 0 - 90 %RH
Operating Temperature Range -10 +25 +50 °C

 

- examples:

We provide a library for the Environment 2 Click Board™ as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.

The package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on the mikroE Github account.

Library Description

This library contains an API for the Environment 2 Click Board™ driver.

Key Functions

Example Description

This library contains an API for the Environment 2 Click Board™ driver. The library contains drivers for measuring air quality, temperature and relative humidity.

The application is composed of three sections :

void application_init ( void ) {
    log_cfg_t log_cfg;                    /**< Logger config object. */
    environment2_cfg_t environment2_cfg;  /**< Click config object. */

    // Logger initialization.

    LOG_MAP_USB_UART( log_cfg );
    log_cfg.level = LOG_LEVEL_DEBUG;
    log_cfg.baud = 115200;
    log_init( &logger, &log_cfg );
    log_printf( &logger, "rn    Application Initrn" );

    // Click initialization.

    environment2_cfg_setup( &environment2_cfg );
    ENVIRONMENT2_MAP_MIKROBUS( environment2_cfg, MIKROBUS_1 );
    err_t init_flag = environment2_init( &environment2, &environment2_cfg );
    if ( init_flag == I2C_MASTER_ERROR ) {
        log_error( &logger, " Application Init Error. " );
        log_printf( &logger, " Please, run program again... " );

        for ( ; ; );
    }

    log_printf( &logger, "    Application Task   rn" );
    log_printf( &logger, "-----------------------rn" );
    log_printf( &logger, "  Environment 2 Click  rn" );
    log_printf( &logger, "-----------------------rn" );
    
    if ( environment2_sgp40_measure_test( &environment2 ) == ENVIRONMENT2_SGP40_TEST_PASSED ) {
        log_printf( &logger, "    All tests passedrn" );
        log_printf( &logger, "      Successfullyrn" );
    } else {
        log_printf( &logger, "    One or more tests havern" );
        log_printf( &logger, "     Failedrn" );
    }
    log_printf( &logger, "-----------------------rn" );
    Delay_ms( 100 );
    
    environment2_sgp40_heater_off( &environment2 );
    Delay_ms( 100 );
}

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 Information

Depending on the development board you are using, you may need a 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. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.

MIKROSDK

The Environment 2 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.

- attachments: [{"download_file":[{"download_file":"Environment 2 Click Board™ Schematic"}],"download_filetype":[{"download_filetype":"pdf"}]},{"download_file":[{"download_file":"Texas Instruments PCA9306 Voltage-level Translator Datasheet"}],"download_filetype":[{"download_filetype":"pdf"}]},{"download_file":[{"download_file":"Sensiron SGP40 Air Quality Sensor Datasheet"}],"download_filetype":[{"download_filetype":"pdf"}]},{"download_file":[{"download_file":"Sensiron SHT40 Relative Humidity and Temperature Sensor Datasheet"}],"download_filetype":[{"download_filetype":"pdf"}]}] - condition: new - custom_product: false - mpn: MIKROE-4558 - google_product_category: Electronics - custom_label_0: Click Board - device_vendor: Sensirion AG - device_type: SGP40-D-R4, SHT40-AD1B-R2 - warranty: 12 months - brand: MikroE - manufacturer: Mikroelektronika d.o.o. - target_keyword: Environment 2 Click Board - brands: gid://shopify/Metaobject/56256004319 - breadcrumbs: ["gid://shopify/Collection/447955239135","gid://shopify/Collection/241680580797","gid://shopify/Collection/241545969853"] - customhs_code: 847330 - detailed_description: {"type":"root","children":[{"type":"heading","level":3,"children":[{"type":"text","value":"How Does The Environment 2 Click Board™ Work?"}]},{"type":"paragraph","children":[{"type":"text","value":"The "},{"type":"text","value":"Environment 2 Click Board™","bold":true},{"type":"text","value":" as its foundation uses the SHT40 and SGP40, a high-accuracy best-in-class SHT relative humidity, and a temperature sensor combined with MOx based gas sensor from Sensirion. The SHT40 offers reduced power consumption, improved accuracy specifications, and a fully calibrated digital I2C Fast Mode Plus interface for the fastest data transfer. It covers extended operating humidity and temperature ranges from 0 to 100%RH and from -40°C to 125°C with accuracies of ±1.8%RH and ±0.2°C. On the other side, an additional gas sensor of this combo solution, the SGP40, provides a humidity-compensated VOC-based indoor air quality signal in addition to a temperature-controlled micro hot plate."}]},{"type":"paragraph","children":[{"type":"text","value":""}]},{"type":"paragraph","children":[{"type":"text","value":"The SHT40 shows the best performance when operated within the recommended average temperature and humidity range of 5-60°C and 20-80%RH. Long-term exposure to conditions outside recommended normal range, especially at high relative humidity, may temporarily offset the RH signal. After returning to the recommended average temperature and humidity range, the sensor will recover to within specifications by itself."}]},{"type":"paragraph","children":[{"type":"text","value":"The output signal of the SGP40 is processed by Sensirion's VOC Algorithm, which automatically adapts to the environment the sensor is exposed to to translate the raw signal into a VOC Index. Sensing element and VOC Algorithm feature unmatched robustness against contaminating gases present in real-world applications enabling exceptional long-term stability and low drift, high reproducibility, and reliability."}]},{"type":"paragraph","children":[{"type":"text","value":"The "},{"type":"text","value":"Environment 2 Click Board™","bold":true},{"type":"text","value":" communicates with MCU using the standard I2C 2-Wire interface. Since both sensors for operation requires a 3.3V logic voltage level only, this Click board™ also features the PCA9306 voltage-level translator from Texas Instruments. The I2C interface bus lines are routed to the dual bidirectional voltage-level translator, allowing this Click board™ to work with both 3.3V and 5V MCUs properly."}]},{"type":"paragraph","children":[{"type":"text","value":"The "},{"type":"text","value":"Environment 2 Click Board™","bold":true},{"type":"text","value":" can operate with both 3.3V and 5V logic voltage levels selected via the VIO SEL jumper. This way, it is allowed for both 3.3V and 5V capable MCUs to properly use the I2C communication lines. However, the Click board™ comes equipped with a library containing easy-to-use functions and an example code that can be used, as a reference, for further development."}]},{"type":"heading","level":3,"children":[{"type":"text","value":"SPECIFICATIONS"}]},{"type":"paragraph","children":[{"type":"text","value":"Type\nEnvironmental\nApplications\nCan be used for indoor air quality and various temperature and humidity-related applications.\nOn-board modules\nSHT40 and SGP40 - high-accuracy best-in-class SHT relative humidity, and a temperature sensor combined with MOx based gas sensor from Sensirion\nKey Features\nLow power consumption, high accuracy, covers extended operating humidity and temperature ranges, long-term stability and lifetime, and more.\nInterface\nI2C\nCompatibility\nmikroBUS\nClick board size\nM (42.9 x 25.4 mm)\nInput Voltage\n3.3V or 5V"}]},{"type":"heading","level":3,"children":[{"type":"text","value":"PINOUT DIAGRAM"}]},{"type":"paragraph","children":[{"type":"text","value":"This table shows how the pinout on Environment 2 Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns)."}]},{"type":"paragraph","children":[{"type":"text","value":"Notes\nPin\nPin\nNotes\nNC\n1\nAN\nPWM\n16\nNC\nNC\n2\nRST\nINT\n15\nNC\nNC\n3\nCS\nRX\n14\nNC\nNC\n4\nSCK\nTX\n13\nNC\nNC\n5\nMISO\nSCL\n12\nSCL\nI2C Clock\nNC\n6\nMOSI\nSDA\n11\nSDA\nI2C Data\nPower Supply\n3.3V\n7\n3.3V\n5V\n10\n5V\nPower Supply\nGround\nGND\n8\nGND\nGND\n9\nGND\nGround"}]},{"type":"heading","level":3,"children":[{"type":"text","value":"ONBOARD SETTINGS AND INDICATORS"}]},{"type":"paragraph","children":[{"type":"text","value":"Label\nName\nDefault\nDescription\nLD1\nPWR\n-\nPower LED Indicator\nJP1\nVIO SEL\nLeft\nLogic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V"}]},{"type":"heading","level":3,"children":[{"type":"text","value":"ENVIRONMENT 2 CLICK ELECTRICAL SPECIFICATIONS"}]},{"type":"paragraph","children":[{"type":"text","value":"Description\nMin\nTyp\nMax\nUnit\nSupply Voltage\n3.3\n-\n5\nV\nSHT40 Temperature Accuracy\n-\n±0.2\n-\n°C\nSHT40 Relative Humidity Accuracy\n-\n±1.8\n-\n%RH\nSHT40 Operating Humidity Range\n0\n-\n100\n%RH\nSGP40 Measurement Range\n0\n-\n1000\nppm\nSGP40 Operating Humidity Range\n0\n-\n90\n%RH\nOperating Temperature Range\n-10\n+25\n+50\n°C"}]},{"type":"heading","level":3,"children":[{"type":"text","value":" "}]}]} - summary:

The Environment 2 Click Board™ is a compact add-on board containing best-in-class SHT humidity and SGP air-quality sensing solutions from Sensirion. This board features SHT40 and SGP40, a high-accuracy ultra-low-power relative humidity, and a temperature sensor combined with MOx based gas sensor. The SHT40 sensor offers linearized digital output, provides constant temperature accuracy, up to 0.1°C, and shows the best performance when operated within the temperature and humidity range of 5-60°C and 20-80%RH, while the SGP40, a digital gas sensor, features a temperature-controlled micro hot-plate providing a humidity-compensated VOC-based indoor air quality signal. This Click Board™ is suitable for indoor air quality and various temperature and humidity-related applications.

The Environment 2 Click Board™ 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.