TOP Contributors

  1. MIKROE (2653 codes)
  2. Alcides Ramos (351 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 (136665 times)
  2. FAT32 Library (69900 times)
  3. Network Ethernet Library (55920 times)
  4. USB Device Library (46248 times)
  5. Network WiFi Library (41882 times)
  6. FT800 Library (41127 times)
  7. GSM click (28972 times)
  8. PID Library (26406 times)
  9. mikroSDK (26344 times)
  10. microSD click (25350 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: 2088 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

IR click

0

IR Click is an add-on board in mikroBUS form factor. It’s a compact and easy solution for adding infrared (IR) remote control module to your design.

[Learn More]

Pressure 21 click

0

Pressure 21 Click is a compact add-on board that contains a board-mount pressure sensor. This board features the BMP581, an absolute barometric pressure sensor from Bosch Sensortec. The BMP581 provides a relative accuracy of ±6Pa and typical absolute accuracy of ±30Pa with ultra-low noise, low power consumption, and temperature stability alongside programmable output: temperature-only or both pressure and temperature (pressure-only is not supported). It converts output data into a 24-bit digital value and sends the information via a configurable host interface that supports SPI and I2C serial communications. It measures pressure from 30kPa up to 125kPa over a wide operating temperature range.

[Learn More]

Touchpad click

0

Touchpad click is a capacitive touch input device driven by Microchip’s low-powered MTCH6102 controller.

[Learn More]