TOP Contributors

  1. MIKROE (2750 codes)
  2. Alcides Ramos (372 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (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 (139008 times)
  2. FAT32 Library (71549 times)
  3. Network Ethernet Library (56933 times)
  4. USB Device Library (47291 times)
  5. Network WiFi Library (43001 times)
  6. FT800 Library (42287 times)
  7. GSM click (29727 times)
  8. mikroSDK (27820 times)
  9. PID Library (26844 times)
  10. microSD click (26092 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

Load Cell 2 click

Rating:

5

Author: MIKROE

Last Updated: 2020-03-25

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Force

Downloaded: 3253 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.

No Abuse Reported

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".

  • 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

Load Cell 2 Click

Load Cell 2 Click

Native view of the Load Cell 2 Click board.

View full image
Load Cell 2 Click

Load Cell 2 Click

Front and back view of the Load Cell 2 Click board.

View full image

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 :

  • System Initialization - Initializes I2C, set INT pin as input and stert to write log.
  • Application Initialization - Initializes I2C driver and performs the device reset, set power on and default configuration. Sets tare the scale, calibrate scale and start measurements.
  • Application Task - (code snippet) - This is an example which demonstrates the use of Load Cell 2 Click board. Display the measurement of scales in grams [g]. Results are being sent to the Usart Terminal where you can track their changes. All data logs write on USB uart changes for every 1 sec.
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:

  • 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

Brushless 6 Click

0

Brushless 6 Click is designed to drive a three-phase sensorless.

[Learn More]

BLE2 click

10

Explore the possibilities of BLE2 click, the click board for adding a peripheral Bluetooth Low Energy device to your design. You can use this application as a starting point for developing your own apps with the provided source code.

[Learn More]

Proximity click

0

Simple demonstration of using VCNL4010 Proximity sensor chip. Example will detect if there is close object to the sensor. It will detect close objects up to 20cm. Also it has light photo pin diode, which will allow user to measure ambient light value.

[Learn More]