I hear ya

Go To Last Post
11 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Guys, what's the easiest way to add sound to a mcu?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Glue a boom box to the mcu.

Ross McKenzie, Melbourne Australia

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Buzzer, perhaps. Are you confusing Sound with Music, please.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

sound, say mp3 or something. Something that is easy to interface to a MCU and control.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Guys, what's the easiest way to add sound to a mcu?

First you have to find the reserved sound port (port S) holes----they are often barely marked & usually in the corner.  You must must drill them out very carefully using a #80 drill.  A chip-specific driver is needed to use the sound port.

 

If you don't have a drill, you will need to add a speaker and small driver or amp to make beeps and chirps.  Definitely not as fun as the former, but easier for many.

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

Last Edited: Wed. Aug 25, 2021 - 03:24 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

If you want full function audio (CD quality stereo record and MP3 playback, guitar effects, General MIDI synthesizer), then add a VS-1053 module board using SPI. E-bay reference: https://www.ebay.com/itm/3106451...

 

for Mp3 files, I recommend this small module board: https://www.ebay.com/itm/2652776...

 

Both use a micro-SD card {TD card} to store the MP3 files.   The little one will find all the MP3 files on the SD card and number them.  You can call individual MP3 files to play by sending the song's number (using a Soft Serial Port with baud 9600) to the module board.  This board also has a stereo headphone amplifier.

 

This really cheap module [ebay:https://www.ebay.com/itm/2943547... will play mono MP3 files with its 3Watt on-board audio amp. It can be converted to stereo by those who can solder SOIC chips on the PCB.  It uses a resistor network to make virtual push-buttons for controls.  A FM module RDA5807M can be added.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Fianawarrior wrote:
... mp3 or something.
MPLAB Harmony mp3 software codec for PIC32 and SAM though Opus does have web integration (web browsers, etc)

 

audio/decoder/audio_decoders at master · Microchip-MPLAB-Harmony/audio · GitHub

Supported audio codecs | Codecs used by WebRTC - Web media technologies | MDN

 

edit : Speex is on PIC24/dsPIC; Opus would be a fit on those 16b MCU.

Speex: a free codec for free speech

dsPIC DSC Speex Speech Encoding/Decoding Library | Microchip Technology

Opus Codec

 

edit2 :

Audio and Speech | Microchip Technology

 

"Dare to be naïve." - Buckminster Fuller

Last Edited: Thu. Aug 26, 2021 - 01:07 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Does the micro in question have I2S?

 

If you want to do stuff like MP3, OGG etc then look at the decoders from VLSI. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:
Does the micro in question have I2S?
fyi, some Class-D (digital) audio power amplifiers have an I2S input.

Search results for: I2S Audio Amplifiers – Mouser

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Fianawarrior wrote:
Something that is easy to interface to a MCU and control.

 

I used the ISD chip in the past.

 

JSB

www.tokopedia.com/madagang .Buy and Donated cheap electronics and manuscripts.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Easiest?  PWM -> amplifier and speaker?  I did this years ago on an ATmega32, for fun.  It worked.  Kinda.

C: i = "told you so";