Preprint / Version 1

Comparing Ways of Producing an Audio Signal with Electronics

##article.authors##

  • Sophia Dong Polygence

DOI:

https://doi.org/10.58445/rars.797

Keywords:

Fourier transform, Shannon sampling theorem, PIC microcontroller

Abstract

This study presents two comprehensive explorative efforts at the practical aspects involved in using basic principles of Fourier transform and Shannon sampling theorem to implement audio signals via digital synthesis and basic controlling on a MCU. This project aims to serve as a technical report for beginners, allowing individuals to get a head start on learning about circuits. While not centered on groundbreaking discoveries, the research focuses on providing a detailed, step-by-step account of the construction process. The project encompasses the selection and integration of electronic components, particularly of the PIC microcontroller series; using the C language in the MPLAB IDE XC8 and STM Cube IDE softwares to program working software for the PIC microcontroller to generate a sound. Emphasizing hands-on experience, the study offers valuable insights into the technical intricacies of electronic instrument assembly and production. Additionally, the research emphasizes the creative potential inherent in DIY instrument making, fostering a sense of innovation and exploration within the maker community, especially among those who are relatively new to the realm of electronics. By documenting the construction process, sharing the knowledge gained, and breaking down the work into easily digestible pieces for an unfamiliar audience, this research contributes to the collective expertise of hobbyists, electronics enthusiasts and aspiring instrument makers, encouraging further experimentation and innovation in the realm of electronic musical instruments.

References

Audio and waveform generation using the DAC in STM32 products [Brochure]. (2020). STMicroelectronics. https://www.st.com/resource/en/application_note/an3126-audio-and-waveform-generation-using-the-dac-in-stm32-products-stmicroelectronics.pdf

ControllersTech. (n.d.). WavePlayer using STM32 Discovery. ControllersTech. Retrieved December 9, 2023, from https://controllerstech.com/waveplayer-using-stm32-discovery/

ControllersTech. (2021, January 17). WAVEPLAYER using STM32 || I2S AUDIO || CS43L22 || F4 DISCOVERY [Video]. YouTube. https://www.youtube.com/watch?v=_Pm0L1ropJs

Dogan, D. (2014). Generating Pulse-Width Modulation Waveform. In Designing Embedded Systems with 32-Bit PIC Microcontrollers and MikroC: Chapter 8 - Advanced PIC32 Projects (pp. 359-442). Elsevier Ltd. https://www.sciencedirect.com/topics/engineering/pulse-width-modulation#:~:text=Pulse%2Dwidth%20modulation%20(PWM),to%20power%20control%20and%20conversion.

J. J. Wikner. (2014, February 9). Note on the Power-Speed-Resolution trade-off for a DAC. https://mixedsignal.wordpress.com/2014/02/09/power-speed-resolution-tradeoff/

McAllister, M. (2023, June 1). Digital Audio Basics: Aliasing Explained. https://producelikeapro.com/blog/digital-audio-basics-aliasing-explained/#:~:text=Max%20McAllister,other%20artifacts%20into%20the%20recording

PIC16F87/88 Data Sheet 18/20/28-Pin Enhanced Flash Microcontrollers with nanoWatt Technology [Pamphlet]. (2005). Microchip Technology Inc. https://ww1.microchip.com/downloads/en/devicedoc/30487c.pdf

PIC16F88_organ_tone [Table]. (n.d.). https://docs.google.com/spreadsheets/d/1k-E058Yxvg-VUPHUuZCpRiVFsv-ybpGm0FHm6Kd1CHQ/edit#gid=0

Wach, Matt. (2022). Milling Printed Circuit Boards (PCBs) on a Cheap CNC Machine. https://www.instructables.com/Milling-Printed-Circuit-Boards-PCBs-on-a-Cheap-CNC/

STM32F405/415, STM32F407/417, STM32F427/437 and STM32F429/439 advanced ArmĀ®-based 32-bit MCUs [Brochure]. (2021). STMicroelectronics. https://www.st.com/resource/en/reference_manual/dm00031020-stm32f405-415-stm32f407-417-stm32f427-437-and-stm32f429-439-advanced-arm-based-32-bit-mcus-stmicroelectronics.pdf

STM32F4DISCOVERY [Pamphlet]. (2012). chrome-extension://efaidnbmnnnibpcajpcglclefindmkaj/https://www.st.com/content/ccc/resource/technical/layouts_and_diagrams/schematic_pack/group1/0f/91/8b/39/b3/78/4d/c4/MB997-F407VGT6-B02_Schematic/files/MB997-F407VGT6-B02_Schematic.pdf/jcr:content/translations/en.MB997-F407VGT6-B02_Schematic.pdf

MECHATRONICS. (2015, December 9). Tutorial 8 Interrupt Programming and its simulation using Proteus for PIC microcontroller [Video]. YouTube. https://www.youtube.com/watch?v=UjoDGipCIeg

Additional Files

Posted

2023-12-16