MATLAB is a programming language used primarily for numerical computations. Use this tag for questions regarding communicating or using MATLAB with Arduino. Also consider using other tags such as [programming].
1
vote
0answers
110 views
Problem reading HMC5843 - Magnetometer in Simulink
I'm having a SparkFun 9 DoF sensor stick including the following components:
ADLX345 - Accelerometer
ITG3200 Gyroscope
HMC5843 - Magnetometer
Im currently working on a project in which I need to ...
0
votes
1answer
223 views
Problem with deploying matlab simulink mode to Arduino UNO [closed]
I encounter a problem when deploy matlab simulink model to Arduino UNO
Following shows the error
*The call to realtime_make_rtw_hook, during the after_make hook generated the following error:
The ...
0
votes
1answer
215 views
Matlab to Arduino communication
I am doing some computations on Matlab and I need to send those values to an Arduino Leonardo through USB serial connection. I need to send 2 variables which can vary from -400 to +400. I'm saying ...
0
votes
0answers
72 views
Arduino support package in matlab PROBLEM
i have installed the Arduino support package in matlab , and i have all blocks that come with it in my simulink
the problem is that when i try to establish a serial communication i got smth like this ...
0
votes
0answers
274 views
Sending binary data to Matlab via serial
I would like to exchange data via Xbee. I've set up a communication based on strings between the Arduino and a Matlab software.
Unfortunately this kind of communication isn't enough robust and ...
0
votes
0answers
167 views
What is the maximum frequency of the signal that can be plotted with MATLAB via serial communication from Arduino?
I want to plot the various signals sent to Arduino via Serial communication.
What is the maximum frequency that can be showed without any signal distortion?
I'm basically trying to make a ...
2
votes
4answers
477 views
Communicating between a computer and multiple Arduinos
I am designing a experiment of controlling 6 small wind turbines wirelessly. For each wind turbine, I need to measure power time series (or voltage or current time series) from the generator, and ...
1
vote
1answer
317 views
analogRead function not working in MATLAB
I am new to Arduino and I am trying to control it through MATLAB. I have downloaded the arduino IO package and installed it.I am using MATLAB 2014a.I have a LED and I change its brightness by ...
0
votes
1answer
633 views
Controlling Arduino through MATLAB?
I had a Roboteq motor controller, but it wasn't fast enough. I'm hoping Arduino will be faster.
Supposing that the transfer is fast enough for my purposes, how can I read angular velocity, given that ...
4
votes
3answers
2k views
Binary serial transmission order of data
I'm implementing a filter for my IMU Sensor and thus I want close to real time data visualized on the computer. I use binary serial communication to facilitate the sending part for the arduino (as far ...
1
vote
2answers
507 views
Read Arduino code generated by Simulink
I am trying to do an HIL system with Arduino and Simulink but the driver of my motor (Pololu VNH5019) works at 20kHz and simulink PWM block only supports 490Hz.
I would like to read and modify the ...
5
votes
4answers
9k views
How can I communicate from Arduino to MATLAB
I want to use sensors on an Arduino to control values in a MATLAB program. What are my options for communicating?
I've used Processing to receive data sent via the serial cable, and that strategy has ...
5
votes
1answer
1k views
How to pause Arduino for 1 millisecond through MATLAB?
I have been able to connect MATLAB to my Uno with this line of code: a = arduino('COM4'); through this package: Matlab support package for Arduino.
Right now, MATLAB is my main script that will ...