Force 4 Click Board
Force 4 Click Board
The Force 4 Click Board™ is based on HSFPAR003A piezoresistive force sensor from Alpsalpine. This product is a force sensor using the effect of a piezoresistive bridge circuit formed on a silicon diaphragm. Piezoresistive force sensors achieve higher linearity than other force sensors.
To help with stability and accuracy Force 4 Click Board™ also includes MCP1101-33 a high precision buffered voltage reference as a power supply to a force sensor that allows high stability and accuracy of output voltage readings.
Software Support
We provide a library for the Force 4 Click Board™ on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Library Description
Library provides function for reading raw ADC data from device.
Key Functions
uint16_t force4_read_adc( void )
- Reading raw 12 bit ADC data
Example Description
The application is composed of three sections :
- System Initialization - Initialization of I2C communication
- Application Initialization - Mapping pins on selected MIKROBUS
- Application Task - Every 100ms read 12bit adc value from dev
void application_task ( ) { uint16_t adc_val; char demo_txt[ 30 ] = ""; adc_val = force4_read_adc( ); WordToStr( adc_val, demo_txt ); mikrobus_logWrite( "-ADC: ", _LOG_TEXT ); mikrobus_logWrite( demo_txt, _LOG_LINE ); Delay_ms( 100 ); }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
- Conversions
- I2C
- UART
Additional Notes and Information
Depending on the development board you are using, you may need USB UART Click Board™, USB UART 2 Click Board™ or RS232 Click Board™ 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.
MIKROSDK
The Force 4 Click Board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
Force 4 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.