A wearable EMG monitoring sensor project.
Here are the Arduino code and GUI code for the real-time EMG measurement. To run the codes:
- Unzip the attached file and upload the ''v010219.ino'' to Arduino Nano 33 BLE Sense board.
- Connect the Arduino Nano 33 BLE Sense board to the laptop via USB and check the COM port number.
- Make sure that there is a folder called ''rawdata'' in the same path as the ''arduinoGUI.py.''
- Run the ''arduinoGUI.py.'' and input your COM port number to the terminal like ''COM 6''.
- Then you will see the real-time curve about raw-data and four features.
Note:
- This program will try to record every second's raw data to the ''rawdata'' folder as a .bin file.
- When the program starts, it will clear all the old .bin files in the ''rawdata'' folder.
- If you want to load the .bin data to python to do the offline process, you may need numpy.fromfile().
The 'readbin.py' in readdata folder can process the .bin datas in 'rawdata' folder and convert the results to .csv file. The processing part include 4 feature detection model: AVR, RMS, MEF, MDF. The FFT window length is 1s.