Skip to content

YenJungHo/Arduino-Matlab-Communication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Side project | Matlab & Arduino Serial Communication and Real-time Display Waveform

There are two part in this system. One is 'Arduino', the other is 'matlab'.

  • Arduino : real-time sensor data collection, Acuator command(like motor).
  • Matlab : get/save date from arduino, analysis and polt figure in time domain and frquency domain.

1. Arduino

1.1. Desired feature

  • Data input : sensor data collection.
  • Data output : Acuator command, like motor.

1.2. Basic function

1.2.1 ISR Timer

用途:因為要做傅立葉轉換,因此'Arduino' 需要固定時間間隔抓取資料。

1.2.2 critical section

用途:使用 'Arduino' Timer 抓取資料,怕發生 ‘race condition' ,使用critical section進行動作保護。

1.2.3. seven display

用途:建立 'Arduino' 時鐘顯示功能,用來除錯。

1.2.4. data structure

用途:在 'Arduino' 使用 C++,建立感測器資料佇列,儲存感測器資料。

2. Matlab

2.1. Desired feature

  • Data input :
    • Connenct serial communication vie usb.
    • Get raw date from arduino.
    • Plot figure immediately with raw date in time domain.
    • Save raw date.
  • Data analysis :
    • analysis and
    • plot figure in time domain and frquency domain vie data from arduino raw data.

2.2. Basic function

2.2.1. Matlab & Arduino Serial Communication

用途:Matlab 使用 USB 跟 Arduino 建立串列通訊

2.2.2. Timer in GUIDE

用途:在 MATLAB 使用 timer 來持續更新即時動作。

2.2.3. save data dialog

用途:儲存 Matlab 蒐集到的 Arduino 資料。

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published