• 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
The Customize Windows > Computer and Internet > Hardware > 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 :

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.

Advertisement

---

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 Card
Tagged With paperuri:(16c61ca702e56e77e082c70b7f45a0fa) , How To Play MP3 On Arduino With No Shield No SD Card , HOW TO PLAY MP3 ON ARDUINO , how to play mp3 files with an arduino , how to play audio file continously using arduino and sd card module , how to make the arduino esplora play a mp3 file , how to get arduino to play mp3 , avr sound muayyad , arduino uno buzzer songs , store music on arduino without sd card

This Article Has Been Shared 2238 Times!

Facebook Twitter Google+ Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic 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

  • Securing Jumper Wire Connections : Prototyping Daugterboard

    Securing Jumper Wire Connections Is An Important Part Of Breadboard Wiring. Prototyping Daugterboard (Prototyping Shield) Can Help Securing.

  • ATtiny Arduino Boards For Cost Saving Projects

    Ready to Use Cheap ATtiny Arduino Boards Available. Here is What to Know About ATtiny Arduino Boards For Cost Saving Projects Before Buying.

  • Arduino Wireless Electricity Transmission Project

    Arduino Wireless Electricity Transmission is a Complete DIY, Easy Project With Basic Electronic Components With Circuit Diagram And Code.

  • Arduino and LED Bar Display : Circuit Diagram, Code

    Here is a Guide Explaining the Basics, Circuit Diagram, Code on Arduino and LED Bar Display. LED Bar Display is Actually Like Multiple LED.

  • Arduino Fingerprint Scanner Module GT-511C3, GT-511C1R

    Here is Arduino Fingerprint Scanner Module GT-511C3 or GT-511C1R Buying Guide and Basic Details On Unknown Matters Around Fingerprint Scanner.

Additionally, 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

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

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 (15K Followers)
  • Twitter (4.4k Followers)
  • Facebook (5.2k Followers)
  • LinkedIn (3.3k Followers)
  • YouTube (1.5k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • 6 Tips for Securing Your Data from Cyber Attacks as a Remote Worker December 11, 2019
  • What is Process Mining? December 10, 2019
  • Explanation of the ESP32 Vulnerability Warnings December 6, 2019
  • OLTP versus OLAP December 4, 2019
  • What is OLTP (Online Transaction Processing)? December 3, 2019

About This Article

Title: How To Play MP3 On Arduino With No Shield, No SD Card
2017-10-14

Author: Abhishek Ghosh
Subjects: Computer and Internet

Is Part Of:


TheCustomizeWindows,

Saturday, October 14th, 2017,
Vol.1(01),
p.1–53134 [IoT Ready Journal]


Source:The Customize Windows
ISSN: 0019-5847 ;
E-ISSN: 0019-5847 ;
Publisher:
jima.in

Cite this article as: Abhishek Ghosh, "How To Play MP3 On Arduino With No Shield, No SD Card," in The Customize Windows, October 14, 2017, December 15, 2019, https://thecustomizewindows.com/2017/10/how-to-play-mp3-on-arduino-with-no-shield-no-sd-card/.

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.


PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

web analysis

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

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