TOP Contributors

  1. MIKROE (2650 codes)
  2. Alcides Ramos (350 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 (136545 times)
  2. FAT32 Library (69739 times)
  3. Network Ethernet Library (55845 times)
  4. USB Device Library (46180 times)
  5. Network WiFi Library (41803 times)
  6. FT800 Library (40990 times)
  7. GSM click (28925 times)
  8. PID Library (26385 times)
  9. mikroSDK (26286 times)
  10. microSD click (25300 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

Oximeter 3 click

Rating:

5

Author: MIKROE

Last Updated: 2020-09-03

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Biometrics

Downloaded: 1486 times

Not followed.

License: MIT license  

Oximeter 3 Click is a compact add-on board perfectly suited for measuring the blood oxygen saturation. This board features the VCNL4020C-GS08, a fully integrated high-resolution digital biosensor from Vishay Semiconductors.

No Abuse Reported

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

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

Do you want to report abuse regarding "Oximeter 3 click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)

mikroSDK Library Blog

Oximeter 3 Click

Oximeter 3 Click

Native view of the Oximeter 3 Click board.

View full image
Oximeter 3 Click

Oximeter 3 Click

Front and back view of the Oximeter 3 Click board.

View full image

Library Description

Library provides generic functions for reading and writig data to register and getting INT pin status. There is one specific function that reads data from sensor and returns it, which data returns depends on input parameter.

Key functions:

  • void oximeter3_generic_write ( uint8_t reg_addr, uint8_t write_data ) - Function for writing data to register address.
  • uint8_t oximeter3_generic_read ( uint8_t reg_addr ) - Function for reading data from register address.
  • uint16_t oximeter3_read_value ( uint8_t type_macro ) - Function for reading value from sensor.

Examples description

The application is composed of three sections :

  • System Initialization - Initialization of I2C module and int pin
  • Application Initialization - Check id status, configures device for previous selected mode
  • Application Task - Appliction measures values of heart rate or proximity and als value. It depends of selected device mode.
void application_task ( )
{

    if ( OXIMETER3_HEART_RATE == dev_mode )
    {
        rd_val = oximeter3_read_value( OXIMETER3_PROX );
        WordToStr( rd_val, demo_txt );
        mikrobus_logWrite( demo_txt, _LOG_TEXT );
        mikrobus_logWrite( ",", _LOG_LINE );
        Delay_ms( 3 );
    }
    else
    {
        rd_val = oximeter3_read_value( OXIMETER3_PROX );
        WordToStr( rd_val, demo_txt );
        mikrobus_logWrite( " * Proximity: ", _LOG_TEXT );
        mikrobus_logWrite( demo_txt, _LOG_LINE );
        
        rd_val = oximeter3_read_value( OXIMETER3_ALS );
        WordToStr( rd_val, demo_txt );
        mikrobus_logWrite( " * ALS: ", _LOG_TEXT );
        mikrobus_logWrite( demo_txt, _LOG_LINE );
        
        mikrobus_logWrite( "********************", _LOG_LINE );
        
        Delay_ms( 500 );
    }
}

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

TempHum 17 click

0

Temp&Hum 17 Click is a compact add-on board that represents temperature and humidity sensing solutions. This board features the HS3001, a highly accurate, fully calibrated relative humidity and temperature sensor from Renesas. It features proprietary sensor-level protection, ensuring high reliability and long-term stability. Integrated calibration and temperature-compensation logic provides fully corrected RH and temperature values via standard I2C output. No user calibration of the output data is required.

[Learn More]

GNSS ZOE click

5

Determine your current position with GNSS ZOE Click. It carries the ZOE-M8Q GNSS receiver module from u-blox. GNSS ZOE click is designed to run on a 3.3V power supply.

[Learn More]

N-PLC click

0

N-PLC Click is a compact add-on board that uses existing electrical power lines to transmit data signals. This board features the SM2400, an advanced multi-standard Narrow-band Power Line Communication (N-PLC) modem from Semitech. The SM2400 features a dual-core architecture, a DSP core for N-PLC modulations, and a 32-bit core for running protocols for superior communication performance and flexibility for various open standards and customized implementations. It includes firmware options for IEEE 1901.2 compliant PHY and MAC layers, a 6LoWPAN data link layer, and special modes for industrial IoT applications. In addition to the ability to accept signals from another PLC modem or the power line communication AC coupling circuit, this board also has a handful of other features, such as a selectable interface and power supply, firmware update capabilities, LED indicators, and many others.

[Learn More]