Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
HTMLPad 2018 15.5
WeBuilder 2018 15.5
SentiMask SDK Trial 2.0.0
Track Order For Magento 2 1.0.0
Calendar 365 For Dynamics CRM 4.0
Scimbo 1.2
Odoo Furnito Theme 1.0
.Net Assemblies/WSDL Import Utility for Delphi 6.0.4.0
Devart Excel Add-in for Zendesk 1.7
Excel Add-in for Marketo 1.7
GetOrgChart 2.5.3
AnyGantt JS Gantt Charts 8.6.0
AnyChart JS Charts and Dashboards 8.6.0
Multi Vendor Ecommerce Script & Apps 4.0
Magento 2 Inventory Management Extension 1.0
Top Code
jQuery Slider Ken Burns 1.0
ActivePerl 5.8.4.810/5.6.1.638
Porter Stemming Algorithm 1.I
The Karma Language 1.0
MCU 8051 IDE 1.4.7
jQuery Accordion Photo Gallery 1.0
Guest Book V. 2 V2
Flash T-Shirt Designer 3.0
Myanmar Unicode Conversion Help 1.0
Html Goodies
MATLAB Support Package for Arduino (aka ArduinoIO Package) 1.0
Space Impact 0.4.15
Tabitha 1.0
Simple Web Content Management System for Scripts 1.1
Free Spire.PDF for .NET 2.9.37
Top Rated
VisualNEO Web 2018.12.15
Paste phpSoftPro 1.4.1
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
PHP GZ Blog Script 1.1
ATN Jobs Software 4.0
Interacting with an Arduino Using the Matlab Serial Commands 1.0
File ID: 77698






Interacting with an Arduino Using the Matlab Serial Commands 1.0
Download Interacting with an Arduino Using the Matlab Serial Commands 1.0http://www.mathworks.comReport Error Link
License: Freeware
File Size: 10.0 KB
Downloads: 23
Submit Rating:
Interacting with an Arduino Using the Matlab Serial Commands 1.0 Description
Description: 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.

License: Freeware

Related: reset, remember, arduinos, addresses, references, sensor, simulating, 039com3039, devttyusb, Windows, signls, Counter, versus, created, plots

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 10.0 KB

Downloads: 23



More Similar Code

This package contains the component for interacting with an opensimulator server and 2 modules (grid status and friends online).

The component is developed and designed with opensimulator v 0.7.0.1 and 0.7.0.2 running in grid and standalone mode with MySQL as storage engine. See the readme.pdf for further details.

With this component you can:

* enable registered joomla accounts to create an account for the...



With an example database the author shows how to access data using ADO and ASP. In this online article the developers can learn about how to run an SQL command in ASP and display the end results in a table. The author creates a connection to a...



Adds a button to the TinyMCE to wrap an email address with a shortcode using the WordPress antispambot function.

Installation

This section describes how to install the plugin and get it working.

Upload the...



TappedAudio is an audio library with an emphasis on the programming interface -- agnostic to the backend, written in highly-encapsulated C++ and using SWIG to present a unified API for C++, Python, Ruby, etc., regardless of the underlying audio...



SQQ & STOCKQUOTEQUERY pull stock prices for a given ticker symbol
from the YAHOO web server using the MATLAB Java URL interface.

STOCKQUOTEQUERY has the main code. SQQ calls STOCKQUOTEQUERY and allows for either interactive...



Reshapes an array like the MATLAB intrinsic reshape function. But reshape0 does not require that the total number of elements must remain the same. If the new array is larger, then it will be zero or blank padded. If the new array is smaller, then...



Apply a watermark to an image using the Python Imaging Library. Supports color, tiling, scaling, and opacity reduction.



An alternative to the Matlab Treebagger class written in C++ and Matlab.

Creates an ensemble of cart trees (Random Forests). The code includes an implementation of cart trees which are
considerably faster to train than the matlab's...



The attached CSV file contains a 751 x 2 matrix, which can be read using the MATLAB "csvread" command.

>>data = csvread('TW1.csv');

The first column is the standardized test statistic Z, ranging from -3.9 to...



This file contains a 2 x 495 array, which can be read directly using the MatLab "csvread" command.

Let
Z = standardized test statistic
CDF(Z) = cummulative distbtn function at Z
then
Z = array elements in...

User Review for Interacting with an Arduino Using the Matlab Serial Commands
- required fields
     

Please enter text on the image