TOP Contributors

  1. MIKROE (2650 codes)
  2. Alcides Ramos (350 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 (136537 times)
  2. FAT32 Library (69730 times)
  3. Network Ethernet Library (55839 times)
  4. USB Device Library (46170 times)
  5. Network WiFi Library (41798 times)
  6. FT800 Library (40984 times)
  7. GSM click (28921 times)
  8. PID Library (26383 times)
  9. mikroSDK (26276 times)
  10. microSD click (25297 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 click

Rating:

5

Author: MIKROE

Last Updated: 2019-11-14

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Force

Downloaded: 4735 times

Not followed.

License: MIT license  

Load cell 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 click can be used with the strain gauge type of load cells and can measure up to ±20V or ±40V of differential voltage.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Load cell click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Load cell click" changes.

Do you want to report abuse regarding "Load cell 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 click

Load cell click

Native view of the Load cell click board.

View full image
Load cell click

Load cell click

Front and back view of the Load cell click board.

View full image

Library Description

The library covers all the necessary functions to control Load cell click board.
Library reads 24-bit digital converted results from the desired channel with determined rate value (which determines the frequency of internal oscillator).

Key functions:

  • float loadcell_get_weight ( uint8_t input_sel, loadcell_data_t *cell_data ) - Function performs measurement.
  • void loadcell_set_rate ( uint8_t rate_sel ) - Function selects the frequency of internal oscillator.
  • void loadcell_set_mode ( uint8_t pwr_mode ) - Function puts the device in Power Up or Power Down Mode.

Examples description

The application is composed of three sections :

  • System Initialization - Initializes peripherals and pins.
  • Application Initialization - Initializes GPIO driver and performs the device reset,
        after which the next conversion cycle will be for channel B with 32 gate value.
        This function also selects the frequency of the internal oscillator to 10Hz.
        Sets tare the scale, calibrate the scale and start measurements.
  • Application Task - (code snippet) - This is an example that demonstrates the use of Load Cell 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 applicationTask()
{
    weight_val = loadcell_get_weight( LOADCELL_CHANN_B_GATE_32_NEXT, &cell_data );
    
    log_display( weight_val );
    
    Delay_ms( 1000 );
}

Additional Functions:

  • void log_display ( float display_val ) - The function displays readings as a floating-point value with two decimal places.

Other mikroE Libraries used in the example:

  • GPIO
  • Conversions
  • UART

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

Magneto 13 click

0

Magneto 13 Click is a compact add-on board with an accurate and reliable magnetic device. This board features the MA736, a contactless digital angle sensor from Monolithic Power Systems. It is a MagAlpha sensor that detects the absolute angular position of a permanent magnet, typically a diametrically magnetized cylinder or a rotating shaft. The MA736 sensor supports a wide range of magnetic field strengths, end-of-shaft, and side-shaft (off-axis mounting) spatial configurations.

[Learn More]

AES in TM4C129XNCZAD

5

Demonstration of Advanced Encryption Standard (AES) cryptographic hardware-accelerated module in TIVA TM4C129XNCZAD mcu. Library and example written by Milan Tepic from our Intern's lab. For detailed information see the comments in source code.

[Learn More]

Multi Stepper TB67S209 click

0

Multi Stepper Click is a compact add-on board that contains a bipolar stepper motor driver. This board features the TB67S209FTG, CLOCK-in controlled bipolar stepping motor driver from Toshiba Semiconductor. It supports a PWM constant-current control drive, selectable mixed decay mode, and allows from full-step up to 1/32 steps resolution for less motor noise and smoother control. It has a wide operating voltage range of 10V to 47V with an output current capacity of 2.8A in addition to several built-in error detection circuits.

[Learn More]