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.
- Data input : sensor data collection.
- Data output : Acuator command, like motor.
用途:因為要做傅立葉轉換,因此'Arduino' 需要固定時間間隔抓取資料。
用途:使用 'Arduino' Timer 抓取資料,怕發生 ‘race condition' ,使用critical section進行動作保護。
用途:建立 'Arduino' 時鐘顯示功能,用來除錯。
用途:在 'Arduino' 使用 C++,建立感測器資料佇列,儲存感測器資料。
- 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.
用途:Matlab 使用 USB 跟 Arduino 建立串列通訊
- Mac OSX Yosemite no serial ports showing for Uno R3
- Simple Matlab & Arduino Serial Communication
- 用Matlab與Arduino的序列阜溝通
- Serial Communication between MATLAB and Arduino
- Read Streaming Data from Arduino Using Serial Port Communication
用途:在 MATLAB 使用 timer 來持續更新即時動作。
用途:儲存 Matlab 蒐集到的 Arduino 資料。