plot real time graphs using qt

Plot Real-time Graphs using Qt on Embedded Linux

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.

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.

Leave a Reply

Your email address will not be published. Required fields are marked *