Matlab and Arduino wireless communication

3 ビュー (過去 30 日間)
Itziar Uzqueda
Itziar Uzqueda 2017 年 5 月 19 日
コメント済み: Ngcebo Shezi 2022 年 9 月 17 日
Hi everybody!
I have an ultrasonic sensor in Arduino UNO board sending distance data over bluetooth every 50ms and I'm receiving them in matlab GUI in real time. It seems to work well but the problem is that in matlab the sampling time is not constant and I think it is because of the propagation delay or something like that. I would be very greatful if any of you could tell me how can I set this time without missing samples.
Thank you
  1 件のコメント
Ngcebo Shezi
Ngcebo Shezi 2022 年 9 月 17 日
bra i am doing a gas analyser can you please help me i am only able to code arduino using arduino ide not matlab so how do i take this problem over a bluetooth wireless communication

サインインしてコメントする。

回答 (1 件)

Yuebin Zhou
Yuebin Zhou 2017 年 5 月 23 日
MATLAB is not designed for real-time processing, so exact real-time update may be not guaranteed. Also, you may also want to check if the response from Arduino is in equal intervals through command line, this could help isolate the problem from the GUI.

カテゴリ

Help Center および File ExchangeWireless Communications についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by