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: 2021-01-14
Package Version: 1.0.0.0
mikroSDK Library: 1.0.0.0
Category: Force
Downloaded: 2406 times
Not followed.
License: MIT license
Load Cell 4 Click is a compact add-on board that contains a resistive sensor signal conditioner with a fast power-up data output response.
Do you want to subscribe in order to receive notifications regarding "Load Cell 4 click" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "Load Cell 4 click" changes.
Do you want to report abuse regarding "Load Cell 4 click".
Library Description
The library covers all the necessary functions to control Load Cell 4 Click board™. Library performs a standard I2C interface communication.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on mikroE github account.
Key functions:
void loadcell4_tare ( loadcell4_data_t *cell_data )
- Tare the scales function.uint8_t loadcell4_calibration ( uint16_t cal_val, loadcell4_data_t *cell_data )
- Calibration function.float loadcell4_get_weight ( loadcell4_data_t *cell_data )
- Get weight function.Examples description
The application is composed of three sections :
void application_task ( )
{
weight_val = loadcell4_get_weight( &cell_data );
log_display( weight_val );
Delay_ms( 100 );
}
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.