IMU Data Serial Plotter Setup and Configuration

Similar to the serial plotter on the Arduino Sketch IDE, there is a useful real-time serial plotter application at the Hackaday site. It is free and it offers configuration options that add to the utility of data tracking, measurement, and analysis. The application provides for scroll, zoom, cursor, channel selections, and color options that ease how visually parsed data is presented and managed. There is a range of capabilities with the utility that makes it a better way to go over the Sketch IDE data plotter.

Example data acquisition from plotted data points over time.

While the link provided gives a way to download and install the latest data plotter version, this post makes use of the following file:

Once the utility is installed and running, there are configuration options I use to monitor the IMU serial data streams. Specifically, it is necessary to select the available COM port connected to the USB port on the Arduino host of the IMU module. Once that is done, the Baud Rate selected within the application’s Port tab must match the baud rate declared in the void setup() segment of your Arduino code. In this example, my declaration is Serial.begin(115200), so the baud rate selection must be 115200). The standard serial handshaking configurations apply as 8-bit, 1 stop bit, no parity, and no flow control.

It is important that the Arduino Sketch serial plotter application isn’t running as it will present a conflict with this utility.

Screen Capture 1 – Port selection and baud rate.

Next is formatting the data according to how the vector data acquisition code is written as an ASCII data type and for proper delimiting. Since the comma it used for data capture, that option is selected.

Screen Capture 2 – Data type and delimiter settings
Screen Capture 3 – Program code that declares the comma.
Screen Capture 4 – Sketch IDE Serial Monitor that streams acquired data with comma separation / delimiting.

While the three acceleration vectors x, y, z automatically populated according to the number of channels in screen capture two (2) above. To add more channels (vectors), simply increase the quantity from the data format tab. The buffer size setting corresponds to the vector data held in memory and gets displayed along the x-axis in the plotter graph. Setting the plot width to a narrow data window increases the plotted data acquisition rate from right to left. The scale axis settings simply correspond to the amplitude of inflections observed in the data.

Screen Capture 5 – Data plotter configuration. Double-click each channel field within the Plot tab to name the data as desired for legend placement and identification.

The other four tabs have less relevance in the set up here, but they are useful to record and monitor data as an output to acquired data. To further explore settings for visual quality and precision, experiment with the menu options to get your desired layout and format.

Screen Capture 6 – Layout and graphical format options for visual quality.
Screen Capture 7 – Zoom window by cursor selection to expand and view further into data points. Right click within the pane to reset full view.
Screen Capture 8 – Zoomed in view of acquired data segment.

Project Review:


About

Servant of Christ Jesus. U.S. Military Veteran, Electrical Engineer, Pepperdine MBA, and M.A. Biblical and Theological Studies.

, ,

Comments are closed.