Code Monkey home page Code Monkey logo

p5-dsp-board-mdk's Introduction

P5-DSP-Board-mdk

C Firmware for FHNW P5 DSP Board based on STM32F412 / TLV320aic


forthebadge

Demo Software for a custom Hardware.


Abstract

In the area of HAM radio or hobby music a demand exists for an inexpensive and simple audio effect box. This project aims to develop such an effect box focussing on good performance but at a low cost using the ARM Cortex-M4\texttrademark series processor architecture because it offers floating point digital signal processing (DSP). In the greater picture the board will be programmable through a user friendly computer software, thereby offering an attractive solution for consumers interessted in a signal processing device. The device uses an STM32F412 microcontroller with a TLV320 stereo audio codec and features a USB port for power and programming as well as two 1 inch OLED displays, two rotary encoders and two push buttons and is capable of running on a rechargeable battery. The board allows the manipulation of the audio signal using the CMSIS/DSP library, whereby a simple FIR filter is implemented for demonstration purposes. As a result of validation measurements, the hardware has a $THD_2$ of 75.77dB and an ENOB of 11.23 bit.

Keywords

ARM Cortex-M4}, CMSIS/DSP, Audio Effect Box, Digital Signal Processing


DSP Dataflow

readme/DMA_CircularBuffer.png

The Data is sampled through I2S2 and stored in a buffer via DMA.

readme/DMA_Dataflow.png

The full data processing workflow is visible above.


How does the DSP Magic work?

See the following files:

  • main.c DMA Transfer Start
  • stm32f4xx_it.c for DMA Half Transfer Inpterrupt
  • dsp_processing.c for implementation of different DSP effects
  • fir.c for implementation of CMSIS/DSP FIR example

SSD1306 OLED

mnemocron/stm32-ssd1306

afiskon/stm32-ssd1306

SSD1306_t holed1;

holed1.hi2cx = &hi2c1;

ssd1306_Init(&holed1);
ssd1306_Fill(&holed1, Black);
ssd1306_SetCursor(&holed1, 2, 0);
ssd1306_WriteString(&holed1, "Hello,", Font_11x18, White);
ssd1306_UpdateScreen(&holed1);

License

Copyright (c) 2019 Simon Burkhardt, Mischa Studer

No license applies! You may not reuse the provided code in any form without permission.

p5-dsp-board-mdk's People

Contributors

mnemocron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.