# Title: Ambient 5 Click Board™ ## Description: Thanks to the used proprietary technologies that allow high precision, reliability, and low power consumption, the Ambient 5 Click Board™ can be used for the rapid development of various cost-effective applications that rely on light intensity sensing, including optical switches, screen dimming applications for mobile and handheld devices, light metering applications (lux meters), and similar. How Does The Ambient 5 Click Board™ Work? The main component of the Ambient 5 Click Board™ is the VEML6030, a high accuracy ambient light sensor (ALS) with an I2C interface, from Vishay Semiconductors. This sensor utilizes several proprietary technologies to ensure accurate measurements of the light intensity, with the spectral response very close to a human eye. By utilizing a sensitive photo-diode, low noise amplifier, and a 16-bit A/D converter (ADC), this sensor can provide the data directly, with no need for complex calculations. The dynamic range for the ambient light sensor is very large, starting down from 0 lux up to about 120 lux, with the maximum resolution of only 0.0036 lux/count. The extremely high sensitivity along with the linear response to different light sources, allows this sensor to be placed behind a dark glass or panels made of other semi-transparent materials. The VEML6030 sensor has only six 16-bit registers, which make it very simple to configure and use. Even though, it comes with the mikroSDK compatible library, which simplifies the development even more. However, a more detailed explanation of each command can be found in the datasheet of the VEML6030, if required. A selectable GAIN allows a very wide dynamic range for ALS measurement. There are two ALS_GAIN bits, allowing the gain level to be set to 1/4x, 1/2x, 1x, and 2x. This offers four different luminosity ranges to be covered for each selected integration time (ALS_IT). For example, the fastest integration time (25ms) results in the lowest resolution (1.8432 lx/count), and combined with the gain of 1/8x, it allows the highest luminosity value to be measured (120,796 lx) The power consumption of the VEML6030 is in tight relation with the programmed integration time, power supply, and amplification. There are two bits available to select the power mode (PSM), four bits to select the integration time (ALS_IT), and two bits to select the gain (ALS_GAIN). These parameters are determining factors for the average power consumption, measurement resolution, and refresh time. By utilizing such a flexible power-saving scheme, the VEML6030 can be adapted to any type of power-sensitive application. A configurable interrupt engine allows optimized firmware to be developed, avoiding polling routines and frequent access over the I2C interface. The interrupt pin (INT) is an open-drain output, which is pulled to a HIGH logic level when it is not asserted. When any of the programmed light thresholds is exceeded for a programmed number of times, an interrupt event will be generated, asserting this pin to a LOW logic level. The interrupt pin is routed to the mikroBUS™ INT pin. The slave I2C address of the VEML6030 can be selected by switching the SMD jumper to an appropriate position. Unlike some other devices, this jumper does not set the LSB of the I2C address, but rather selects between two possible values: when tied to GND (0), the I2C address of the VEML6030 will be 0b0010000x. When tied to VCC (1), the I2C address will be 0b1001000x. The x is the I2C address R/W byte. Due to maximum electrical ratings, this Click board™ is to be used with 3.3V MCUs, only. SPECIFICATIONS Type Optical Applications This sensor is an ideal solution for both IoT light sensing applications, but also for portable or handheld devices which utilize accurate light intensity sensing, such as the TFT/LCD screens, keypad backlight, cell phones, digital cameras, and similar On-board modules VEML6030, a high accuracy ambient light sensor (ALS) with an I2C interface, from Vishay Semiconductors Key Features High resolution and range of light intensity that can be measured, spectral response similar to the human eye, low power consumption, compact design ideal for building IoT applications, immune to flickering and fluorescent light sources, independent of the light source type, and more Interface I2C Compatibility mikroBUS Click board size M (42.9 x 25.4 mm) Input Voltage 3.3V PINOUT DIAGRAM This table shows how the pinout on the Ambient 5 Click Board™ 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 INT Interrupt OUT 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 +3V3 7 3.3V 5V 10 NC Ground GND 8 GND GND 9 GND Ground ONBOARD SETTINGS AND INDICATORS Label Name Default Description LD1 PWR - Power LED indicator JP1 I2C ADD Left I2C slave address selection: left position tied to GND (0), right position tied to VCC (1) ## Product type: Click Board ## Vendor: Mikroelektronika d.o.o. ## Tags: Click Board, MikroE, Optical, Sensor ## Price range: 9.1 - 9.1 GBP ## Link: https://thedebugstore.com/products/mikroe-3320-ambient-5-click-board-uk ## Compare-at price range: 13.0 - 13.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) - [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) - [Google Shopping - invalid product](https://thedebugstore.com/a/llms/collections/google-shopping-valid-products) - [Optical Sensor Click Boards™](https://thedebugstore.com/a/llms/collections/optical-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-3320, Available: yes, Inventory: 1 ## Metafields - full_description:

Thanks to the used proprietary technologies that allow high precision, reliability, and low power consumption, the Ambient 5 Click Board™ can be used for the rapid development of various cost-effective applications that rely on light intensity sensing, including optical switches, screen dimming applications for mobile and handheld devices, light metering applications (lux meters), and similar.

How Does The Ambient 5 Click Board™ Work?

The main component of the Ambient 5 Click Board™ is the VEML6030, a high accuracy ambient light sensor (ALS) with an I2C interface, from Vishay Semiconductors. This sensor utilizes several proprietary technologies to ensure accurate measurements of the light intensity, with the spectral response very close to a human eye. By utilizing a sensitive photo-diode, low noise amplifier, and a 16-bit A/D converter (ADC), this sensor can provide the data directly, with no need for complex calculations. The dynamic range for the ambient light sensor is very large, starting down from 0 lux up to about 120 lux, with the maximum resolution of only 0.0036 lux/count. The extremely high sensitivity along with the linear response to different light sources, allows this sensor to be placed behind a dark glass or panels made of other semi-transparent materials.

MikroE Ambient 5 click

The VEML6030 sensor has only six 16-bit registers, which make it very simple to configure and use. Even though, it comes with the mikroSDK compatible library, which simplifies the development even more. However, a more detailed explanation of each command can be found in the datasheet of the VEML6030, if required.

A selectable GAIN allows a very wide dynamic range for ALS measurement. There are two ALS_GAIN bits, allowing the gain level to be set to 1/4x, 1/2x, 1x, and 2x. This offers four different luminosity ranges to be covered for each selected integration time (ALS_IT). For example, the fastest integration time (25ms) results in the lowest resolution (1.8432 lx/count), and combined with the gain of 1/8x, it allows the highest luminosity value to be measured (120,796 lx)

The power consumption of the VEML6030 is in tight relation with the programmed integration time, power supply, and amplification. There are two bits available to select the power mode (PSM), four bits to select the integration time (ALS_IT), and two bits to select the gain (ALS_GAIN). These parameters are determining factors for the average power consumption, measurement resolution, and refresh time. By utilizing such a flexible power-saving scheme, the VEML6030 can be adapted to any type of power-sensitive application.

A configurable interrupt engine allows optimized firmware to be developed, avoiding polling routines and frequent access over the I2C interface. The interrupt pin (INT) is an open-drain output, which is pulled to a HIGH logic level when it is not asserted. When any of the programmed light thresholds is exceeded for a programmed number of times, an interrupt event will be generated, asserting this pin to a LOW logic level. The interrupt pin is routed to the mikroBUS™ INT pin.

The slave I2C address of the VEML6030 can be selected by switching the SMD jumper to an appropriate position. Unlike some other devices, this jumper does not set the LSB of the I2C address, but rather selects between two possible values: when tied to GND (0), the I2C address of the VEML6030 will be 0b0010000x. When tied to VCC (1), the I2C address will be 0b1001000x. The x is the I2C address R/W byte. Due to maximum electrical ratings, this Click board™ is to be used with 3.3V MCUs, only.

SPECIFICATIONS

Type Optical
Applications This sensor is an ideal solution for both IoT light sensing applications, but also for portable or handheld devices which utilize accurate light intensity sensing, such as the TFT/LCD screens, keypad backlight, cell phones, digital cameras, and similar
On-board modules VEML6030, a high accuracy ambient light sensor (ALS) with an I2C interface, from Vishay Semiconductors
Key Features High resolution and range of light intensity that can be measured, spectral response similar to the human eye, low power consumption, compact design ideal for building IoT applications, immune to flickering and fluorescent light sources, independent of the light source type, and more
Interface I2C
Compatibility mikroBUS
Click board size M (42.9 x 25.4 mm)
Input Voltage 3.3V

PINOUT DIAGRAM

This table shows how the pinout on the Ambient 5 Click Board™ 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 INT Interrupt OUT
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 +3V3 7 3.3V 5V 10 NC
Ground GND 8 GND GND 9 GND Ground

ONBOARD SETTINGS AND INDICATORS

Label Name Default  Description
LD1 PWR - Power LED indicator
JP1 I2C ADD Left I2C slave address selection: left position tied to GND (0), right position tied to VCC (1)

 

- description_tag: The Ambient 5 Click Board™ can sense the intensity of the ambient light, providing measurement data in a digital format, over the I2C interface. It utilises the VEML6030, a miniature ambient light sensor (ALS) that occupies only 2x2 mm of space. Available from Debug Store UK. - title_tag: MikroE Ambient 5 Click Board™ (MIKROE-3320) - manufacturer: Mikroelektronika d.o.o. - warranty: 12 months - amazon_enable: TRUE - amazon_title: Ambient 5 Click Board - amazon_product_type: computercomponent - amazon_block: FALSE - amazon_prime_enable: FALSE - amazon_search: MikroElektronika Microelectronica MIKROE-1100 - amazon_uk_price: 9.68 - amazon_uk_currency: GBP - amazon_de_currency: EUR - amazon_de_price: 10.9384 - amazon_fr_currency: EUR - amazon_fr_price: 10.9384 - amazon_es_currency: EUR - amazon_es_price: 10.9384 - amazon_nl_currency: EUR - amazon_nl_price: 10.9384 - amazon_it_currency: EUR - amazon_it_price: 10.9384 - amazon_se_curency: SEK - amazon_se_price: 110.352 - amazon_product_id: 8606018714278 - amazon_product_id_type: EAN - amazon_update: Update - amazon_short_description: The Ambient 5 Click Board™ can sense the intensity of the ambient light, providing measurement data in a digital format, over the I2C interface. It utilises the VEML6030, a miniature ambient light sensor (ALS) which occupies only 2x2 mm of space. Packed in a small transparent casing, this sensor offers a lot of features. Thanks to its 16-bit dynamic range, it can be used in very dim, but also in very bright lighting conditions. A Filtron technology provides spectral response close to a real human eye. The flicker noise rejection algorithm improves accuracy, while excellent thermal compensation ensures consistent readings. - amazon_long_description:

Thanks to the used proprietary technologies that allow high precision, reliability, and low power consumption, Ambient 5 Click can be used for a rapid development of various cost-effective applications that rely on light intensity sensing, including optical switches, screen dimming applications for mobile and handheld devices, light metering applications (lux meters), and similar.

How Does The Ambient 5 Click Board Work?

The main component of the Ambient 5 click is the VEML6030, a high accuracy ambient light sensor (ALS) with I2C interface, from Vishay Semiconductors. This sensor utilizes several proprietary technologies to ensure accurate measurements of the light intensity, with the spectral response very close to a human eye. By utilizing a sensitive photo-diode, low noise amplifier, and a 16-bit A/D converter (ADC), this sensor can provide the data directly, with no need for complex calculations. The dynamic range for the ambient light sensor is very large, starting down from 0 lx up to about 120 klx, with the maximum resolution of only 0.0036 lx/count. The extremely high sensitivity along with the linear response to different light sources, allows this sensor to be placed behind a dark glass or panels made of other semi-transparent materials.

MikroE Ambient 5 click

The VEML6030 sensor has only six 16-bit registers, which make it very simple to configure and use. Even though, it comes with the mikroSDK compatible library, which simplifies the development even more. However, more detailed explanation of each command can be found in the datasheet of the VEML6030, if required.

A selectable GAIN allows a very wide dynamic range for the ALS measurement. There are two ALS_GAIN bits, allowing the gain level to be set to 1/4x, 1/2x, 1x, and 2x. This offers four different luminosity ranges to be covered for each selected integration time (ALS_IT). For example: the fastest integration time (25ms) results in the lowest resolution (1.8432 lx/count), and combined with the gain of 1/8x, it allows the highest luminosity value to be measured (120,796 lx)

Power consumption of the VEML6030 is in tight relation with the programmed integration time, power supply, and amplification. There are two bits available to select the power mode (PSM), four bits to select the integration time (ALS_IT), and two bits to select the gain (ALS_GAIN). These parameters are determining factors for the average power consumption, measurement resolution, and refresh time. By utilizing a such a flexible power saving scheme, the VEML6030 can be adapted to any type of power sensitive application.

A configurable interrupt engine allows optimized firmware to be developed, avoiding polling routines and frequent access over the I2C interface. The interrupt pin (INT) is an open drain output, which is pulled to a HIGH logic level when it is not asserted. When any of the programmed light thresholds is exceeded for a programmed number of times, an interrupt event will be generated, asserting this pin to a LOW logic level. The interrupt pin is routed to the mikroBUS™ INT pin.

The slave I2C address of the VEML6030 can be selected by switching the SMD jumper to an appropriate position. Unlike some other devices, this jumper does not set the LSB of the I2C address, but rather selects between two possible values: when tied to GND (0), the I2C address of the VEML6030 will be 0b0010000x. When tied to VCC (1), the I2C address will be 0b1001000x. The x is the I2C address R/W byte. Due to maximum electrica

- amazon_main_image: https://www.thedebugstore.com/images/product/lg-ambient-5-front_1_1_1.jpg - amazon_other_image_1: https://www.thedebugstore.com/images/product/lg-ambient-5-back_1.jpg - amazon_other_image_2: https://www.thedebugstore.com/images/product/lg-ambient-5-click-in-use_1.jpg - amazon_other_image_3: https://www.thedebugstore.com/images/product/lg-ambient-5-click-in-use_1.jpg - amazon_browse_node: 428655031 - related_products: MIKROE-3686,MIKROE-3452,MIKROE-3601,MIKROE-1903 - mpn: MIKROE-3320 - backorder_label: If no stock shown above, check availability - badge: - widget:

Customer Reviews

Be the first to write a review
0%
(0)
0%
(0)
0%
(0)
0%
(0)
0%
(0)
- examples:

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

Library Description

The library contains functions for reading from and writing to selected registers library contains functions for calculating refresh time, data resolution and light level Library contains functions for powering the device on and checking the state of int pin Library contains functions for setting high and low threshold values.

Key Functions

Example Description

The application is composed of the three sections :

void applicationTask( )
{
    for (i = 0; i < rTime; i ++)
    {
        Delay_ms(1);
    }
    
    highResLightLevel = ambient5_getHighResolutionLightLevel( );

    FloatToStr( highResLightLevel, text );

    mikrobus_logWrite( " Ambient Light Level :   ", _LOG_TEXT );
    mikrobus_logWrite( text, _LOG_TEXT );
    mikrobus_logWrite( "  lx", _LOG_LINE );
}

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

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.

- attachments: [{"download_file":[{"download_file":"Ambient 5 Click Board™ Schematic"}],"download_filetype":[{"download_filetype":"pdf"}]},{"download_file":[{"download_file":"Vishay Semiconductor VEML6030 Ambient Light Sensor Datasheet"}],"download_filetype":[{"download_filetype":"pdf"}]}] - condition: new - custom_product: false - mpn: MIKROE-3320 - google_product_category: Electronics - custom_label_0: Click Board - warranty: 12 months - brand: MikroE - key_feature_1: Ambient Light Measurement Over a Wide Range - manufacturer: Mikroelektronika d.o.o. - target_keyword: Ambient 5 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":"paragraph","children":[{"type":"text","value":"Thanks to the used proprietary technologies that allow high precision, reliability, and low power consumption, the "},{"type":"text","value":"Ambient 5 Click Board™","bold":true,"italic":true},{"type":"text","value":" can be used for the rapid development of various cost-effective applications that rely on light intensity sensing, including optical switches, screen dimming applications for mobile and handheld devices, light metering applications (lux meters), and similar."}]},{"type":"heading","level":3,"children":[{"type":"text","value":"How Does The Ambient 5 Click Board™ Work?"}]},{"type":"paragraph","children":[{"type":"text","value":"The main component of the "},{"type":"text","value":"Ambient 5 Click Board™","bold":true},{"type":"text","value":" is the VEML6030, a high accuracy ambient light sensor (ALS) with an I2C interface, from Vishay Semiconductors. This sensor utilizes several proprietary technologies to ensure accurate measurements of the light intensity, with the spectral response very close to a human eye. By utilizing a sensitive photo-diode, low noise amplifier, and a 16-bit A/D converter (ADC), this sensor can provide the data directly, with no need for complex calculations. The dynamic range for the ambient light sensor is very large, starting down from 0 lux up to about 120 lux, with the maximum resolution of only 0.0036 lux/count. The extremely high sensitivity along with the linear response to different light sources, allows this sensor to be placed behind a dark glass or panels made of other semi-transparent materials."}]},{"type":"paragraph","children":[{"type":"text","value":""}]},{"type":"paragraph","children":[{"type":"text","value":"The VEML6030 sensor has only six 16-bit registers, which make it very simple to configure and use. Even though, it comes with the mikroSDK compatible library, which simplifies the development even more. However, a more detailed explanation of each command can be found in the datasheet of the VEML6030, if required."}]},{"type":"paragraph","children":[{"type":"text","value":"A selectable GAIN allows a very wide dynamic range for ALS measurement. There are two ALS_GAIN bits, allowing the gain level to be set to 1/4x, 1/2x, 1x, and 2x. This offers four different luminosity ranges to be covered for each selected integration time (ALS_IT). For example, the fastest integration time (25ms) results in the lowest resolution (1.8432 lx/count), and combined with the gain of 1/8x, it allows the highest luminosity value to be measured (120,796 lx)"}]},{"type":"paragraph","children":[{"type":"text","value":"The power consumption of the VEML6030 is in tight relation with the programmed integration time, power supply, and amplification. There are two bits available to select the power mode (PSM), four bits to select the integration time (ALS_IT), and two bits to select the gain (ALS_GAIN). These parameters are determining factors for the average power consumption, measurement resolution, and refresh time. By utilizing such a flexible power-saving scheme, the VEML6030 can be adapted to any type of power-sensitive application."}]},{"type":"paragraph","children":[{"type":"text","value":"A configurable interrupt engine allows optimized firmware to be developed, avoiding polling routines and frequent access over the I2C interface. The interrupt pin (INT) is an open-drain output, which is pulled to a HIGH logic level when it is not asserted. When any of the programmed light thresholds is exceeded for a programmed number of times, an interrupt event will be generated, asserting this pin to a LOW logic level. The interrupt pin is routed to the mikroBUS™ INT pin."}]},{"type":"paragraph","children":[{"type":"text","value":"The slave I2C address of the VEML6030 can be selected by switching the SMD jumper to an appropriate position. Unlike some other devices, this jumper does not set the LSB of the I2C address, but rather selects between two possible values: when tied to GND (0), the I2C address of the VEML6030 will be 0b0010000x. When tied to VCC (1), the I2C address will be 0b1001000x. The x is the I2C address R/W byte. Due to maximum electrical ratings, this Click board™ is to be used with 3.3V MCUs, only."}]},{"type":"heading","level":3,"children":[{"type":"text","value":"SPECIFICATIONS"}]},{"type":"paragraph","children":[{"type":"text","value":"Type\nOptical\nApplications\nThis sensor is an ideal solution for both IoT light sensing applications, but also for portable or handheld devices which utilize accurate light intensity sensing, such as the TFT/LCD screens, keypad backlight, cell phones, digital cameras, and similar\nOn-board modules\nVEML6030, a high accuracy ambient light sensor (ALS) with an I2C interface, from Vishay Semiconductors\nKey Features\nHigh resolution and range of light intensity that can be measured, spectral response similar to the human eye, low power consumption, compact design ideal for building IoT applications, immune to flickering and fluorescent light sources, independent of the light source type, and more\nInterface\nI2C\nCompatibility\nmikroBUS\nClick board size\nM (42.9 x 25.4 mm)\nInput Voltage\n3.3V"}]},{"type":"heading","level":3,"children":[{"type":"text","value":"PINOUT DIAGRAM"}]},{"type":"paragraph","children":[{"type":"text","value":"This table shows how the pinout on the "},{"type":"text","value":"Ambient 5 Click Board™","bold":true},{"type":"text","value":" 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\nINT\nInterrupt OUT\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\n+3V3\n7\n3.3V\n5V\n10\nNC\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\n Description\nLD1\nPWR\n-\nPower LED indicator\nJP1\nI2C ADD\nLeft\nI2C slave address selection: left position tied to GND (0), right position tied to VCC (1)"}]},{"type":"heading","level":3,"children":[{"type":"text","value":" "}]}]} - summary:

The Ambient 5 Click Board™ can sense the intensity of the ambient light, providing measurement data in a digital format, over the I2C interface. It utilises the VEML6030, a miniature ambient light sensor (ALS) that occupies only 2x2 mm of space. Packed in a small transparent casing, this sensor offers a lot of features.

Thanks to its 16-bit dynamic range, it can be used in very dim, but also in very bright lighting conditions. A Filtron technology provides spectral response close to a real human eye. The flicker noise rejection algorithm improves accuracy, while excellent thermal compensation ensures consistent readings.