Problems when graphing live data from a HC-05 Bluetooth Module

I want to graph live data sent from an Arduino UNO using a HC-05 Bluetooth Module.

I've written this code.

But I get this result.

I don't know why this happens.



3 Replies

SK Sriram Kiran Senthilkumar Syncfusion Team September 27, 2021 08:50 AM UTC

Hi Jeremy, 
  
Greetings from Syncfusion. We have analyzed your scenario with the provided information at our end and on checking the provided screen recording, we suspect that the issue is with the amount of chart data which you are retrieving from your Bluetooth module because the chart data stopped updating when the length reached 100 data points and as you are deleting the items at the start of the chart after certain threshold, the chart data gets removed from the data source and thus the chart becomes empty. So, we kindly request you to try to print the chart data which you are sending to the chart from the module and check whether the chart data are retrieving properly at your end. 
 
We have also attached an example sample below in which we update chart data continuously using updateDataSource method for your reference. 
 
Please check and get back to us if you still have further concerns 
 
Regards, 
Sriram Kiran 



YM yasin Mohammad replied to Sriram Kiran Senthilkumar May 18, 2023 11:50 PM UTC

السلام عليكم اريد مساعدة لانشاء تطبيق اندرويد بالبلوتوث يستمد قيم الاهتزاز. يتراوح من -10 إلى 20



LP Lokesh Palani Syncfusion Team May 19, 2023 01:01 PM UTC

Hi Yasin,


We have KB for updating the dynamic data point to chart using updateDataSource method and shared that KB link below for your reference. You can fetch the data from device and share to chart data point using updateDataSource method. Please modify the sample codes based on your requirement.


KB,

https://support.syncfusion.com/kb/article/10783/how-to-create-flutter-real-time-charts-using-the-cartesian-charts-widget-sfcartesianchart


Regards,

Lokesh.


Loader.
Up arrow icon