Rank: 472 based on 165 downloads (last 30 days) and 1 file submitted
photo

Doug Eastman

E-mail
Company/University
The MathWorks
Lat/Long
32.824177, -117.17852

Personal Profile:
Professional Interests:
Control Systems, Embedded Control, Hobby Electronics

 

Watch this Author's files

 

Files Posted by Doug
Updated   File Tags Downloads
(last 30 days)
Comments Rating
21 Jun 2012 Screenshot Arduino Target Develop applications for the Arduino platform using Simulink®. Author: Doug Eastman arduino, simulink target, rtw target, rtw, potw, pick of the week 165 53
  • 5.0
5.0 | 11 ratings
Comments and Ratings by Doug View all
Updated File Comments Rating
27 Aug 2010 Arduino Target Develop applications for the Arduino platform using Simulink®. Author: Doug Eastman

**UPDATE**
The target has been updated, but is now located here:
http://www.mathworks.com/academia/arduino-software/arduino-simulink.html

Please use the download and instructions at the above link rather than the download here. This submission will be removed in the near future.
Thanks!

15 Mar 2010 Arduino Target Develop applications for the Arduino platform using Simulink®. Author: Doug Eastman

Hi Jon,
The serialCommunication example includes an Embedded MATLAB block. If you use EmbeddedMATLAB, Stateflow, or a TruthTable block, Simulink will try to build code for the simulation using the compiler you have chosen using mex -setup. Because the Arduino requires C++ code generation, the simulation currently also needs to support C++. I will try to investigate a better solution, but for now, you will need to install a supported C++ compiler and choose that option by running "mex -setup" at the MATLAB command prompt. A list of supported compilers is shown here: http://www.mathworks.com/support/compilers/R2010a/index.html
I'm using Microsoft Visual C++ 2005.

13 Mar 2010 Arduino Target Develop applications for the Arduino platform using Simulink®. Author: Doug Eastman

Hi Jon,
Yes, that's unfortunate, it looks like version 0018 has changed the directory structure which breaks the install script and the makefile. The change you made to the install script is correct. To fix the build error, I believe you only need to change line 126 in arduino.tmf to:
ARDUINO = $(INSTALL_DIR)/hardware/arduino/cores

10 Nov 2009 Arduino Target Develop applications for the Arduino platform using Simulink®. Author: Doug Eastman

Hi Matthew, the ~ is a new construct that was introduced in R2009b. The files will be updated shortly with a version without ~'s that works in R2009a and latter. In the meantime, you can simply replace the ~'s with valid variable names (x1, x2, etc.).

Comments and Ratings on Doug's Files View all
Updated File Comment by Comments Rating
10 Mar 2013 Arduino Target Develop applications for the Arduino platform using Simulink®. Author: Doug Eastman klob

Hi,

I have a problem using the arduino target.
I am trying to send data via serial communication from a model running on arduino to a model running in my computer.

The problem is that I get wrong values when the data I am about to send are negative (i.e. the transmission is fine when I am sending values 0 or greater but wrong when they are below zero (instead of -4 I receive 252 etc)).
I also tried to send negative values through the example that you have (demo_arduino_serial_communication and demo_arduino_serial_communication_host), by changing the Analog input block with a constant block and once again it works fine when using values zero or greater but I am getting the following error message when I am trying to send negative values through the serial communication.
"Parameter overflow occurred for 'Value'. The parameter's value is outside the range that the run-time data type can represent. The specified value was saturated to the closest representable value. You can control this diagnostic on the Diagnostics pane of the Configuration Parameters dialog."

I thought to try and change something on the Diagnostics pane, but I thought that it would be wiser to ask someone more experienced first.

What do you think?

I have an arduino UNO and MATLAB R2011b.

Thanks in advance,
a desperate student

25 Aug 2012 Arduino Target Develop applications for the Arduino platform using Simulink®. Author: Doug Eastman Samrith, Vanaroth

I am unsure on what is this Pref.m file that we can edit to use the Arduino 1280. Can some please point me in the right direction?

30 Jul 2012 Arduino Target Develop applications for the Arduino platform using Simulink®. Author: Doug Eastman ipac

Actually I am interested sending the high level commands from matlab to arduino. For example, the desired motor speed, or motor position and the feedback control loop to be performed in arduino. Do someone has any sample program for this kind of problem

Thank you

25 Jul 2012 Arduino Target Develop applications for the Arduino platform using Simulink®. Author: Doug Eastman klob

Hello,
i am trying to send two signals from my arduino uno to simulink(using arduino target).Is it possible?

Thank you!

21 Jun 2012 Arduino Target Develop applications for the Arduino platform using Simulink®. Author: Doug Eastman Mohammad

Has anyone ever try to use the arduino target package on chipkit max32 microcontroller? Or know whether it will support this package?

Top Tags Applied by Doug
arduino, simulink target
Files Tagged by Doug
Updated   File Tags Downloads
(last 30 days)
Comments Rating
21 Jun 2012 Screenshot Arduino Target Develop applications for the Arduino platform using Simulink®. Author: Doug Eastman arduino, simulink target, rtw target, rtw, potw, pick of the week 165 53
  • 5.0
5.0 | 11 ratings

Contact us