element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Design for a Cause - Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Design for a Cause - Design Challenge
  • More
  • Cancel
Design for a Cause - Design Challenge
Blog Design for a Cause - Smart Voice Synthesizer, Visualizer- Audio Interface - Independence Day Special
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: prashanth.nagendrappa
  • Date Created: 15 Aug 2018 3:09 PM Date Created
  • Views 1394 views
  • Likes 5 likes
  • Comments 6 comments
  • element 14
  • amplifer
  • audio jack
  • arduino mkr
  • design for a cause - design challenge
Related
Recommended

Design for a Cause - Smart Voice Synthesizer, Visualizer- Audio Interface - Independence Day Special

prashanth.nagendrappa
prashanth.nagendrappa
15 Aug 2018

#Blog5

Hello Everyone!

 

Happy Independence Day image

Its August 15, we celebrate Independence Day in our country.

 

Here is my work on integrating SD Card Shield and PAM8403 Audio Amplifier to Arduino MKR1000. Which is the part of  "Smart Voice Synthesizer, Visualizer".

As per the design, the hand Gestures will be transformed into voice where this implementation play the key role. 

Components Required

  • Arduino MKR1000
  • Arduino UNO shield
  • Arduino MKR1000 SD Card Shield
  • PAM8403 Audio Amplifier Module
  • Jumper Wire
  • Speaker
  • SD Card

 

The Circuit

Connect the SD card shield to connect Arduino MKR1000 and Audio Amplifier

SD Card should contain test.wave audio file.

 

image

Demo

Independence Day special

“ Saare Jahanse Accha…….image”

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

imageimage

The Code

 

#include <SD.h>
#include <SPI.h>
#include <AudioZero.h>


void setup()
{
  // debug output at 115200 baud
  Serial.begin(115200);


  // setup SD-card
  Serial.print("Initializing SD card...");
  if (!SD.begin(4)) {
    Serial.println(" failed!");
    while(true);
  }
  Serial.println(" done.");


  // 44100kHz stereo => 88200 sample rate
  AudioZero.begin(16000);
}


void loop()
{
  int count = 0;


  // open wave file from sdcard
  File myFile = SD.open("test.wav");
  if (!myFile) {
    // if the file didn't open, print an error and stop
    Serial.println("error opening test.wav");
    while (true);
  }


  Serial.print("Playing");
  
  // until the file is not finished  
  AudioZero.play(myFile);


  Serial.println("End of file. Thank you for listening!");
  while (true) ;
}

 

 

Stay Tunedimage

 

Thank You!

  • Sign in to reply

Top Comments

  • genebren
    genebren over 7 years ago +2
    Nice update on your design challenge project. The sound system seemed to be crisp and clear. Keep up the good work. Gene
  • prashanth.nagendrappa
    prashanth.nagendrappa over 7 years ago in reply to genebren +2
    Thank You genebren Sir
  • jw0752
    jw0752 over 7 years ago +2
    Happy Independence Day. I enjoyed hearing the audio of your project work. You are off to a great start. John
  • prashanth.nagendrappa
    prashanth.nagendrappa over 6 years ago in reply to aspork42

    Dear James O'Gorman That's the Comment that used same as the library, In Program, the used 16000kHz Sample rate for Mono Thanks

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • aspork42
    aspork42 over 7 years ago

    Good update - you're making great progress.

     

    I noticed something in your code -->

    1. // 44100kHz stereo => 88200 sample rate

    I think you may be doubling up the sample rate required. We [humans] can hear up to about 22 kHz. Nyquist therm would dictate doubling that sample rate up to ~44kHz. I don't think you'd need 88200 Hz unless you are sampling in stereo.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • prashanth.nagendrappa
    prashanth.nagendrappa over 7 years ago in reply to jw0752

    Thank You jw0752 Sir

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jw0752
    jw0752 over 7 years ago

    Happy Independence Day.

     

    I enjoyed hearing the audio of your project work. You are off to a great start.

     

    John

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • prashanth.nagendrappa
    prashanth.nagendrappa over 7 years ago in reply to genebren

    Thank You genebren Sir

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube