Things used in this project

Hardware components:
Microsd
MicroSD Module for Tessel
micro sd card module
×1
A000066 iso both
Arduino UNO & Genuino UNO
arduino uno(only)
×1
10722 01
Speaker: 0.25W, 8 ohms
speaker 8 ohm
×1
826 04
Male/Female Jumper Wires
male//female
×6
Software apps and online services:
Ide web
Arduino IDE
ide arduino
Hand tools and fabrication machines:
Hy gluegun
Hot glue gun (generic)

Schematics

scematic
speaker_micro_sd_yrLF3WSb5a.fzz

Code

socure codeArduino
#include <SD.h>                           //include SD module library
#include <TMRpcm.h>                       //include speaker control library

#define SD_ChipSelectPin 4                //define CS pin

TMRpcm tmrpcm;                            //crete an object for speaker library

void setup(){
  
  tmrpcm.speakerPin = 9;                  //define speaker pin. 
                                          //you must use pin 9 of the Arduino Uno and Nano
                                          //the library is using this pin
  
  if (!SD.begin(SD_ChipSelectPin)) {      //see if the card is present and can be initialized
    
    return;                               //don't do anything more if not
  }
  
  tmrpcm.setVolume(6);                    //0 to 7. Set volume level
  tmrpcm.play("1.wav");         //the sound file "1" will play each time the arduino powers up, or is reset
}

void loop(){}

Credits

2ba48d3f8d7fdebab5c1f6049d9d760a
HUNMAN
2 projects • 2 followers
Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Add projectSign up / Login