Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shirleyzhang867 opened this issue Mar 10, 2023 · 1 comment
Open

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

shirleyzhang867 opened this issue Mar 10, 2023 · 1 comment

Comments

@shirleyzhang867
Copy link
Member

shirleyzhang867 commented Mar 10, 2023

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
Copy link
Member

retiutut commented Mar 28, 2023

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:

  • Use Ganglion and attach signal generator positive lead to channel 1 positive pin, repeat with negative lead/pin for channel 1
  • Run signal generator at .001 V on a 30Hz sine wave with filters off
  • Observe incorrect solid line placement in Spectrogram widget
  • Then open Synthetic mode (8 channels) and observe behavior of channel 6's 30 Hz sine wave, which appears correct in spectrogram

Possible cause:

  • Y axis map() function and assigned pixels

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants