Skip to content

2022 캡스톤, 다채널 근신호 시각화 프로그램

Notifications You must be signed in to change notification settings

sbeen1840/DE-signal-visualization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

🤚EMG and Angle Data Visualization

img


  • This repository contains a program for visualizing EMG (Electromyography) and angle data using PyQtGraph.
  • The program allows users to collect and visualize real-time data from multiple channels.
  • The main method collects and saves the data, while the timing method controls the timing of data collection using keyboard inputs.
  • The collected data is stored as numpy arrays in separate files.
  • The naming convention for the files is {Number}_{index}.npy, where {Number} is the input number provided by the user, and {index} is the index of the data set.

diagram


This program is designed to visualize the data received by a PC through the UART feature of ATmega128. Additionaly, the data is in the form of digital signals, which have been converted from analog using AD7606.


diagram


The image above depicts the overall structure of the program for reference.

The link for socket programming is as follows: DE-socket-connect


👉Requirements

Python 3.x
PyQtGraph
pyqtgraph.Qt
threading
sys
serial
numpy
struct
keyboard

✌️Usage

  1. Clone the repository:
git clone https://github.com/your-username/emg-angle-data-visualization.git
  1. Install the required dependencies:
pip install pyqtgraph
pip install pyserial
pip install keyboard
  1. Connect the EMG and angle sensors to the appropriate serial port

modify port variable if needed

self.port = 'COM7'
self.baud = 2000000
  1. In this program, specific packets and numbers are used to indicate the start and end of data transmission

modify start and end packet

self.start = 0x0b
self.end = 0x0c
  1. Run the program:
python main.py

👍Authors

sbeen1840

👌License

This project is licensed under the MIT License - see the LICENSE file for details.

About

2022 캡스톤, 다채널 근신호 시각화 프로그램

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages