OpenBCI / OpenBCI_GUI

A cross platform application for the OpenBCI Cyton and Ganglion. Tested on Mac, Windows and Ubuntu/Mint Linux.
MIT License
723 stars 258 forks source link

Spectrogram - frequency axis scaling is 5/4 FFT frequency #1128

Open shirleyzhang867 opened 1 year ago

shirleyzhang867 commented 1 year ago

Problem

Zendesk ticket #24958

I am using openbci V5.1 with ganglion. With a Live data stream the vertical frequency axis of the spectrogram displays 5/4 the scaling of the FFT display data. In the below figure 20 Hz FFT data is incorrectly displayed as 25 Hz spectrogram data.

20 Hz FFT data is incorrectly displayed as 25 Hz spectrogram data

This spectrogram scaling issue was raised on earlier software releases.... Is there a release that fixes this issue?

Expected

This improper spectrogram scaling issue does not show up with synthetic data. Here as shown below the 20Hz spectrogram matches 20 Hz FFT. 20Hz spectrogram matches 20 Hz FFT

Operating System and Version

Windows

GUI Version

5.1.0

Are you running the downloaded app or from Processing/VSCode?

Downloaded app

Type of OpenBCI Board

Ganglion

retiutut commented 1 year ago

I've personally replicated and confirmed this odd behavior with the Spectrogram Y axis scaling by comparing Ganglion (with a signal generator attached) and Synthetic data.

Steps to replicate again when developing fix:

Possible cause: