ProxFusion 2 Click Board
ProxFusion 2 Click Board
The ProxFusion 2 Click Board™ is an ambient lighting, capacitive, Hall-effect, and inductive sensing Click Board™ which features a single multifunctional sensor IC. The IQS621 IC from ProxFusion' sensor series offers several ProxSense' engine capabilities, with additional sensor types. Thanks to its high level of integration, this sensor requires a low number of external components, which combined with its very low power consumption, makes it a perfect solution for IoT applications. Such applications can also benefit from a variety of sensors on the same die, allowing more complex devices to be designed or integrated, with no additional costs.
The ProxFusion 2 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.
Software Support
We provide a library for the ProxFusion® 2 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 initializes and defines the I2C bus or SPI bus driver and drivers that offer a choice for writing data in register. The library includes function for read ambient light, hall-effect and temperature and function for detect touch. The user also has the function for initializes chip and configuration chip.
Key Functions
void proxfusion
2_configuration()
- Function for configuration chipuint8_t proxfusion
2_init()
- Function for initializes chipuint8_t proxfusion
2_detectTouch()
- Function for detect Touchuint8_t proxfusion
2_detectDark_Light(uint8_t *ALS_range)
- Function for read ambient lightuint8_t proxfusion
2_detectHall()
- Function for read Hall-effect
Example Description
The application is composed of the three sections :
- System Initialization - Initializes I2C module and sets INT pin as INPUT
- Application Initialization - Initializes Driver init and configuraton and init chip
- Application Task - (code snippet):
- Checks whether Touch is detected and measures the output detection.
- Measures Ambient lighting - whether it's Light or Dark, ALS range and ALS output.
- Checks the orientation of the magnet and measures the HALL output.
void applicationTask() { mikrobus_logWrite("_________________________________________________________________________", _LOG_LINE); mikrobus_logWrite("| TOUCH | T - UI | AMBIENT | ALS RANGE | ALS UI | HALL | HALL UI |",_LOG_LINE); // TOUCH Touch = proxfusion2_readByte(0x13); if ((Touch & 0x02) != 0) { mikrobus_logWrite("| YES |", _LOG_TEXT); } else { mikrobus_logWrite("| NO |", _LOG_TEXT); } dataRead = proxfusion2_readData( _PROXFUSION2_HYSTERESIS_UI_OUTPUT ); IntToStr(dataRead, demoText); mikrobus_logWrite(demoText, _LOG_TEXT); mikrobus_logWrite(" |",_LOG_TEXT); // AMBIENT darkLight_ambient = proxfusion2_detectDark_Light(&ALS_range); if (darkLight_ambient == _PROXFUSION2_DARK_AMBIENT ) { mikrobus_logWrite(" DARK |",_LOG_TEXT); } else { mikrobus_logWrite(" LIGHT |",_LOG_TEXT); } IntToStr(ALS_range, demoText); mikrobus_logWrite(demoText, _LOG_TEXT); mikrobus_logWrite(" |",_LOG_TEXT); dataRead = proxfusion2_readData( _PROXFUSION2_ALS_UI_OUTPUT ); IntToStr(dataRead, demoText); mikrobus_logWrite(demoText, _LOG_TEXT); mikrobus_logWrite(" |",_LOG_TEXT); // HALL hall_detect = proxfusion2_detectHall(); if (hall_detect != 0) { if( hall_detect == 1 ) { mikrobus_logWrite(" NORTH |",_LOG_TEXT); } else { mikrobus_logWrite(" SOUTH |",_LOG_TEXT); } } dataRead = proxfusion2_readData( _PROXFUSION2_HALL_EFFECT_UI_OUTPUT ); IntToStr(dataRead, demoText); mikrobus_logWrite(demoText, _LOG_TEXT); mikrobus_logWrite(" |",_LOG_LINE); Delay_ms(3000); }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
I2C
UART
Additional Notes and Information
Depending on the development board you are using, you may need 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.
MIKROSDK
The ProxFusion® 2 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.
ProxFusion 2 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.