TOP Contributors

  1. MIKROE (2642 codes)
  2. Alcides Ramos (347 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 (136222 times)
  2. FAT32 Library (69489 times)
  3. Network Ethernet Library (55708 times)
  4. USB Device Library (45992 times)
  5. Network WiFi Library (41639 times)
  6. FT800 Library (40794 times)
  7. GSM click (28789 times)
  8. PID Library (26332 times)
  9. mikroSDK (26057 times)
  10. microSD click (25143 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

Proximity 13 click

Rating:

5

Author: MIKROE

Last Updated: 2020-02-12

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Proximity

Downloaded: 2642 times

Not followed.

License: MIT license  

Proximity 13 Click based on SI1153-AB09-GMR IC from Silicon Labs that can be used as an proximity, and gesture detector with I2C digital interface and programmable-event interrupt output. The host can send command the Proximity 13 click to initiate on-demand proximity measurements.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Proximity 13 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Proximity 13 click" changes.

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

Proximity 13 click

Proximity 13 click

Native view of the Proximity 13 click board.

View full image
Proximity 13 click

Proximity 13 click

Front and back view of the Proximity 13 click board.

View full image

Library Description

Librari provides functions for reading and writing to registers. You have functions for setting parameters, sending commands and configurating device channels. There is function for reading all channels if they are enabled.

Key functions:

  • uint8_t proximity13_generic_read ( uint8_t reg_adr ) - Generic read function from registers
  • void proximity13_generic_write ( uint8_t reg_adr, uint8_t write_data ) - Generic write function to registers
  • uint8_t proximity13_get_int_pin_status ( void ) - Function for reading status of int pin
  • uint8_t proximity13_send_command ( uint8_t cmd_val ) - Function for sending commands
  • uint8_t proximity13_set_parameter ( uint8_t param, uint8_t cmd_val ) - Function for setting parameters
  • uint8_t porximity13_config_channel ( uint8_t chn_num, proximity13_cfg_t cfg_val ) - Function for configurating specific channel
  • void proximity13_read_channels ( proximity13_chn_val_t *chn_val ) - Fucnction for reading from all enabled channels

Examples description

The application is composed of three sections :

  • System Initialization - Initialization of I2C module and setting int pin to output
  • Application Initialization - Check id status, configures device and sends command for measurement
  • Application Task - Appliction measures values very 100ms and converts it to 24bit
void application_task ( )
{
    proximity13_chn_val_t chn_val;
    char txt[ 30 ];

    proximity13_read_channels( &chn_val );

    WordToStr( chn_val.channel_1, txt );
    mikrobus_logWrite( "Data :", _LOG_TEXT );
    mikrobus_logWrite( txt, _LOG_LINE );

    Delay_ms ( 100 );
}

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

H-Bridge 13 click

0

H-Bridge 13 Click is a compact add-on board with an H-bridge gate driver, also known as a full-bridge pre-driver. This board features the DRV8411A, a dual H-bridge motor driver with current regulations from Texas Instruments. It can drive one bipolar stepper motor, one or two brushed DC motors, solenoids, and other inductive loads.

[Learn More]

Color 7 click demo example

0

This example is made to demonstrate the operation of the Color 7 click.

[Learn More]

Buck 3 Click

5

Buck 3 click is a very advanced synchronous step-down (buck) converter, which is designed to deliver noise and ripple-free voltage to highly sensitive applications, such as FPGA and high-performance DSP platforms.

[Learn More]