Advertisement

Quick Links

InvenSense reserves the right to change the detail
specifications as may be required to permit
improvements in the design of its products.
SmartBug User Guide
InvenSense, Inc.
1745 Technology Drive, San Jose, CA 95110 U.S.A
+1(408) 988–7339
www.invensense.com
SW-000103
Document Number: SW-000103
Revision: 1.1
Release Date: 07/15/2020

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SmartBug MD-42688-P and is the answer not in the manual?

Questions and answers

Summary of Contents for TDK SmartBug MD-42688-P

  • Page 1 SW-000103 SmartBug User Guide InvenSense, Inc. InvenSense reserves the right to change the detail Document Number: SW-000103 1745 Technology Drive, San Jose, CA 95110 U.S.A specifications as may be required to permit Revision: 1.1 +1(408) 988–7339 improvements in the design of its products. Release Date: 07/15/2020 www.invensense.com...
  • Page 2: Table Of Contents

    SW-000103 TABLE OF CONTENTS SmartBug Module ..............................3 Installing and Running SMARTBUG APP ........................ 4 Connecting to the SmartBug Module ........................7 BLE Connection ............................7 USB Connection ............................10 WiFi Connection ............................12 Sensor Data Mode ............................... 19 Smart Door Lock ..............................25 Asset Monitoring ..............................
  • Page 3: Smartbug Module

    SW-000103 1 SMARTBUG MODULE Figure 1. SmartBug Module Page 3 of 51 Document Number: SW-000103 Revision: 1.1...
  • Page 4: Installing And Running Smartbug App

    SW-000103 2 INSTALLING AND RUNNING SMARTBUG APP 1. Go to the Microsoft App Store and search for SmartBug. Page 4 of 51 Document Number: SW-000103 Revision: 1.1...
  • Page 5 SW-000103 2. Click on Install Page 5 of 51 Document Number: SW-000103 Revision: 1.1...
  • Page 6 SW-000103 3. Go to the Window and type . Then select the to run the SmartBug Type here to search Smart SmartBug app. It can also be pinned to the taskbar for quick access. Page 6 of 51 Document Number: SW-000103 Revision: 1.1...
  • Page 7: Connecting To The Smartbug Module

    SW-000103 3 CONNECTING TO THE SMARTBUG MODULE There are three types of connections available on the SmartBug Module to connect to the SmartBug App: • BLE (Bluetooth Low Energy) • • WiFi For a WiFi connection, an will be required. Add-On board Step 1: Connect to USB cable to turn on and charge the module.
  • Page 8 SW-000103 3. Select one of three options: , or WiFi Bluetooth Discovery Routine Click on to discover the SmartBug module. Search Page 8 of 51 Document Number: SW-000103 Revision: 1.1...
  • Page 9 SW-000103 2. Bluetooth Device Detection: 3. Bluetooth Device Selection Select the device and click When the BLE device is selected, press the button to connect the SmartBug module to the SmartBug App. Connect After clicking connect, wait a few seconds until the Master device parameters appear. If the Auto connect checkbox is checked, the selected device will connect automatically on the application restart.
  • Page 10: Usb Connection

    SW-000103 Connecting BLE for the first time When connecting BLE for the first time, the app will ask to pair with it. Click The pairing is a secure BLE connection required by the Air mouse HID driver. This ensures smooth functionality of the Air Mouse Application and smooth overall BLE connectivity.
  • Page 11 SW-000103 2. USB Device Selection Select the device and click When USB device is selected, press the button to connect the SmartBug module to the SmartBug App. Connect After clicking connect, wait a few seconds until the Master device parameters appear. If the Auto connect checkbox is checked, the selected device will connect automatically on the application restart.
  • Page 12: Wifi Connection

    SW-000103 WIFI CONNECTION The Add-On board (WiFI) can only be connected when the module is in Power Down mode. Follow the steps below to connect the Add-On board: Step 1: The SmartBug board should be reset or powered down in the window by using the Device Power Power...
  • Page 13 SW-000103 Once the button is pressed, the device will disconnect the BLE and initiate the WiFi connection to the specified router. The BLE link status will change to and the module’s blue LEDs will turn off and the green LED Disconnected on the Add-On board will blink.
  • Page 14 SW-000103 WiFi Socket Selection 1. Disconnect from the BLE: In the menu, click button, and then click on Settings Disconnect Select Master to go to the master device selection 2. Click on the WiFi option. 3. Click on to populate the first and last IP Address sections (for DHCP Retrieve local network parameters mode).
  • Page 15 SW-000103 Page 15 of 51 Document Number: SW-000103 Revision: 1.1...
  • Page 16 SW-000103 5. Select the found device. 6. Now it is ready for WiFi connection. Page 16 of 51 Document Number: SW-000103 Revision: 1.1...
  • Page 17 SW-000103 7. Use the button to connect over the WiFi network. Connect Returning from WiFi to BLE mode There are two approaches to implement this: 1. WiFi can be disabled through the WiFi settings menu. Such a transition occurs when a user unchecks the checkbox and clicks on the button.
  • Page 18 SW-000103 This puts the device into BLE advertisement mode. Now click on to enable BLE Disconnect Connect BLE again. The BLE select master process is not required to connect to the same SmartBug board, because its information is saved by the application. A user can simply select the connection type and click the button.
  • Page 19: Sensor Data Mode

    SW-000103 4 SENSOR DATA MODE 1. Select window Sensor data This window is the most important section of the app. This allows users to stream multi-sensor data (from IMU, magnetometer, temperature, humidity, ultrasonic, and pressure sensors) and record that data into log files. It also provides tuning parameters to finetune the desired raw sensor data.
  • Page 20 SW-000103 2. Select the sensor(s) by selecting the checkboxes. Enabled Note: You can stream and log data from all the sensors at the same time. Page 20 of 51 Document Number: SW-000103 Revision: 1.1...
  • Page 21 SW-000103 3. Enable data recording by selecting the button. Start recoding Page 21 of 51 Document Number: SW-000103 Revision: 1.1...
  • Page 22 SW-000103 4. After data has been recorded, disable data recording by clicking on the button. Stop recording Page 22 of 51 Document Number: SW-000103 Revision: 1.1...
  • Page 23 SW-000103 5. Click to view recorded data with Microsoft Excel. Open log file Page 23 of 51 Document Number: SW-000103 Revision: 1.1...
  • Page 24 SW-000103 6. Use to understand the sensor IDs and units in log file. Log file description 7. Maximum ODR supported on different interfaces for streaming and logging. SENSOR ODR ACCEL GYRO PRESSURE HUMIDITY/TEMPERATURE ULTRASOUND 25 / 50 / 100 / 10 / 50 / 100 ODR Options 200 / 1000 / 2000...
  • Page 25: Smart Door Lock

    SW-000103 5 SMART DOOR LOCK 1. Open the Application window Smart Door Lock Click the checkbox to enable status notification from the smart door lock. If it is in the Notifications unknown state, the calibration will automatically run upon clicking the checkbox.
  • Page 26 SW-000103 4. Observe the Smart Door service status change: Open or Close Open or close the door physically and observe the door state change. 5. Log Smart Door Lock outputs with Angle: The log file will record all door open and close events along with the door angle. When the angle is enabled by the checkbox, the SmartBug device will log the Smart Door Lock angle from the Enable Angle...
  • Page 27: Asset Monitoring

    SW-000103 6 ASSET MONITORING 1. Select the checkbox to enable the SmartBug feature Enabled Asset Monitoring Page 27 of 51 Document Number: SW-000103 Revision: 1.1...
  • Page 28 SW-000103 2. Configure the thresholds The threshold values need to be configured and new values can be entered. The new values can be saved in the configuration file with the button and then restored from the configuration by the Save Restore button in the new session.
  • Page 29 SW-000103 3. Place the SmartBug device on any box or package that needs to be monitored. Start performing Asset Monitoring activities (shock, fall, environment changes) with the SmartBug device. The SmartBug device will now capture events. 4. Click the button to load the recorded events by the SmartBug device. Retrieve The history length can be set to the , or...
  • Page 30 SW-000103 5. Click the button to save events to the file. Save am_history.csv Page 30 of 51 Document Number: SW-000103 Revision: 1.1...
  • Page 31: Hvac Monitoring

    SW-000103 7 HVAC MONITORING This application uses two pressure sensors (two SmartBug modules) to report the differential pressure output on HVAC filter systems or for any filter clogging application. 1. Make sure the slave device is configured and connected. 2. Select the window and click on the checkbox to enable HVAC.
  • Page 32 SW-000103 5. Observe the differential pressure change and filter replacement notification Once the pressure difference exceeds a threshold, the filter replacement notification is recorded. This picture shows that the second notification has been issued. 6. Record the differential pressure log along with absolute pressure sensor readings. Page 32 of 51 Document Number: SW-000103 Revision: 1.1...
  • Page 33: Sensor Fusion

    SW-000103 8 SENSOR FUSION 1. Select the window and click the checkbox to enable the Sensor Fusion Sensor Fusion Enabled demonstration. 2. Select the 6/9-axis fusion mode can be selected by choosing the 6/9-axis 3. Calibrate the magnetometer by performing a figure-8 motion with the SmartBug device to ensure proper 9-axis calibration.
  • Page 34: Air Mouse

    SW-000103 9 AIR MOUSE 1. Select the window and click the checkbox to enable the Air Mouse demonstration. Air Mouse Enabled The PC mouse cursor will follow the motion of the SmartBug. In order to disable the Air Mouse, uncheck the checkbox.
  • Page 35: Sd Card Logging Through The App

    SW-000103 10 SD CARD LOGGING THROUGH THE APP The SD card log window controls the log events that can be enabled by clicking on the checkboxes. 1. Click on the button to start logging. The logging can be finished by the clicking button.
  • Page 36: Standalone Sd Card Logger

    SW-000103 11 STANDALONE SD CARD LOGGER Note: SD Card should be on a FAT32 file system with maximum size of 32GB ENABLE AUTONOMOUS SD CARD LOG WITHOUT THE SMARTBUG APP 1. Connect the SmartBug USB to a PC. 2. A Disk will mount on Windows. On the disk you have a file called CONFIG.TXT 3.
  • Page 37 SW-000103 ENABLE GYROSCOPE LOG To enable the Gyroscope, you must change the line starting with and change GYRO DISABLE ENABLE You can change some parameters. The format is: GYRO <ENABLE/DISABLE> <ODR> <FSR> Gyro ODR in Hz can be set to 25, 50, or 100 Gyro FSR 0 : 16dps / 1 : 31dps / 2 : 62dps / 3 : 125dps / 4 : 250dps / 5 : 500dps / 6 : 1000dps / 7 : 2000dps ENABLE MAGNETOMETER LOG...
  • Page 38 SW-000103 ENABLE PRESSURE AND TEMPERATURE LOG To enable the Pressure and Temperature, you must change the line starting with and change PRES_TEMP DISABLE ENABLE You can change some parameters. The format is: PRES_TEMP <ENABLE/DISABLE> <ODR> Pressure and Temperature ODR in Hz can be set to 1, 5, or 10 ENABLE HUMIDITY AND TEMPERATURE LOG To enable the Humidity and Temperature, you must change the line starting with and change...
  • Page 39 SW-000103 ENABLE ULTRASONIC LOG To enable the Ultrasound, you must change the line starting with and change ULTRASOUND DISABLE ENABLE You can change some parameters. The format is: ULTRASOUND <ENABLE/DISABLE> <ODR> ULTRASOUND ODR in Hz can be set to 1, 5, or 10 ENABLE APEX FEATURE LOG To enable the APEX feature, you must change the line starting with and change...
  • Page 40 SW-000103 ENABLE AIR MOUSE LIBRARY (AML) LOG To enable the AML Feature, you must change the line starting with and change DISABLE ENABLE ENABLE ASSET MONITORING LOG To enable the Asset Monitoring Feature, you must change the line starting with and change ASSET_MON DISABLE...
  • Page 41 SW-000103 ENABLE SENSOR FUSION LOG To enable the 3DOF Feature, you must change the line starting with and change 3DOF DISABLE ENABLE You can change some parameters. The format is: 3DOF <ENABLE/DISABLE> <MODE> Mode can select Fusion algorithm selected: 0 : 9-axis 1 : 6-axis Page 41 of 51 Document Number: SW-000103...
  • Page 42: Access Sd Card Log

    SW-000103 12 ACCESS SD CARD LOG In order to access SD card log, connect SmartBug Module to PC with micro-USB cable. 1. Click on SD card log convert utility Page 42 of 51 Document Number: SW-000103 Revision: 1.1...
  • Page 43 SW-000103 The following window pops up. 2. Browse to the log file on the SD Card drive and select it. 3. Click on Export 4. After conversion is complete, click on to view the extracted log files. Open export folder Page 43 of 51 Document Number: SW-000103 Revision: 1.1...
  • Page 44: Conversion Of The Sd Card Logs

    SW-000103 13 CONVERSION OF THE SD CARD LOGS 1. IMU Logs a. Accelerometer Conversion from output count to g g = count*(FSR/32768) where Count = count read from sensor. FSR = 2,4,8,16 selected by user. Example Count = 16384 FSR = 2 G = 16384 * (2/32768) = 1 g b.
  • Page 45: Device Power And Reset

    SW-000103 14 DEVICE POWER AND RESET The SmartBug board can be reset or powered down in the window by using the Device Power Power Down button. The feature is required to connect the WiFi Add-On board with the module. Hot Reset Power Down plugging should be avoided while the module is running.
  • Page 46: Ota Firmware Upgrade

    SW-000103 15 OTA FIRMWARE UPGRADE OTA Firmware upgrade is a very valuable feature to upgrade the firmware on the SmartBug device using the OTA firmware upgrade option. This can be used to ensure that the latest version of firmware is loaded on the device. 1.
  • Page 47 SW-000103 5. Click on the pop-up window to unpair DfuTarg from the device. Page 47 of 51 Document Number: SW-000103 Revision: 1.1...
  • Page 48 SW-000103 6. Click in the app. Connect 7. Click again on the pop-up window to pair SmartBug with your device. The version of the firmware should now be upgraded and can be seen in the Master device parameters with green status saying up to date Page 48 of 51 Document Number: SW-000103...
  • Page 49: Use Debug Menu To See Messages Log

    SW-000103 16 USE DEBUG MENU TO SEE MESSAGES LOG All activities in the app are recorded in the debug window. This can help with troubleshooting and debugging of the application. The interface detailed messages can be enabled by the check button. In this case, all Debug file enabled communication messages will be logged into a file, located in the application data folder.
  • Page 50: Revision History

    SW-000103 17 REVISION HISTORY REVISION DATE REVISION DESCRIPTION 03/08/2020 Initial Draft 07/15/2020 Updated for launch Page 50 of 51 Document Number: SW-000103 Revision: 1.1...
  • Page 51 ©2020 InvenSense. All rights reserved. InvenSense, MotionTracking, MotionProcessing, MotionProcessor, MotionFusion, MotionApps, DMP, AAR, and the InvenSense logo are trademarks of InvenSense, Inc. The TDK logo is a trademark of TDK Corporation. Other company and product names may be trademarks of the respective companies with which they are associated.

Table of Contents