title: Ð¡Ð¾Ð·Ð´Ð°Ð½Ð¸Ðµ Ð¿ÑÐ¾Ð³ÑÐ°Ð¼Ð¼Ñ Ð´Ð»Ñ Ð¼Ð¸ÐºÑÐ¾ÐºÐ¾Ð½ÑÑÐ¾Ð»Ð»ÐµÑÐ° STM32F107, ÑÐ¾Ñ ÑÐ°Ð½ÑÑÑÐµÐ¹ Ð°ÑÐ´Ð¸Ð¾Ð¿Ð¾ÑÐ¾Ðº Ñ Ð°Ð¿Ð¿Ð°ÑÐ°ÑÐ½Ð¾Ð³Ð¾ ÐºÐ¾Ð´ÐµÐºÐ° VS1053b Ð½Ð° SD ÐºÐ°ÑÑÑ Ð² ÑÐ¾ÑÐ¼Ð°ÑÐµ ogg
title: Ð²ÑÐ¿ÑÑÐºÐ½Ð°Ñ ÐºÐ²Ð°Ð»Ð¸ÑÐ¸ÐºÐ°ÑÐ¸Ð¾Ð½Ð½Ð°Ñ ÑÐ°Ð±Ð¾ÑÐ° Ð±Ð°ÐºÐ°Ð»Ð°Ð²ÑÐ°
titleType: Subtitle
title: Creation of a program for STM32F107 microcontroller saving audio stream from VS1053b audio codec to SD card in OGG format
Creators: name: Ð¨ÐµÑÑÐ°ÐºÐ¾Ð², ÐÐ»ÑÑ
Publisher: name: Ð¡Ð°Ð½ÐºÑ-ÐÐµÑÐµÑÐ±ÑÑÐ³ÑÐºÐ¸Ð¹ Ð¿Ð¾Ð»Ð¸ÑÐµÑÐ½Ð¸ÑÐµÑÐºÐ¸Ð¹ ÑÐ½Ð¸Ð²ÐµÑÑÐ¸ÑÐµÑ ÐÐµÑÑÐ° ÐÐµÐ»Ð¸ÐºÐ¾Ð³Ð¾
Year: 2024
Subjects: Ð°ÑÐ´Ð¸Ð¾
Ð¿Ð¾ÑÐ¾Ðº
ÐºÐ¾Ð´ÐµÐº
sd-ÐºÐ°ÑÑÐ°
ogg vorbis
ÑÐµÐ³Ð¸ÑÑÑ
ÑÑÐµÐ½Ð¸Ðµ
Ð·Ð°Ð¿Ð¸ÑÑ
FAT
audio
stream
codec
sd card
register
read
write

description: ÐÐ°Ð½Ð½Ð°Ñ ÑÐ°Ð±Ð¾ÑÐ° Ð½Ð°Ð¿ÑÐ°Ð²Ð»ÐµÐ½Ð° Ð½Ð° Ð¿ÑÐ¾ÑÐ°Ð±Ð¾ÑÐºÑ ÑÐµÑÐ½Ð¸ÑÐµÑÐºÐ¸Ñ ÑÐµÑÐµÐ½Ð¸Ð¹ ÑÐ¸ÑÑÐ¾Ð²Ð¾Ð¹ Ð·Ð°Ð¿Ð¸ÑÐ¸ Ð¸ ÐºÐ¾Ð´Ð¸ÑÐ¾Ð²Ð°Ð½Ð¸Ñ Ð·Ð²ÑÐºÐ° Ñ Ð¿Ð¾Ð¼Ð¾ÑÑÑ Ð°Ð¿Ð¿Ð°ÑÐ°ÑÐ½Ð¾Ð³Ð¾ ÐºÐ¾Ð´ÐµÐºÐ° VS1053b Ð² ÑÐ¾ÑÐ¼Ð°Ñ Ogg Vorbis, Ð° ÑÐ°ÐºÐ¶Ðµ Ð·Ð°Ð¿Ð¸ÑÑ Ð½Ð° Ð²Ð½ÐµÑÐ½Ð¸Ð¹ Ð½Ð°ÐºÐ¾Ð¿Ð¸ÑÐµÐ»Ñ (microSD) Ñ Ð¿Ð¾Ð¼Ð¾ÑÑÑ ÑÐ°Ð¹Ð»Ð¾Ð²Ð¾Ð¹ ÑÐ¸ÑÑÐµÐ¼Ñ FatFs. ÐÐ°Ðº ÑÐ»ÐµÐ´ÑÑÐ²Ð¸Ðµ, Ð¾ÑÐ½Ð¾Ð²Ð½ÑÐ¼Ð¸ Ð¾Ð±ÑÐµÐºÑÐ°Ð¼Ð¸ Ð¸ÑÑÐ»ÐµÐ´Ð¾Ð²Ð°Ð½Ð¸Ñ ÑÐ²Ð»ÑÑÑÑÑ Ð¿ÑÐ¸Ð½ÑÐ¸Ð¿ ÑÐ°Ð±Ð¾ÑÑ Ñ ÐºÐ¾Ð´ÐµÐºÐ¾Ð¼ VS1053b, Ð° ÑÐ°ÐºÐ¶Ðµ Ð¾ÑÐ½Ð¾Ð²Ñ ÑÐ°Ð±Ð¾ÑÑ Ñ ÑÐ¸ÑÑÐµÐ¼Ð¾Ð¹ FAT. Ð¦ÐµÐ»ÑÑ ÑÐ°Ð±Ð¾ÑÑ ÑÐ²Ð»ÑÐµÑÑÑ ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ðµ Ð±Ð°Ð·Ð¾Ð²Ð¾Ð¹ ÑÐ°ÑÑÐ¸ Ð´Ð»Ñ Ð¿ÑÐ¾ÐµÐºÑÐ¸ÑÐ¾Ð²Ð°Ð½Ð¸Ñ Ð¼Ð¾Ð´ÑÐ»ÐµÐ¹ Ð·Ð°Ð¿Ð¸ÑÐ¸ Ð·Ð²ÑÐºÐ° Ð² ÑÐ°Ð¼ÐºÐ°Ñ ÑÐ°Ð·ÑÐ°Ð±Ð¾ÑÐ¾Ðº Ð¿ÑÐµÐ´Ð¿ÑÐ¸ÑÑÐ¸Ñ Â«ÐÐ Â«Ð¦ÐÐÐ Ð­Ð»ÐµÐºÑÑÐ¾Ð¿ÑÐ¸Ð±Ð¾ÑÂ». Ð¡ÑÐ¾Ð¸Ñ ÑÐ°ÐºÐ¶Ðµ Ð¾ÑÐ¼ÐµÑÐ¸ÑÑ, ÑÑÐ¾ ÑÑÐ° ÑÐ°Ð·ÑÐ°Ð±Ð¾ÑÐºÐ° ÑÐ²Ð»ÑÐµÑÑÑ ÑÐ½Ð¸ÐºÐ°Ð»ÑÐ½Ð¾Ð¹ Ð´Ð»Ñ Ð´Ð°Ð½Ð½Ð¾Ð³Ð¾ Ð¿ÑÐµÐ´Ð¿ÑÐ¸ÑÑÐ¸Ñ. ÐÑÐ¸Ð½ÑÐ¸Ð¿ ÑÐ°Ð±Ð¾ÑÑ Ð°Ð½Ð°Ð»Ð¾Ð³Ð¸ÑÐ½ÑÑ ÑÑÑÑÐ¾Ð¹ÑÑÐ² Ð½Ðµ ÑÐ°Ð·Ð±Ð¸ÑÐ°ÐµÑÑÑ Ð² ÑÑÐ¾Ð¹ ÑÐ°Ð±Ð¾ÑÐµ. ÐÑÐ¿Ð¾Ð»ÑÐ·Ð¾Ð²Ð°Ð»Ð¸ÑÑ Ð¾ÑÐºÑÑÑÑÐµ Ð¾Ð±ÑÐ°Ð·Ð¾Ð²Ð°ÑÐµÐ»ÑÐ½ÑÐµ ÑÐµÑÑÑÑÑ Ð¸ Ð¿ÑÐ¾Ð³ÑÐ°Ð¼Ð¼Ñ Ð¿Ð¾Ð¸ÑÐºÐ° Ð¸ Ð°Ð½Ð°Ð»Ð¸Ð·Ð° Ð¸Ð½ÑÐ¾ÑÐ¼Ð°ÑÐ¸Ð¸. ÐÑÐ¿Ð¾Ð»ÑÐ·Ð¾Ð²Ð°Ð»Ð¾ÑÑ ÑÑÐµÐ´ÑÑÐ²Ð¾ Ð°Ð²ÑÐ¾Ð¼Ð°ÑÐ¸Ð·Ð¸ÑÐ¾Ð²Ð°Ð½Ð½Ð¾Ð¹ ÑÐ°Ð·ÑÐ°Ð±Ð¾ÑÐºÐ¸ Ð¸ ÑÐµÑÑÐ¸ÑÐ¾Ð²Ð°Ð½Ð¸Ñ Keil 5. ÐÑÐ»Ð¸ Ð¿Ð¾ÑÑÐ°Ð²Ð»ÐµÐ½Ñ ÑÑÐ¸ Ð¾ÑÐ½Ð¾Ð²Ð½ÑÐµ Ð·Ð°Ð´Ð°ÑÐ¸: Ð°Ð´Ð°Ð¿ÑÐ°ÑÐ¸Ñ Ð±Ð¸Ð±Ð»Ð¸Ð¾ÑÐµÐºÐ¸ FatFs Ð¿Ð¾Ð´ ÑÐ°Ð±Ð¾ÑÑ Ñ SD-ÐºÐ°ÑÑÐ¾Ð¹ Ð¿Ð¾ SPI, Ð½Ð°Ð¿Ð¸ÑÐ°Ð½Ð¸Ðµ Ð°Ð»Ð³Ð¾ÑÐ¸ÑÐ¼Ð°, Ð½Ð°ÑÑÑÐ°Ð¸Ð²Ð°ÑÑÐµÐ³Ð¾ ÐºÐ¾Ð´Ð¸ÑÐ¾Ð²Ð°Ð½Ð¸Ðµ ÐºÐ¾Ð´ÐµÐºÐ° VS1053 Ð² Ð½ÑÐ¶Ð½ÑÐ¹ Ð½Ð°Ð¼ ÑÐ¾ÑÐ¼Ð°Ñ, Ð¸, Ð½Ð°ÐºÐ¾Ð½ÐµÑ, Ð¿ÐµÑÐµÐ´Ð°ÑÐ° Ð·Ð°Ð¿Ð¸ÑÑÐ²Ð°ÐµÐ¼Ð¾Ð³Ð¾ Ð°ÑÐ´Ð¸Ð¾ Ð¿Ð¾ÑÐ¾ÐºÐ° Ð¿Ð¾ SPI Ð¿Ð¾ ÑÐµÐ¿Ð¾ÑÐºÐµ VS1053bâ STM32F107VCâmicroSD. Ð ÑÐµÐ·ÑÐ»ÑÑÐ°ÑÐµ Ð±ÑÐ»Ð¸ Ð¿Ð¾Ð»Ð½Ð¾ÑÐµÐ½Ð½Ð¾ ÑÐµÐ°Ð»Ð¸Ð·Ð¾Ð²Ð°Ð½Ñ Ð¿ÐµÑÐ²ÑÐµ Ð²ÑÐµ Ð·Ð°Ð´Ð°ÑÐ¸, Ð° ÑÐ°ÐºÐ¶Ðµ Ð¿ÑÐ¸ÑÑÑÑÑÐ²ÑÑÑ Ð·Ð½Ð°ÑÐ¸ÑÐµÐ»ÑÐ½ÑÐµ Ð½Ð°ÑÐ°Ð±Ð¾ÑÐºÐ¸ Ð¿Ð¾ ÑÑÐµÑÑÐµÐ¹ Ð·Ð°Ð´Ð°ÑÐµ.
description: This work is aimed at developing technical solutions for digital recording and audio encoding using the VS1053b hardware codec in the Ogg Vorbis format, as well as recording to an external drive (microSD) using the FatFs file system. As a result, the main objects of research are the principle of working with the VS1053b codec, as well as the basics of working with the FAT system. The purpose of the work is to create a basic part for the design of sound recording modules as part of the necessary developments of the enterprise Â«JSC âCRI ElectropriborâÂ». It is also worth noting that this development is unique for this enterprise. The operating principle of similar devices is not understood in this work. Open educational resources and information search and analysis programs were used. The automated development and testing tool such as Keil 5 was used. Three main tasks were set and done: adapting the FatFs library to work with an SD card via SPI, writing an algorithm that configures the encoding of the VS1053 codec into the format we need, and, finally, transmitting the recorded audio stream via SPI using the VS1053b âSTM32F107VCâmicroSD chain. As a result, all the first tasks were fully implemented, and there are also significant developments on the third task.