• 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 Card Tagged 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

This Article Has Been Shared 734 Times!

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

  • 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

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

  • Is it Good to Run Apache Web server and MySQL Database on Separate Cloud Servers? March 27, 2023
  • Advantages of Cloud Server Over Dedicated Server for Hosting WordPress March 26, 2023
  • Get Audiophile-Grade Music on Your Smartphone March 25, 2023
  • Simple Windows Security and Privacy Checklist for 2023 March 24, 2023
  • 7 Best Artificial Intelligence (AI) Software March 24, 2023

About This Article

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, March 28, 2023, https://thecustomizewindows.com/2017/10/how-to-play-mp3-on-arduino-with-no-shield-no-sd-card/.

Source:The Customize Windows, JiMA.in

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

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT