Giter Site home page Giter Site logo

koson / tuner_on_stm32 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from maciejsudo/tuner_on_stm32

0.0 1.0 0.0 4.52 MB

License: MIT License

C 12.87% HTML 0.37% C++ 85.56% Assembly 0.54% Makefile 0.12% Ruby 0.53% Batchfile 0.01% Objective-C 0.01%

tuner_on_stm32's Introduction

tuner_on_stm32

Introduction:

This project is made for developing and exploring basic DSP algorithms on ARM Cortex M7.

Project mainly concentrates on fundamental frequency estimation algorithm based on FFT and IFFT ARM functions. In this project TouchGFX Designer was used to create graphical user interface - as photograph below shows, it allows to watch realtime spectrum visualisation, and estimated fundamental frequency of guitar string. It also got listed 6 strings typical frequency values used for Stadard E tunning (photo below shows all needed values).

alt text

Photo above shows proper estimation of E4 string frequency(~329.6Hz)

Block diagram of the system

Photo below shows block diagram which contains all used onboard peripheralls such as MEMS microphones, DFSDM module,PDM2PCM and TouchGFX module. alt text

Briefly speaking the algorithm is following:

  1. Two MEMS microphones receive signals, each one their own - Left and Right channel.
  2. Signals are converted via Delta-Sigma module (with use of Sinc filters).
  3. Signals are decoded using PDM2PCM conversion.
  4. Signals are added toegether to create one extra long vector twice as long as the vector from single channel.
  5. FFT proceed on long vector of samples (Spectrum realtime visualisation on TouchGFX).
  6. Skipping zero - offset in spectrum, and unnecessary samples nearby.
  7. Maximum FFT Spectrum amplitude estmation, and the number of sample that corresponds to that value.
  8. Gauss Interpolation, to increase frequency resolution.
  9. Updating estimated frequency value on TouchGFX.

To be continued...

tuner_on_stm32's People

Contributors

maciejsudo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.