TOP Contributors

  1. MIKROE (2652 codes)
  2. Alcides Ramos (351 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 (136632 times)
  2. FAT32 Library (69836 times)
  3. Network Ethernet Library (55890 times)
  4. USB Device Library (46226 times)
  5. Network WiFi Library (41862 times)
  6. FT800 Library (41083 times)
  7. GSM click (28944 times)
  8. PID Library (26402 times)
  9. mikroSDK (26317 times)
  10. microSD click (25328 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

Ambient 11 Click

Rating:

5

Author: MIKROE

Last Updated: 2020-02-14

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Audio & Speech

Downloaded: 2342 times

Not followed.

License: MIT license  

The Ambient 11 Click is a Click board equipped with the VEML6035, a low power, high sensitivity, I2C ambient light sensor from Vishay Semiconductors.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Ambient 11 Click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Ambient 11 Click" changes.

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

Ambient 11 click

Ambient 11 click

Native view of the Ambient 11 click board.

View full image
Ambient 11 click

Ambient 11 click

Front and back view of the Ambient 11 click board.

View full image

Library Description

This library holds functions that can be used to write data, read raw data, read and calculate ambiental illumination and check for interrupt occurence.

Key functions:

  • void ambient11_write_data ( uint8_t wr_cmd, uint16_t wr_data ) - Writes 16-bit data into register defined by 8-bit command.
  • uint16_t ambient11_read_data ( uint8_t wr_cmd ) - Reads data from register defined by 8-bit command.
  • float ambient11_calc_illumination ( float typical_res ) - Function is used to calculate ambiental illumination.

Examples description

The application is composed of three sections :

  • System Initialization - Initializes I2C module, LOG structure and sets INT pin as input.
  • Application Initialization - Initalizes I2C driver, applies low sensitiviti settings ( GAIN = 0, DG = 0, SENS = 1 and IT = 100ms ) and makes an initial log.
  • Application Task - (code snippet) This example shows the capabilities of the Ambient 11 click by measuring ambiental illumination and displaying calculated value via USART terminal in luxes.
void application_task ( )
{
    lx_val = ambient11_calc_illumination( resolution );
    FloatToStr( lx_val, log_txt );
    mikrobus_logWrite( "Illumination : ", _LOG_TEXT );
    mikrobus_logWrite( log_txt, _LOG_TEXT );
    mikrobus_logWrite( "lx", _LOG_LINE );
    
    mikrobus_logWrite( "-------------------------", _LOG_LINE );
    Delay_ms( 2000 );
}

Other mikroE Libraries used in the example:

  • I2C
  • UART
  • Conversion

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

Expand 8 click

0

Expand 8 Click is a compact add-on board that contains a multi-port I/O expander with bi-directional input/outputs. This board features the MAX7317, 10-Port SPI-interfaced I/O expander with overvoltage and hot-insertion protection from Maxim Integrated.

[Learn More]

I2C Isolator 2 click

5

I2C Isolator 2 click provides I2C lines and power isolation for slave devices. It carries the ADM3260 dual I2C isolator with an integrated DC-to-DC converter, from Analog Devices. I2C Isolator 2 click is designed to run on either 3.3V or 5V power supply.

[Learn More]

Heart rate 6 click

5

Heart rate 6 click is an optical biosensor Click board designed for heart-rate monitoring (HRM).

[Learn More]