GithubHelp home page GithubHelp logo

mtahakoroglu / matlab-arduino_ppm_reader_gui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from electricrcaircraftguy/matlab-arduino_ppm_reader_gui

0.0 0.0 0.0 697 KB

A program which uses an Arduino to read the stick & switch positions out of the PPM signal on a standard RC Transmitter, and plot and log the data live in MATLAB.

Arduino 55.10% C++ 5.12% MATLAB 39.78%

matlab-arduino_ppm_reader_gui's Introduction

By Gabriel Staples
Written: 4 May 2014
README last updated: 3 Aug. 2015

README Update History (newest on top):
-updated formatting - 3 Aug. 2015

##Click Here to Donate & Download

##For a demo of this code live in action, go here:
http://www.instructables.com/id/Arduino-to-MATLAB-GUI-Live-Data-Acquisition-Plotti/

##Instructions:

  1. Upload the Arduino code to your Arduino.
    -open the "MATLAB_to_Arduino1_0.ino" code to do so
  2. Connect your RC Tx's trainer port to your Arduino, as follows:
  3. Connect trainer ground to Arduino GND. Refer to this list for pinout help: http://www.mftech.de/buchsen_en.htm
  4. Connect the trainer PPM out to the Arduino D2 pin, with a 1K or 10k resistor in series, for protection in case you make a mistake while probing stuff.
  5. Run the MATLAB code, by running the file called "MATLAB_to_Arduino_GUI_driver.m".
    -Note: to edit the GUI, use MATLAB's GUI editor called "guide." Open guide by typing "guide" in the MATLAB workspace, then open the "MATLAB_to_Arduino_GUI_driver.fig" file via guide.
  6. Once you have run "MATLAB_to_Arduino_GUI_driver.m," the GUI will pop up. Type in the appropriate COM port address to your Arduino, and press the "Start" button.
  7. Data will automatically begin to show up, so long as your Tx is on. Move the sticks to see the output. To look at your logged data file, go to the "MATLAB GUI PPM Reader 1.0\data" folder. The data file names will look something like this: "data_20140504_0003_05". The numbers are the time stamp of when the file was made, in order of [year, month, day]_[hour, minute]_second.csv.
  8. The data file (ending in .csv) is a comma-delimited standard ASCII text file. Since it ends in the .csv file extension, if you simply double click it, it will automatically open up in Microsoft Excel, where you can easily plot and manipulate the data.

##License (for ALL code herein, including the Arduino AND MATLAB code):
GPL V3 or later

matlab-arduino_ppm_reader_gui's People

Contributors

electricrcaircraftguy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.