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]
Rating:
Author: MIKROE
Last Updated: 2020-03-25
Package Version: 1.0.0.0
mikroSDK Library: 1.0.0.0
Category: Force
Downloaded: 3375 times
Not followed.
License: MIT license
Load cell 2 Click is a weight measurement click which utilizes a load cell element, in order to precisely measure the weight of an object. The Load Cell 2 Click can be used with the strain gauge type of load cells with external differential reference voltage range from 0.1V to 5V.
Do you want to subscribe in order to receive notifications regarding "Load Cell 2 click" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "Load Cell 2 click" changes.
Do you want to report abuse regarding "Load Cell 2 click".
Library Description
The library covers all the necessary functions to control Load Cell 2 click board. Library performs a standard I2C interface communication.
Key functions:
float loadcell2_get_weight ( loadcell2_data_t *cell_data )
- Get weight function.uint32_t loadcell2_get_result ( void )
- Get results function.void loadcell2_set_default_config ( void )
- Set default sensor configuration function.Examples description
The application is composed of three sections :
void application_task ( )
{
weight_val = loadcell2_get_weight( &cell_data );
log_display( weight_val );
Delay_ms( 1000 );
}
Additional Functions :
void log_display ( float display_val )
- Function displays readings as floating point value with two decimal places.Other mikroE Libraries used in the example:
Additional notes and informations
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.