TOP Contributors

  1. MIKROE (2751 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 (139060 times)
  2. FAT32 Library (71592 times)
  3. Network Ethernet Library (56989 times)
  4. USB Device Library (47330 times)
  5. Network WiFi Library (43006 times)
  6. FT800 Library (42297 times)
  7. GSM click (29777 times)
  8. mikroSDK (27874 times)
  9. PID Library (26858 times)
  10. microSD click (26129 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

Force 2 click

Rating:

5

Author: MIKROE

Last Updated: 2020-03-30

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Force

Downloaded: 2404 times

Not followed.

License: MIT license  

Force 2 Click is a mikroBUS add-on board with circuitry for implementing Honeywell’s FSS-SMT Series force sensors into your projects (with a single zone force sensing resistor included with the click).

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Force 2 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Force 2 click" changes.

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

Force 2 Click

Force 2 Click

Native view of the Force 2 Click board.

View full image
Force 2 Click

Force 2 Click

Front and back view of the Force 2 Click board.

View full image

Library Description

The library covers all the necessary functions to control Force 2 click board.

Key functions:

  • force2_adc_set_in_channel( ); - Function sets input channel.
  • force2_adc_init( ); - Function initializes ADC.
  • force2_adc_read( ); - Function reads ADC values.

Examples description

The application is composed of three sections :

  • System Initialization - Initializes GPIO and LOG structures, set AN pin as input.
  • Application Initialization - Initalizes ADC driver, sets ADC channel and makes an initial log.
  • Application Task - (code snippet) This is an example that shows the capabilities of the Force 2 click by taking measurements from the device and displaying it via USART terminal.
void application_task ( )
{
    adc_val = force2_adc_read( );
    disp_val = force2_val_conv( adc_val, 4095, 15, 0 );
    
    ByteToStr( disp_val, log_txt );
    Ltrim( log_txt );
    mikrobus_logWrite( "Force: ", _LOG_TEXT );
    mikrobus_logWrite( log_txt, _LOG_TEXT );
    mikrobus_logWrite( "N", _LOG_LINE );
    
    mikrobus_logWrite( "-------------------", _LOG_LINE );
    Delay_ms( 500 );
}


  • force2_val_conv ( uint32_t x, uint32_t in_max, uint32_t out_min, uint32_t out_max ) - re-maps ADC value to force value in newton.
  • force2_adc_set_in_channel( ); - Function sets input channel.
  • force2_adc_init( ); - Function initializes ADC.
  • force2_adc_read( ); - Function reads ADC values.

Other mikroE Libraries used in the example:

  • ADC
  • Conversions
  • UART

ALSO FROM THIS AUTHOR

Brushless 7 click

5

Brushless 7 Click based on TC78B009FTG IC from Toshiba is a three-phase BLDC motor controller that does not require Hall sensors. Some of the main features are a built-in closed loop speed control function that regulates and maintains the motor rotational speed under dynamic power fluctuations and load variations.

[Learn More]

BUCK 6 click

5

BUCK 6 click is an advanced synchronous DC-DC step down (buck) converter, with a very wide input voltage range and reasonably high output current.

[Learn More]

Motion 4 click

5

Motion 4 Click is a Click board based on EKMC1603111, PIR motion sensor from Panasonic Corporation that's used as human motion detector.

[Learn More]