Skip to content

A firmware for STM32H743VIT6 and STM32F429ZI Disco boards to become an UART audio synthesizer and UART audio player with Python frontend program for PC

License

Notifications You must be signed in to change notification settings

Ilia-Ko/UART-Synthesizer

Repository files navigation

This branch main-h743 is dedicated to STM32H743VIT6 board. Please, find branch main-f429 for STM32F429ZI Disco board.

UART-Synthesizer on STM32H743VIT6

A firmware for STM32H743VIT6 board to be an UART audio synthesizer and UART audio player.

Hardware components

You will need the following hardware components to launch this synthesizer:

  • STM32H743VIT6 evaluation board
  • Personal computer (for Python frontend utility and audio processing with FFmpeg)
  • USB-to-UART adapter with support for 2 MHz baudrate
  • STlink 32-bit firmware programming device
  • Audio speakers
  • Spare cable for audio speakers with Left, Right and GND wires
  • 200-500 Ohm trimmers and breadboard to plug them at (for low-impedance speakers only)

Software components

Assembling

  1. Connect USB-to-UART adapter to the 'H743. RX (adapter) -- pin PA9, TX (adapter) -- pin PA10
  2. Connect STlink pins SWCLK, SWDIO, GND, 3.3V to the corresponding SWD pins on 'H743
  3. Connect 'H743 pins to audio speakers: PA4 -- Left, PA5 -- Right, GND -- GND. In case of low-impedance speakers insert 200-500 Ohm trimmers inbetween (PA4 -- 200 Ohm -- Left, PA5 -- 200 Ohm -- Right, GND -- GND)
  4. Plug STlink device into your PC
  5. Plug USB-to-UART adapter into your PC

Example setup (for low-impedance audio speakers): See 'Setup.jpg' from the root directory

Running

  1. Update Makefile with your CubeH7 installation paths (as well as .vscode/*.json files for proper syntax highlighting when using VSCode)
  2. Run make in the project's root directory to compile the firmware
  3. Flash the firmware to 'H743 with st-flash utility or VSCode's graphical interface
  4. Reset 'H743 by pressing reset button
  5. Launch Python frontend with python src/UART-Bridge.py
  6. Enter help to view available commands and their descriptions
  7. Use tab-completions when typing commands
  8. Type exit or quit to terminate Python frontend

Further details

Additional information can be found in file 'Презентация.pdf' (not translated yet...)

About

A firmware for STM32H743VIT6 and STM32F429ZI Disco boards to become an UART audio synthesizer and UART audio player with Python frontend program for PC

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published