piezoaccel 2.0.0.0
|
Piezo Accel Click is a compact add-on board containing an acceleration sensor based on PE technology. This board features the 820M1-0025, a piezoelectric accelerometer designed for embedded monitoring and preventive maintenance applications from TE Connectivity.
We provide a library for the PiezoAccel Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on mikroE github account.
This library contains API for PiezoAccel Click driver.
piezoaccel_cfg_setup
Config Object Initialization function. piezoaccel_init
Initialization function. piezoaccel_default_cfg
Click Default Configuration function. piezoaccel_adc_raw_read
Piezo Accel read raw adc function. piezoaccel_adc_voltage_read
Piezo Accel read adc converted to voltage function. piezoaccel_g_unit_read
Piezo Accel read force of acceleration function. This application demonstrates the performance of Piezo Accel click board.
The demo application is composed of two sections :
The initialization of UART LOG and SPI click drivers.
Additionally, a default config is performed for "out of the box" Piezo Accel click settings. Calibration is optional and is used to correct the power supply offset of the sensor.
The ADC is constantly read and converted to a
g-force acceleration unit. Data is sent via LOG every 20 ms and works on MikroPlot for graphical representation of the sensor results.
This demo app is intended to be used with MikroPlot data
visualization tool for clear understanding of the results. https://www.mikroe.com/mikroplot-data-visualization-tool
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on mikroE github account.
Other mikroE Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click 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.