Giter Club home page Giter Club logo

f4uac's Introduction

F4UAC -- USB Audio Class headphones on STM32 MCU (-ish)

Wait, what ? Again ? sigh yeah, again.

Abstract

Loose implementation of excellent ST appnote AN5142, using so-called Black Pill boards.

Description

So, USB audio on STM32. Usually this involves USB-I2S bridge, some DAC, and maybe power stage on cheap D-class chip. Boring. Let's do it in software (and hey, check that paper above, really).

(back ? good)

Audio data flow:

As one can see, while overall scheme remains the same, some (let's call it) improvements exists:

  • S16/S24/S32/[email protected]/48kHz and S16/[email protected]/96kHz as input;
  • optional subwoofer channel with crossover at 120 Hz;
  • 8x/16x upsampler with 24/48-tap FIR interpolator;
  • 4th order noise shaper;
  • 7bit/384kHz PWM as output;

From USB poit of view, things are pretty straightforward:

Requirements

Quickstart

git clone --recurse-submodules
make

Precompiled binaries are in bin/ directory

Schematics

Resulting PWM outputs are GPIOA8/GPIOA9 for left/right channels, with complementary GPIOB13*/GPIOB14*. Sample schematics for headphones:

Another one, sort of 'desktop speakers':

Oh, and you can attach OLED display. Or two. And encoder. And proper power stage. Anyway, here's latest:

Maybe i should consider title change.

f4uac's People

Contributors

beefdeadbeef avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

xinghuaman 90999

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.