Questions tagged [matlab]
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].
56 questions
-1
votes
1
answer
71
views
Wolfram Mathematica reads but closes stream feeds from Arduino Serial port after a few data sets
This is a Wolfram Mathematica / Arduino serial feed problem , but I am posting here just in for any suggestions on enhancing the Arduino code or the Mathematica notebook. The original post is here ...
0
votes
3
answers
1k
views
Problem on Sending float number and multiple float numbers
Im having trouble in sending float number and multiple float numbers.
Im currently working on project matlab and arduino mkr1000. The situation is that i want to send float number and multiple float ...
2
votes
0
answers
208
views
Simulink resets arduino
I am working on servo motors control through serial communication protocol, I am sending data from Simulink to arduino and vice versa, The problem I am getting is that once I open Simulink Servo ...
2
votes
1
answer
258
views
The analog read is not giving the correct waveform as that of an oscilloscope
I have code that fetches analog input values from terminals A0, A1 and A2 of an Arduino Mega 2560. When I plot the data, it does not give the desired waveform.
The desired waveform is also measured ...
1
vote
0
answers
49
views
about receiving float on Atmega32 from matlab
I want to receive a float on Atmega32 from matlab. I display the output on an lcd, but i receive 0.000, can any one help me? Please ...
matlab code
s=serial('COM1','BaudRate',9600);
fopen(s)
fwrite(...
-1
votes
1
answer
73
views
Taking data from main 120V 50/60Hz power
How can I take data from my house main power and reconstruct it signal? I used an transformer and an inverter amplifier to low voltage to 5 volts and read it with A0 analog pin, but I got a very ...
1
vote
0
answers
172
views
MKR 1000 not found in ports when MKR IMU Shield is connected
I am trying to connect my MKR IMU Shield to my MKR1000 by placing the IMU shield in the MKR1000. When I do this, however, the Arduino IDE and Simulink are unable to find the port that my Arduino is ...
1
vote
1
answer
286
views
Sending sine wave from MATLAB and reading on Arduino Uno [closed]
I am working on timing issues associated with sampling data at high rates and storing it on an SD card (ADC delays, clock drifts and file I/O time). For this experiment, I thought of sending a ...
-1
votes
1
answer
475
views
Sending double data from Matlab to the Teensy 3.6 via the microUSB
I've been hitting against a wall for over a week now. My current project is to use a Teensy 3.6 to send data over an SPI bus to a chip which is effective going to be a signal generator. I've made a ...
0
votes
1
answer
227
views
What am I missing? Send data from Matlab to Arduino to Micro SD
First off. This is not in any way a class assignment. This is my own personal work and research. I just want to get that out of the way.
I am learning how to use Matlab with various Arduino projects. ...
-1
votes
1
answer
183
views
External ADC reference when using MATLAB support package for Arduino
I am using the MATLAB support package for Arduino.
However, I need to configure the ADC reference to external. MATLAB documentation doesn't really explain how to do this?
Is there any way I can use ...
3
votes
4
answers
1k
views
GUI interface with microcontroller to control a device through SPI
I am trying to develop a GUI to control a device hooked up on the Arduino. The Arduino communicates with the device through SPI. I have developed a GUI on MATLAB to visualize read by the Arduino. For ...
1
vote
1
answer
305
views
Sidestep one second log rate with NeoGPS when another sensor on the board need to log faster
The sample rate of an accelerometer, like an MPU6050, is much faster than the GPS log rate, different technology, different issues.
A common GPS Reciver has, approximatly, one second log rate.
In my ...
2
votes
0
answers
258
views
MATLAB and Arduino communication
I have to send from MATLAB to Arduino a char line 'S' to start the Arduino program and send back values from a sensor.
This is my MATLAB code
clear;
delete(instrfind);
s = serial('/dev/cu....
1
vote
0
answers
555
views
Problem sending array data from matlab to arduino
I've two LEDs connected to the arduino uno's pin 12 and 13. I want to control the LEDs independently from the MATLAB serial command.
Here is my MATLAB serial command from where I'm sending char array
...
-1
votes
2
answers
3k
views
MATLAB+Arduino+LCD
I am trying to send some integers to an LCD. But it is not working. I have tried in Proteus. Please help. I have uploaded MATLAB and Arduino code below.
MATLAB code:
clear all
clc
answer=1; % this ...
0
votes
1
answer
591
views
Questions on how to connect Arduino to Matlab through the serial port
I have an Arduino board with Intel Edison on it. I have tried to read data in Arduino from MatLab through the serial port. I'm sure the Arduino board is working because when I use the serial monitor ...
4
votes
0
answers
727
views
ArduinoDue - Matlab: SerialUSB.write() sends ASCII?
I'm trying to get some binary data from an Arduino Due to Matlab.
Basically this is the setup:
Due:
byte usbMsg[33]= {0};
// filled with dummy as example
usbMsg[1] = '00000001';// in[3];
usbMsg[2] =...
2
votes
0
answers
128
views
Matlab Arduino Multi Byte Read
I'm using Matlab to communicate with a custom AD7746 board through an Arduino UNO. The data sheet mentions that
"In continuous conversion mode, the address pointers’ autoincrementer should be used ...
5
votes
4
answers
4k
views
Employing C++ code for Arduino
I have Googled quite a lot regarding using a C++ program for uploading to Arduino and related, however I am confused now. Right, my problem is this:
I have written a C++ program which imports RGB ...
3
votes
2
answers
465
views
MATLAB - Read from 2 SPI inputs synchronously
I am using the MATLAB Arduino Support Package to create a setup where I can read force data from a load cell and positional data from an incremental encoder - then plot them on MATLAB. It must be done ...
0
votes
2
answers
2k
views
Matlab and Arduino Serial communication
I'm new to Arduino and am learning how Serial communication works. I am trying to send a value from Matlab to Arduino, but it seems to be partly fruitful. If anyone can explain the difference between ...
1
vote
3
answers
14k
views
Plotting a real time graph of sensor data from Arduino on Processing, MatLab or Python
I have an accelerometer connected to my Arduino Due to spit out data on my serial monitor as described in my earlier post. I'm trying to find a sketch I could use to plot a continuous real-time graph ...
0
votes
1
answer
2k
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 ...
3
votes
0
answers
1k
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 ...