https://github.com/explooosion/ecg-sensor
Personal experimental project.
https://github.com/explooosion/ecg-sensor
Last synced: about 1 month ago
JSON representation
Personal experimental project.
- Host: GitHub
- URL: https://github.com/explooosion/ecg-sensor
- Owner: explooosion
- Created: 2019-03-01T09:31:17.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-11T08:03:02.000Z (about 7 years ago)
- Last Synced: 2025-01-24T22:11:50.618Z (over 1 year ago)
- Language: JavaScript
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ecg-sensor
個人實驗專案,使用 Arduino + AD8283 進行資料搜集。
以 Node.js 為後端,支援 `Windows`, `macOS`。
1. [ecg-sensor](https://github.com/explooosion/ecg-sensor) - 接收設備資料之專案。
2. [ecg-split](https://github.com/explooosion/ecg-split) - 將資料以指定分鐘數切割,用於計算 QRS 波。
3. [ecg-convert](https://github.com/explooosion/ecg-convert) - 將資料轉換成純數值,用於 Matlab。
## 安裝
請先安裝 serialport 套件。
```sh
npm install -g @serialport/list
```
利用以下指令即可查看當前埠號使用清單。
```sh
serialport-list
```
## 環境變數
參考 `.env.example`,自行在同目錄底下建立 `.env`。
並輸入「受試者姓名」與「第幾階段實驗」。
例如:
```conf
NAME=Robby
STAGE=1
```
## 執行
如果要接收 ECG,請輸入:
```sh
yarn ecg
```
接著選擇連接埠號。
結束時則直接 `Ctrl` + `C` 中斷即可。