Giter VIP home page Giter VIP logo

stm32f4-wave-recorder's Introduction

STM32F4-WAVE-RECORDER

------ STM32F4 Discovery WAVE(.wav) recorder ------ by Piotr Jakubowski and Filip Skurniak

We based on ST example: http://www.st.com/st-web-ui/static/active/en/resource/technical/document/application_note/DM00040802.pdf and STM32DiscoveryVCP project by Xenovacivus ( https://github.com/xenovacivus/STM32DiscoveryVCP )

You can record and save files on your computer using STM32F4 Discovery.

What you need:

CooCox CoIDE (http://www.coocox.org/Downloads.htm) ST-LINK/V2 in-circuit debugger/programmer. Virtual Com Port driver so you can talk to your STM32F4 once you load this project. The C# program, which you can download from the site of our project in Github https://github.com/Anon1mo/STM32F4-WAVE-RECORDER ) - alternative link: https://www.dropbox.com/s/5846ohx5ultw56b/SerialPortTerminal.zip?dl=0

What it does:

The built-in MP45DT02 Microphone captures PDM 1-bit audio samples, which are later converted to PCM 16-bit samples and aggregated in uint16_t arrays. When data from one array is being sent via COM port, the second array is being fullfiled with samples. We can to this thanks to standard C pointers, which switch arrays depending on the previously described method. We get fluent sound without any delays. The standard sampling frequency is 16 kHz, but you can change it depending on your needs.

How to use it

Connect STM32F4 Discovery to your computer via USB and use micro-USB->USB cable to connect it to the computer from the other side(it will create COM port). Download the program from CooCox to your board. If everything is initialized successfully, the two diodes will start shining. Then you need to press the USER BUTTON on your board. If you do it, you can move to C# application, open COM port(it will automatically detect the settings), name a file and click 'Record'. The recording has started and the green diode will shine. If you want to end the recording then press the USER BUTTON. All diodes will shine for a second and then they will be turned off. You'll get a piece of information in the application that the recording has ended. Now you can play the recorded sound. Information

If you have any questions, feel free to ask and send me an email. Presentation about the project (in polish language) - https://www.sendspace.com/file/cynm06

stm32f4-wave-recorder's People

Contributors

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