Interacting with an Arduino Using the Matlab Serial Commands
- Downloads:
- Views:
- Rating:

Using information from Matlab central, Robot Grrl, and the Arduino forums, four files (two .m and two sketches) demonstrate two way communications between Matlab and the Arduino. The first set of files, serialTest1, demonstrates arduino input with Matlab tic/toc timing information added, and the second set of files, serialTest2, uses clock information from the arduino. I think you'll find the results interesting when the two approaches are compared.
Usage:
Load the sketch on your arduino. LED13 will light, indicating that the arduino is waiting for a response from Matlab to start. Load the m file, and change the com port to the port where the arduino USB is mapped on your PC (I use Linux, thus the /dev/ttyUSB1, it will be something like 'COM3' in windows). Run the .m file, and LED13 will turn off as Matlab signls the arduino, data is read, and a plot is created of time info versus counter data (simulating sensor data). Remember to reset the arduino before each m file run (LED13 must be on)! Used an arduino mega, but should work fine on most arduinos. Thanks to Tom Igoe and Robot Grrl (see sketch references to http addresses). Robot Grrl plots as she goes, and you can do that also, although it will slow things down slightly. But, note the key to these files, is the use of the proper TERMINATOR. The matlab set terminator statement using LF and the use of serial.println in arduino is the secret ingredient to success. If you don't use these, then you are relying on inserted timing delays, yuck.
Free download from Shareware Connection - Using information from Matlab central, Robot Grrl, and the Arduino forums, four files (two .m and two sketches) demonstrate two way communications between Matlab and the Arduino
Version: 1.0 | Size: 10 KB | Platform: Matlab, Scripts
Released Date: 16-04-2013 | Rating: 0 | Title: Interacting with an Arduino Using the Matlab Serial Commands
Author Url: http://www.mathworks.com
Program Info Url: http://www.mathworks.com
Download Url: http://www.mathworks.com/matlabcentral/fx_files/26711/1/arduino2matlab.zip
123WebMessenger
Voice Audio Processing
Fractal dimension
Yahoo Messenger
MATLAB for Digital Communication
PlaySMS
Shock Response Spectrum
PID Tuning Using Genetic Algorithm
AMR-NB Encoder
Continuous Sound and Vibration Analysis
Grey prediction algorithm for mobile user localization
GSM Traffic Channel Simulator
LDPC Code Simulation
Wiener filter for Noise Reduction and speech enhancement
Affiliate Programs
Animation
Auctions
Audio Systems
Banner Rotation
Blog
Bulletin Boards & Forums
Business & Enterprise
Buttons
Calendars & Events
Charts & Graphs
Chat
Classified Ad Managers
Communication
Robot Matlab
Robot Arm Matlab
Robot Arm Simulation Source Code Matlab
Matlab Copy Files
Damaged Matlab Files
Arduino Domotic Control - Automate your home with a control system with Arduino, using multiple Arduino ethernet shields. Show the temperature/ humidity, configure the light, flame and gas sensor.Setting the light sensor to turn on the led if it is dark or show if ...
14. SERIAL COMMUNICATION BETWEEN PIC16F628A AND MATLAB - 14. GUIDE MATLAB SERIAL COMMUNICATION BETWEEN PIC16F628A AND MATLAB.
Dynamical Systems with Applications using MATLAB - "Dynamical Systems with Applications using MATLAB" covers standard material for an introduction to dynamical systems theory
Robot Soccer: An Exercise in Learning the Key Features of Simulink - This demo helps you apply the key features of Simulink that are discussed in the "Introduction to Simulink" webinar
MATLAB(R) Priority Control - With this tool you can set the MATLAB(R) process priority class and the thread priority.
Shareware Connection periodically updates pricing and software information of 'Interacting with an Arduino Using the Matlab Serial Commands' from company source 'Lowell Toms' , so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using 'Interacting with an Arduino Using the Matlab Serial Commands' crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Interacting with an Arduino Using the Matlab Serial Commands.
NovaBench - PC performance benchmarking is something that may not interest average users much but tech savvy lot resort to such apps to find out prowess and capability of their laptops and desktops. While there are quite a few PC benchmarking apps in market, ...
CleanMyDrive - PC experts unanimously agree that using Macs tend to be a smoother and faster experience than running Windows based PCs but the Apple laptops and desktops also need maintenance and performance tweaking, occasionally. Regular web browsing, ...
Sculptris - For 3D modeling and design, there are so many apps to pick from noondays. From feature laden and expensive apps of Autodesk to mid level and lesser known contenders, users are spoilt for choice. However, it is also possible to use a decently ...
Plants vs. Zombies 2 - These days there are lot of tower defense games on offer. Coming from the stable of Electronics Arts, which is one of the leading companies in the gaming arena, Plant vs. Zombies is a decent game particularly if you are interested in garden ...
Imagina - Average PC users have to deal with an ever increasing number of digital images these days. This has become a trend after invasion of digital cameras and smart phone with high quality cameras among the mass. You also need to edit and retouch ...
Quick Crypt - PC users have become more conscious and careful about privacy of their data these days, especially about the data they need to share with others. There are valid reasons for this trend. Instances of personal information theft and attacking are on ...
FortiClient Standard - Every computer user needs to have adequate protection for his system and this holds true for corporate and network users. In business setups, where multiple desktops and servers are connected to a network, using regular antivirus suite may be ...
SumatraPDF - The PDF format is used worldwide to distribute document files without changing formatting, alignment and layout. It can also be used to share complex engineering designs and diagrams along with massive amounts of text. The biggest benefit of this ...
Paint.NET - Nearly every PC user needs to use some type of image editing software nowadays, whether it is for personal or professional reasons. It can be for making minor corrections to your vacation pictures before you share them on social media sites. It ...
Norton Security with Backup - Symantec is an old time player in PC security and its various security suites with Norton brand name are used all over the world. With time, Norton security apps have been tweaked to consume fewer resources and they come with several bells and ...