• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » How To Play MP3 On Arduino With No Shield, No SD Card

By Abhishek Ghosh October 14, 2017 11:02 am Updated on October 14, 2017

How To Play MP3 On Arduino With No Shield, No SD Card

Advertisement

It is a suggested guide to try for learning the basic and understand which components needed for which work. Electronic components are essentially cheap and not everyone on this earth has huge money to spend to learn electronics. Here is how to play MP3 on Arduino with no shield, no SD card at lower bit rate for few seconds. What normally used for projects like our Arduino door bell is a buzzer. In this project, it is better to have a small speaker instead of a buzzer. Buzzer can deliver unexpected result. Basically an Arduino UNO is not really to play sound with a 16mhz microcontroller power to process and play sound at 64kbit or higher bit rate per second rate. Space on the microcontroller is also not huge, hardly around 64kb space will be available for a MP3. 0.5Watt 8 Ohm speakers are good enough. Any speaker actually works.

 

How To Play MP3 On Arduino With No Shield, No SD Card

 

Software

So, in order to play MP3, at software part we need to decrease the bit rate of MP3 to lower value 8kbit. Also, we will need to install an Arduino library :

Advertisement

---

Vim
1
https://github.com/muayyad-alsadi/avr_sound

Install that into your libraries. Then we need some application like Audacity which will make any Stereo Track to Mono, change the Bit Rate to 8000hz and export the File as “Other uncompressed files” (in case of Audacity change the settings to RAW (header-less) and Unsigned 8-bit PCM then export). This way, you’ll get a .raw file.

In our downloaded avr-sound library there other tools like a python application named snd2h.py. We need to process that .raw audio file with that python application from command line tool in the following format to convert it into a .h file (which we will be able to upload via Arduino IDE in later stage) :

Vim
1
python snd2.py audio-file.raw

We will use this kind of sketch/code to upload that Audio :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
#include <avr_sound.h>
#include "audio-file.h"
 
void setup() {
  avr_sound_init();
}
 
// the loop routine runs over and over again forever:
void loop() {
play_myaudiofile();
delay(500);
}

Hardware

As for hardware, with few resistors, a small speaker and an NPN transistor, we can create a basic circuit :

How To Play MP3 On Arduino With No Shield No SD CardTagged With arduino play mp3 sound file , mp3 on arduino , arduino play mp3 , arduino play mp3 no sd , arduino play sound without sd card , paperuri:(16c61ca702e56e77e082c70b7f45a0fa) , arduino mp3 player and no sheiled , arduino mp3 without card , как управлять sd картой arduino , arduino movi upload mp3
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to How To Play MP3 On Arduino With No Shield, No SD Card

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • Changing Data With cURL for OpenStack Swift (HP Cloud CDN)

    Changing Data With cURL For Object is Quite Easy in OpenStack Swift. Here Are Examples With HP Cloud CDN To Make it Clear. Official Examples Are Bad.

  • HTML5 Audio Tag and Embedding MP3 in WordPress Post

    HTML5 Audio Tag Element Represents a Sound or an Audio Stream. Embedding MP3 Such as Own Podcast in WordPress Single Even One Post is Easy Without any Plugin.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy