Last month, some folks had mailed me and commented on one of my youtube videos asking for a code and tutorial on plotting real-time sensor data in Qt. So, here you go! 🙂
I have demonstrated the real-time plotting capabilities of Qt using the BeagleBone Black. If you haven’t set up the Qt cross-platform development environment on your machine, please do so by following the steps described here.
I have used the qcustomplot Library for plotting the graphs. So for this demo, I basically have a Force Sensor whose output is sampled using an AD7190 ADC and fed into the BeagleBone + 4D Systems LCD.
If you are wondering how to use the AD7190 with the Beaglebone which is out of scope for this post, then I suggest you check out this article, as it has all the information you need.
You can find the Qt example code in my Github or clone it by using the below command.
git clone https://github.com/deeplyembeddedWP/Plot-Real-Time-Graphs-Qt-Embedded-Linux.git
The above video demonstrates the working of the example code and use of the qcustomplot Library for plotting real-time graphs for the sensor data. I hope you enjoyed this post and if you have any thoughts, please feel free to comment.