Arduino + MATLAB Live Serial Plot | matlab real time plot serial port arduino

  Рет қаралды 32,390

Abdul Rehman 2050

Abdul Rehman 2050

Күн бұрын

In this tutorial we demonstrated the method to plot data coming in serial port from arduino or any other hardware. We serial call back in MATLAB and read data from serial object with the parameter of com name.
Here is the complete code link:
www.fypsolutio...
If you are looking for code or any guidance you can book a session with me on Fiverr
www.fiverr.com...

Пікірлер: 28
@boudebzabadra9749
@boudebzabadra9749 4 жыл бұрын
Thank you Sir for this lecture :)
@ar2050
@ar2050 4 жыл бұрын
Its my pleasure. Thank you for liking. Hope it helps :)
@boudebzabadra9749
@boudebzabadra9749 4 жыл бұрын
​@@ar2050 yes it helps me a lot but I still have errors, actually the plotting is not continuous, it stopped at 16. My aim is to plot in real time my serial data coming from MSP430 controller. could you please help me on this!
@ar2050
@ar2050 4 жыл бұрын
@@boudebzabadra9749 This code works continuously infinite time. Please check your code for other possible errors. Specially make sure you remove the first index and insert data at last index.
@EmersonSuguimoto
@EmersonSuguimoto 4 жыл бұрын
Thank you very much!!
@mohamadfirdausadnan439
@mohamadfirdausadnan439 4 жыл бұрын
Thank you sir for this knowledge. but sir how about when we have two sensors for example, how we want to read in the matlab? ill really appreciate it if you share this problem. Thank you sir
@ar2050
@ar2050 4 жыл бұрын
There are multiple ways of handling such problem. The easiest one would be to pass the variables with comma separated or tab separated value and then parse that data in Matlab. Create two of similar array and repeat the process for displaying both variables.
@danielbarbosa2103
@danielbarbosa2103 4 жыл бұрын
Hi, thanks in advance for your help. But I'm wondering if you know How can I vary the sampling frequency? because I need to sample a signal to 250 Hz from Arduino to Matlab
@yourmusicchannel2846
@yourmusicchannel2846 3 жыл бұрын
Thank you Brooooooooo!
@ar2050
@ar2050 3 жыл бұрын
Happy to help
@1tranthony1
@1tranthony1 7 ай бұрын
Does anybody know how to automatically store all of the data printed from the serial monitor into a variable? Thanks
@siang5177
@siang5177 4 жыл бұрын
Thank you Sir for this lecture :) Do u know how to plot the live data from the mpu9250?
@wannornaziramustapakamal893
@wannornaziramustapakamal893 4 жыл бұрын
Hi, I want to ask do u know about it already?
@siang5177
@siang5177 4 жыл бұрын
@@wannornaziramustapakamal893 of course who am i
@wannornaziramustapakamal893
@wannornaziramustapakamal893 4 жыл бұрын
@@siang5177 can u share with me the procedure? I want to know for my project
@natdizon8694
@natdizon8694 2 жыл бұрын
Hi, can you write me a customized software reading serial port data and displaying it, multichannel data with header and checksum?
@mariaali427
@mariaali427 3 жыл бұрын
hi, how can i read multiple values from serial port? my code prints the values for current, voltage, power and rpm on the serial port and i want to read them all from there into matlab
@ar2050
@ar2050 3 жыл бұрын
You can send the readings with spaces and read a whole line in matlab. then simply the str2num() function will convert the values to the numbers. There are also other ways of doing this, which is to send bytes and read the bytes in MATLAB.
@mariaali427
@mariaali427 3 жыл бұрын
@@ar2050 Thank you so much.
@AliG.G
@AliG.G 3 жыл бұрын
can you plot multiple data?
4 жыл бұрын
hi.I get this error..Error using serial/fopen (line 72) Open failed: Cannot connect to the COM8 port. Possible reasons are another application is connected to the port or the port does not exist.
@ar2050
@ar2050 4 жыл бұрын
It says some other program is using that com port. Make sure no other program is using that serial port. Or if you had previously used that com port with MATLAB you can try running this command >>fclose(instrfind);
@hayamaitmalk3459
@hayamaitmalk3459 3 жыл бұрын
can you help me i have sime your problem
3 жыл бұрын
@@hayamaitmalk3459 you must use version of matlab 2016. I solved my problem in this way
@hayamaitmalk3459
@hayamaitmalk3459 3 жыл бұрын
@ matlab 2016a or b i use matlab2014a but is not work
3 жыл бұрын
@@hayamaitmalk3459 I had used matlab 2016a I think you should use 2016a
Signal Processing with MATLAB
21:11
Opti-Num Solutions
Рет қаралды 113 М.
Using Serial.parseInt() with Arduino
15:39
Programming Electronics Academy
Рет қаралды 51 М.
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
"You're making a reverse arena"
2:33:44
sphaerophoria
Рет қаралды 1 М.
Взаимодействие MATLAB с оборудованием: 03. COM порт
15:07
ЦИТМ Экспонента
Рет қаралды 6 М.
Python Tutorial - How to Read Data from Arduino via Serial Port
11:51
Idle Hands & A Tormek!
29:57
This Old Tony
Рет қаралды 287 М.
Using Serial.read() with Arduino | Part 1
10:30
Programming Electronics Academy
Рет қаралды 143 М.
Getting Started with the Matlab Support Package for Arduino Hardware
17:54
Deploy DSP Filters to any Arm Cortex-M processor in seconds - Fast, Easy, Powerful!
2:05
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН