Sensor Agnostic Module for ICP Signal Conditioner

roto_icpsc.aar Library for Androidâ„¢

  • Created: 04 Dec, 2020
  • Update: 1 Nov, 2021

If you have any questions that are beyond the scope of this document, Please feel free to email via


roto_icpsc.aar is an Androidâ„¢ library that allows communication with the 2-Channel USB ICP Signal Conditioner. The library provides simple commands to scan, connect, collect and post-process the vibration data.


Follow the steps below to install the roto_icpsc.aar library

  1. In your projects top bar menu, select >File >New >New Module... A new window will appear, select "Import .JAR/.AAR Package" from the options
  2. In the new popup window browse and select the roto_icpsc.aar library adn click on "Finish"
  3. The roto_icpsc library will appear on the right
  4. in your App build.gradle add the following dependency
                dependencies {
                        implementation files('libs/roto_icpsc.aar')

Configuring your project

  1. Add the MODIFY_AUDIO_SETTINGS, RECORD_AUDIO and WRITE_EXTERNAL_STORAGE permits to the Android Manifest
    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android=""
        <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
        <uses-permission android:name="android.permission.RECORD_AUDIO" />
        <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
  3. In your Activity import com.rotovibes.roto_icpsc.icpsc_conn and add the permissions request
    import com.rotovibes.roto_icpsc.icpsc_conn;
    public class MainActivity extends AppCompatActivity {
        protected void onCreate(Bundle savedInstanceState) {
            ActivityCompat.requestPermissions(this,new String[]{
                      Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.WRITE_EXTERNAL_STORAGE}, 1001);
            ActivityCompat.requestPermissions(this,new String[]{
                      Manifest.permission.RECORD_AUDIO, Manifest.permission.RECORD_AUDIO}, 1002);

Connecting to the Sensor

  1. Create actions to scan and connect to the USB ICP Signal Conditioner.
        //start scanning for the usb sensor

    Once the device is connected to the USB port the output in the console should display the ID of the device

    Collecting Data

    1. Once connected to a device, send the icpsc_conn.collectSignal(int numberSamplesCode, int samplingRateCode) command to collect data with the specific number of samples and sampling rate. There are 4 sampling rates and 6 number of samples options for this sensor in this library.
      //samplingRateCode:3 -> SamplingRate = 5512
      //samplingRateCode:2 -> SamplingRate = 11025
      //samplingRateCode:1 -> SamplingRate = 22050
      //samplingRateCode:0 -> SamplingRate = 44100
      //numberSamplesCode:0 -> NumberOfSamples = 1024
      //numberSamplesCode:1 -> NumberOfSamples = 2048
      //numberSamplesCode:2 -> NumberOfSamples = 4096
      //numberSamplesCode:3 -> NumberOfSamples = 8192
      //numberSamplesCode:4 -> NumberOfSamples = 16384
      //numberSamplesCode:5 -> NumberOfSamples = 32768
          icpsc_conn.collectSignal(int numberSamplesCode, int samplingRateCode)
    3. There are other functions for Overall vibration values processing, spectrum data generation, integration, etc. This documentation will be available soon

    Combine this framework with vibEngine.framework to perform signal post-processing and with the vibeFDaD.framework to analize the machine condition. Third party frameworks can also be used to plot and enhance the users interface.


    See what's new added, changed, fixed, improved or updated in the latest versions.

    Version 1.01 (1 Nov, 2021)

    • Fixed Bug Fixed

    Version 1.0 (4 Dec, 2020)

    Initial Release for Androidâ„¢