TOP Contributors

  1. MIKROE (2657 codes)
  2. Alcides Ramos (354 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 (136888 times)
  2. FAT32 Library (70025 times)
  3. Network Ethernet Library (56002 times)
  4. USB Device Library (46308 times)
  5. Network WiFi Library (41934 times)
  6. FT800 Library (41212 times)
  7. GSM click (29019 times)
  8. PID Library (26433 times)
  9. mikroSDK (26401 times)
  10. microSD click (25386 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: 2102 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

RTC 9 click

5

RTC 9 Click is a real-time clock module which has an extremely low power consumption, allowing it to be used with a single button cell battery, for an extended period of time. This board features the M41T82, real-time clock (RTC) with battery switchover, from ST Microelectronics.

[Learn More]

Buck-Boost 4 click

0

Buck-Boost 4 Click is a compact add-on board that contains a buck-boost DC/DC converter with four integrated MOSFETs. This board features the TPS55289, a buck-boost converter from Texas Instruments. It can deliver on its output voltages from 0.8 up to 22V, from the input voltage in a range of 3 up to 30V. The output voltage can be programmed in 10mV steps.

[Learn More]

Temp-Hum 3 click

5

Temp-Hum 3 click is a smart environmental temperature and humidity sensor Click board, packed with features, that allows easy and simple integration into any design that requires accurate and reliable humidity and temperature measurements.

[Learn More]