# Title: Ambient 18 Click Board™ ## Description: How Does The Ambient 18 Click Board™ Work? The Ambient 18 Click Board™ uses the BH1680FVC, an analogue current-output ambient light sensor from Rohm Semiconductor. It is composed of photodiodes, amplifiers, and current mirror circuits and can detect a wide range of illuminance up to 10Klux, providing excellent responsivity close to the human eyes' response. It has stable performance over a wide temperature, voltage range, and a built-in shutdown function. It is characterized by good output linearity across a wide illumination range and low sensitivity variation across various light sources suitable to sense the amount of the present ambient light. It also has four configurable modes of operation, shutdown mode associated with three gain modes: high-gain mode, medium-gain mode, and low-gain mode. The desired gain mode is selected through CS and PWM pins of the mikroBUS™ socket labelled as GC1 and GC2. The output of the BH1680FVC can be converted to a digital value using MCP3221, a successive approximation A/D converter with a 12-bit resolution from Microchip, using a 2-wire I2C compatible interface, or can be sent directly to an analog pin of the mikroBUS™ socket labelled as AN. Selection can be performed by onboard SMD jumper labelled as ADC SEL to an appropriate position marked as AN and I2C. The MCP3221 provides one single-ended input with low power consumption, a low maximum conversion current, and a Standby current of 250μA and 1μA, respectively. Data can be transferred at rates of up to 100kbit/s in the Standard and 400kbit/s in the Fast Mode. Also, maximum sample rates of 22.3kSPS with the MCP3221 are possible in a Continuous-Conversion Mode with a clock rate of 400kHz. The Ambient 18 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 use the communication lines properly. 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 Optical Applications The Ambient 18 Click Board™ be used for obtaining ambient light data for adjusting brightness in applications that require power saving and better visibility On-board modules BH1680FVC - analog current-output ambient light sensor from Rohm Semiconductor Key Features Low power consumption, close responsivity to the human eye, good output linearity across wide illumination range, low sensitivity variation across various light sources, stable performance over temperature and voltage, possibility of signal processing in analog and digital form, and more Interface Analog,GPIO,I2C Compatibility mikroBUS Click board size S (28.6 x 25.4 mm) Input Voltage 3.3V or 5V PINOUT DIAGRAM This table shows how the pinout on Ambient 18 Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns). Notes Pin Pin Notes Analog Signal AN 1 AN PWM 16 GC1 Gain Mode Control Signal 2 NC 2 RST INT 15 NC Gain Mode Control Signal 1 GC1 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 JP2 ADC SEL Right Output Voltage A/D Selection AN/I2C: Left position AN, Right position I2C AMBIENT 18 CLICK ELECTRICAL SPECIFICATIONS Description Min Typ Max Unit Supply Voltage 3.3 - 5 V Maximum Output Current - - 7.5 mA Peak Wavelenght - 530 - nm Operating Temperature Range -40 +25 +85 °C ## Product type: Click Board ## Vendor: Mikroelektronika d.o.o. ## Tags: Click Board, MikroE, Optical, ROHM, Sensor ## Price range: 7.7 - 7.7 GBP ## Link: https://thedebugstore.com/products/mikroe-4943-ambient-18-click-board-uk ## Compare-at price range: 11.0 - 11.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) - [ROHM Semiconductor Device Support: Development Boards & Tools](https://thedebugstore.com/a/llms/collections/devices-rohm) - [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-4943, Available: yes, Inventory: 1 ## Metafields - badge:
- widget:The Ambient 18 Click Board™ uses the BH1680FVC, an analogue current-output ambient light sensor from Rohm Semiconductor. It is composed of photodiodes, amplifiers, and current mirror circuits and can detect a wide range of illuminance up to 10Klux, providing excellent responsivity close to the human eyes' response. It has stable performance over a wide temperature, voltage range, and a built-in shutdown function. It is characterized by good output linearity across a wide illumination range and low sensitivity variation across various light sources suitable to sense the amount of the present ambient light.

It also has four configurable modes of operation, shutdown mode associated with three gain modes: high-gain mode, medium-gain mode, and low-gain mode. The desired gain mode is selected through CS and PWM pins of the mikroBUS™ socket labelled as GC1 and GC2.
The output of the BH1680FVC can be converted to a digital value using MCP3221, a successive approximation A/D converter with a 12-bit resolution from Microchip, using a 2-wire I2C compatible interface, or can be sent directly to an analog pin of the mikroBUS™ socket labelled as AN. Selection can be performed by onboard SMD jumper labelled as ADC SEL to an appropriate position marked as AN and I2C.
The MCP3221 provides one single-ended input with low power consumption, a low maximum conversion current, and a Standby current of 250μA and 1μA, respectively. Data can be transferred at rates of up to 100kbit/s in the Standard and 400kbit/s in the Fast Mode. Also, maximum sample rates of 22.3kSPS with the MCP3221 are possible in a Continuous-Conversion Mode with a clock rate of 400kHz.
The Ambient 18 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 use the communication lines properly. 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 | Optical |
| Applications | The Ambient 18 Click Board™ be used for obtaining ambient light data for adjusting brightness in applications that require power saving and better visibility |
| On-board modules | BH1680FVC - analog current-output ambient light sensor from Rohm Semiconductor |
| Key Features | Low power consumption, close responsivity to the human eye, good output linearity across wide illumination range, low sensitivity variation across various light sources, stable performance over temperature and voltage, possibility of signal processing in analog and digital form, and more |
| Interface | Analog,GPIO,I2C |
| Compatibility | mikroBUS |
| Click board size | S (28.6 x 25.4 mm) |
| Input Voltage | 3.3V or 5V |
This table shows how the pinout on Ambient 18 Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
| Notes | Pin | ![]() |
Pin | Notes | |||
|---|---|---|---|---|---|---|---|
| Analog Signal | AN | 1 | AN | PWM | 16 | GC1 | Gain Mode Control Signal 2 |
| NC | 2 | RST | INT | 15 | NC | ||
| Gain Mode Control Signal 1 |
GC1 | 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 |
| 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 |
| JP2 | ADC SEL | Right | Output Voltage A/D Selection AN/I2C: Left position AN, Right position I2C |
| Description | Min | Typ | Max | Unit |
|---|---|---|---|---|
| Supply Voltage | 3.3 | - | 5 | V |
| Maximum Output Current | - | - | 7.5 | mA |
| Peak Wavelenght | - | 530 | - | nm |
| Operating Temperature Range | -40 | +25 | +85 | °C |
We provide a library for the Ambient 18 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 The package Manager (recommended), downloaded from our LibStock™ or found on Mikroe Github account.
This library contains API for the Ambient 18 Click Board™ driver.
Key functions
ambient18_set_gain_mode This function sets the gain mode.
ambient18_read_voltage This function reads raw ADC value and converts it to proportional voltage level.
ambient18_voltage_to_lux This function calculates illuminance (lux) based on the voltage input.
This example demonstrates the use of the Ambient 18 Click Board™ by measuring and displaying the illuminance value in Lux.
void application_task ( void )
{
float voltage = 0;
if ( AMBIENT18_OK == ambient18_read_voltage ( &ambient18, &voltage ) )
{
log_printf( &logger, " Illuminance : %ld Luxrnn", ambient18_voltage_to_lux( &ambient18, voltage ) );
Delay_ms( 1000 );
}
}
The full application code, and ready to use projects can be installed directly from NECTO Studio The package Manager (recommended), downloaded from our LibStock™ or found on Mikroe Github account.
Other Mikroe Libraries used in the example:
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. UART terminal is available in all MikroElektronika compilers.
The Ambient 18 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":"Ambient 18 Click Board™ Schematic"}],"download_filetype":[{"download_filetype":"pdf"}]},{"download_file":[{"download_file":"Rohm Semiconductor V Current Output Light Sensor Datasheet"}],"download_filetype":[{"download_filetype":"pdf"}]},{"download_file":[{"download_file":"Microchip MCP3221 12-bit ADC Datasheet"}],"download_filetype":[{"download_filetype":"pdf"}]}] - condition: new - custom_product: false - mpn: MIKROE-4943 - google_product_category: Electronics - custom_label_0: Click Board - mpn: MIKROE-4943 - device_vendor: Microchip Technology, Rohm Semiconductor - device_type: MCP3221A5T-E/OT, BH1680FVC-TR - warranty: 12 months - brand: MikroE - manufacturer: Mikroelektronika d.o.o. - target_keyword: Ambient 18 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 Ambient 18 Click Board™ Work?"}]},{"type":"paragraph","children":[{"type":"text","value":"The "},{"type":"text","value":"Ambient 18 Click Board™","bold":true,"italic":true},{"type":"text","value":" uses the BH1680FVC, an analogue current-output ambient light sensor from Rohm Semiconductor. It is composed of photodiodes, amplifiers, and current mirror circuits and can detect a wide range of illuminance up to 10Klux, providing excellent responsivity close to the human eyes' response. It has stable performance over a wide temperature, voltage range, and a built-in shutdown function. It is characterized by good output linearity across a wide illumination range and low sensitivity variation across various light sources suitable to sense the amount of the present ambient light."}]},{"type":"paragraph","children":[{"type":"text","value":""}]},{"type":"paragraph","children":[{"type":"text","value":"It also has four configurable modes of operation, shutdown mode associated with three gain modes: high-gain mode, medium-gain mode, and low-gain mode. The desired gain mode is selected through CS and PWM pins of the mikroBUS™ socket labelled as GC1 and GC2."}]},{"type":"paragraph","children":[{"type":"text","value":"The output of the BH1680FVC can be converted to a digital value using MCP3221, a successive approximation A/D converter with a 12-bit resolution from Microchip, using a 2-wire I2C compatible interface, or can be sent directly to an analog pin of the mikroBUS™ socket labelled as AN. Selection can be performed by onboard SMD jumper labelled as ADC SEL to an appropriate position marked as AN and I2C."}]},{"type":"paragraph","children":[{"type":"text","value":"The MCP3221 provides one single-ended input with low power consumption, a low maximum conversion current, and a Standby current of 250μA and 1μA, respectively. Data can be transferred at rates of up to 100kbit/s in the Standard and 400kbit/s in the Fast Mode. Also, maximum sample rates of 22.3kSPS with the MCP3221 are possible in a Continuous-Conversion Mode with a clock rate of 400kHz."}]},{"type":"paragraph","children":[{"type":"text","value":"The "},{"type":"text","value":"Ambient 18 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 use the communication lines properly. 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\nOptical\nApplications\nThe Ambient 18 Click Board™ be used for obtaining ambient light data for adjusting brightness in applications that require power saving and better visibility\nOn-board modules\nBH1680FVC - analog current-output ambient light sensor from Rohm Semiconductor\nKey Features\nLow power consumption, close responsivity to the human eye, good output linearity across wide illumination range, low sensitivity variation across various light sources, stable performance over temperature and voltage, possibility of signal processing in analog and digital form, and more\nInterface\nAnalog,GPIO,I2C\nCompatibility\nmikroBUS\nClick board size\nS (28.6 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 Ambient 18 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\nAnalog Signal\nAN\n1\nAN\nPWM\n16\nGC1\nGain Mode Control\n Signal 2\nNC\n2\nRST\nINT\n15\nNC\nGain Mode Control\n Signal 1\nGC1\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\nJP2\nADC SEL\nRight\nOutput Voltage A/D Selection AN/I2C: Left position AN, Right position I2C"}]},{"type":"heading","level":3,"children":[{"type":"text","value":"AMBIENT 18 CLICK ELECTRICAL SPECIFICATIONS"}]},{"type":"paragraph","children":[{"type":"text","value":"Description\nMin\nTyp\nMax\nUnit\nSupply Voltage\n3.3\n-\n5\nV\nMaximum Output Current\n-\n-\n7.5\nmA\nPeak Wavelenght\n-\n530\n-\nnm\nOperating Temperature Range\n-40\n+25\n+85\n°C"}]},{"type":"heading","level":3,"children":[{"type":"text","value":" "}]}]} - summary:The Ambient 18 Click Board™ is a compact add-on board used to sense the amount of the present ambient light. This board features the BH1680FVC, an analogue current-output ambient light sensor from Rohm Semiconductor. The BH1680FVC can detect a wide range of illuminance up to 10klx and provides excellent responsivity close to the human eyes' response. Besides, it is also characterized by low sensitivity variation across various light sources, a built-in shutdown function, and the ability to process the output signal in analogue or digital form. This Click board™ is the most suitable for obtaining ambient light data for adjusting brightness in applications that require power saving and better visibility.
The Ambient 18 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.