Program that does FFT on a signal that comes from a USB device, then sends and receive data between two computers in local LAN, then shows the average of the signal on a speedometer.
The FFT part is probably already calculated as part of the SDK of the device I’m using.
I need a Visual C++ code for the following program:
Two people in the same LAN network will install the program on their computer, and then they connect through the program’s interface. Each will have on the screen a simple speedometer (as in cars). The value on the speedometer will go up and down according to some computation on inputs from the two players, for example the average of inputs from the two players. I’ll explain:
Each player puts some headset that measure EEG (brain waves) than he connects a USB device that sends those signals to the (local) computer using TCP protocol. I have the code for a TCP listener for this specific device (EPOC eMotiv). Now, I want to extract mathematically some frequency of the waves (let’s say alpha waves) and send the amplitude of this wave to the other computer. So in each computer the program gets two variables in (almost) real time: Player 1 amplitude and player 2 amplitude. Now on each computer the speedometer shows the average of those two variables.
The program should also store the values of the EEG signals into a local file, and also the values of the amplitude of each frequency.
The frequency should be calculated with FFT with some window, unless you find it in the SDK then you don't need to write the FFT part at all. The size of the windows and the frequency etc. I can change later. I have basic knowledge in C++ and programming so I won’t need continuous support how to tweak small thing after the project is basically done.
You don’t need to have an Emotiv EPOC device. I will send you an emulator of this device, and the SDK that have there a listener and probably the FFT part too.
The device is called emotive EPOC. Search for it. I have the research SDK. Search some before you ask many questions.