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 (136668 times)
  2. FAT32 Library (69904 times)
  3. Network Ethernet Library (55920 times)
  4. USB Device Library (46249 times)
  5. Network WiFi Library (41882 times)
  6. FT800 Library (41128 times)
  7. GSM click (28973 times)
  8. PID Library (26406 times)
  9. mikroSDK (26345 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

OOK TX click

0

OOK TX click is a simple wireless transmitter that operates at the frequency of 433MHz (sub-GHz). This device allows realization of a simple, low-speed wireless ad-hoc communication network between a transmitter and compatible receiver, such as the OOK RX click.

[Learn More]

DIGI POT 2 click

0

DIGI POT 2 click is a mikroBUS™ add-on board with a single channel digital potentiometer TPL0501 with 256 wiper positions.

[Learn More]

Air quality click

0

Air quality click carries an MQ-135 sensor for detecting poisonous gases that impact air quality in homes and offices. The click is designed to run on a 5V power supply. It communicates with the target microcontroller over the AN pin on the mikroBUS™ line.

[Learn More]