Rank: 9 based on 2645 downloads (last 30 days) and 7 files submitted
photo

MathWorks Classroom Resources Team

E-mail
Company/University
The MathWorks, Inc.

Personal Profile:

 

Watch this Author's files

 

Files Posted by MathWorks Classroom Resources Team View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
05 Sep 2014 MATLAB Support for Arduino (aka ArduinoIO Package) MATLAB class and Simulink blocks for communicating with an Arduino microcontroller board Author: MathWorks Classroom Resources Team support package, arduino, duemilanove, uno, motor shield, hardware interface 2538 95
  • 4.32258
4.3 | 33 ratings
09 May 2014 NI ELVIS II Power Supply, Function Generator, Digital Multimeter Support MATLAB library that extends support for communicating with a NI ELVIS II prototyping platform Author: MathWorks Classroom Resources Team support package, elvis, ni, elvis ii, elvis 2, data acquisition tool... 24 0
01 Mar 2012 Screenshot Embedded Coder Support Package for Beagle Board Simulink block library for creating standalone applications for the Beagle Board Author: MathWorks Classroom Resources Team beagleboard, beagle board, support package 19 18
13 Sep 2011 MATLAB Support Package for Vernier SensorDAQ MATLAB library for reading Vernier sensors using SensorDAQ hardware Author: MathWorks Classroom Resources Team support package, vernier, sensordaq, vernier sensordaq, vernier sensors, data acquisition tool... 16 2
22 Aug 2011 Screenshot MATLAB Support Package for Parallax BASIC Stamp MATLAB library for communicating with a BASIC Stamp 2 and Board of Education (BoE) kit Author: MathWorks Classroom Resources Team support package, parallax, basic stamp, basic stamp 2, basic stamp discovery..., bs2 9 1
Comments and Ratings by MathWorks Classroom Resources Team View all
Updated File Comments Rating
30 Jul 2014 Arduino IO package: Slides and Examples Slides for the webinar: "Learning Basic Mechatronics Concepts Using the Arduino Board and MATLAB". Author: Giampiero Campa

Hi Sina,
have a look at the section of the readme.txt file that concerns customizing the package. The bottom line is that you will have to rewrite parts of the sketch running on the arduino and maybe slightly modify the arduino.m class file.

Hope that helps.

02 Jun 2013 Device Drivers Developing Simulink Device Driver Blocks: Step-By-Step Guide and Examples Author: Giampiero Campa

Hi Glen, there are several RasPi drivers, i believe with external libraries too, linked in the Acknowledgement section of this page.

I (Giampiero) would suggest trying them first to see if you can make them work, if so, start from them to see if you can build your driver. That being said i'll investigate further this case to see if anyone has any idea.

29 Apr 2013 Device Drivers Developing Simulink Device Driver Blocks: Step-By-Step Guide and Examples Author: Giampiero Campa

Nathan, if you include a .cpp file then you should rename the generated wrapper function from .c to .cpp, and also open it and write: ' extern "C" ' before the two function calls.

Please have a look at page 20 of the guide, which explains how to do this, and let me know if it works.

15 Mar 2013 Arduino IO package: Slides and Examples Slides for the webinar: "Learning Basic Mechatronics Concepts Using the Arduino Board and MATLAB". Author: Giampiero Campa

Hi Patricia and everybody else. If you get the timeout error one thing i would suggest is to go into the arduino.m
file, find these lines:

fprintf(1,'Attempting connection .');
for i=1:12,
pause(1);
fprintf(1,'.');
end

and increase that 12 up to 15 or more until it works. Another suggestion
is using the adiosrv.pde file instead of motorsrv.pde or srv.pde.

03 Apr 2012 MATLAB Support for Arduino (aka ArduinoIO Package) MATLAB class and Simulink blocks for communicating with an Arduino microcontroller board Author: MathWorks Classroom Resources Team

General guidelines

* Please use this FileExchange page for general comments and ratings on the support package

* If you have questions about using this support package, post your question at http://www.mathworks.com/matlabcentral/answers (with tag "arduino", and product "matlab")

Comments and Ratings on MathWorks Classroom Resources Team 's Files View all
Updated File Comment by Comments Rating
01 Dec 2014 MATLAB Support for Arduino (aka ArduinoIO Package) MATLAB class and Simulink blocks for communicating with an Arduino microcontroller board Author: MathWorks Classroom Resources Team John Hedengren

We used MATLAB and an Arduino UNO (Ruggediuno) for our process control lab starting in 2013. We built 40 lab kits for ~$50 each and distributed them to students. Below is a link to our source code for the lab.

https://www.mathworks.com/matlabcentral/fileexchange/48016-arduino-matlab-process-control-lab

The lab is featured in the December issue of CACHE news. The article includes a number of lessons learned with regards to improving student experience. It was a positive experience the second year (2014) after we worked out some important details.

http://apmonitor.com/che436/uploads/Main/Hands_on_Process_Control_CACHE.pdf

We're interested in continuing to improve the Arduino lab. Please contact me with any suggestions on additional modules related to Process Dynamics and Control: john.hedengren@byu.edu.

23 Nov 2014 MATLAB Support for Arduino (aka ArduinoIO Package) MATLAB class and Simulink blocks for communicating with an Arduino microcontroller board Author: MathWorks Classroom Resources Team Eduardo

I just installed the package but I keep getting this error whenever I try to use it:

EDU>> a = arduino();
Updating server code on Arduino Uno (COM5). Please wait.
Cannot program Arduino board Uno (COM5). Please make sure the board is supported and the port and board type are correct.

Do I still need to install something else?

07 Nov 2014 MATLAB Support for Arduino (aka ArduinoIO Package) MATLAB class and Simulink blocks for communicating with an Arduino microcontroller board Author: MathWorks Classroom Resources Team Tristan Beau

Under MacOSX 10.10 and matlab 2011b, I didn't succeed in connecting the arduino whereas it works with the arduino SDK using the port. I got the error :

>> a=arduino('/dev/tty.usbmodem1421')
Attempting connection .............
Warning: Unsuccessful read: A timeout occurred before the Terminator was reached.
Error using arduino (line 104)
Connection unsuccessful, please make sure that the board is powered on......

Any idea ?

04 Nov 2014 MATLAB Support for Arduino (aka ArduinoIO Package) MATLAB class and Simulink blocks for communicating with an Arduino microcontroller board Author: MathWorks Classroom Resources Team Ole

Is there a way to control PWM duty cycle of voltage?

17 Oct 2014 MATLAB Support for Arduino (aka ArduinoIO Package) MATLAB class and Simulink blocks for communicating with an Arduino microcontroller board Author: MathWorks Classroom Resources Team Flo20

When I try to find the arduino on the serial port with:

a = arduino('COM 5', 'uno')

I get the following message.

Unable to load a message catalog 'MATLAB:arduinoio:general'. Please check the file location and format.

I already reinstalled matlab and all the packages, but still the same issue occurs.

Anyone with a solution?

Thanks in advance!

Contact us