&& Project 3. &&
Aim.
MATLAB based bidirectional data communication through commercial devices.
Devices.
Arduino UNO / BCD210(칩센) / customized IC sensors
MATLAB 2020b licensed by SNU
1. MATLAB setup.
Toolboxes ( from addon Manager)
- Instrument Control Toolbox
- Embedded Coder Target for Arduino
- MATLAB Support Package for Arduino Hardware
- Communications Toolbox Library for the Bluetooth Protocol
- Communications Toolbox
- etc, basic toolboxes..
2. Serial port and device port declaration
Arduino :
Arduino_Serial_Obj = arduino('COM7', 'Uno', 'BaudRate', 57600);
Serial Port :
s = serial('COM6', 'BaudRate', 57600, ... % 통신 속도 921600
'DataBits',8);
set(s,'InputBufferSize', 32000000, ... %버퍼 늘림 32000
'StopBits', 1, ...
'Parity', 'none'); %종료 문자 Carrige Return
3. Parameter and Variable
time = 0;
voltage = 0;
Data_Reading_current_point = 1;
Data_reading_size_accum = 0;
subtract_Value_get = [];
tfinish_whole = [];
etc. ...
4. while loop()
5. flag
추후 완성된 코딩을 첨부하도록 하겠다..
'연구 > 프로젝트' 카테고리의 다른 글
FPGA customization : (0) | 2021.06.29 |
---|---|
Xilinx FPGA 보드 이용하여 테스트 하기 (0) | 2018.11.21 |
current mode stimulation (0) | 2018.10.31 |