how to play music using arduino in tamil



the codings for this video is there:

codings for play songs

/*The circuit:
 * SD card attached to SPI bus as follows:
 **speaker - pin 10
 ** MOSI - pin 11
 ** MISO - pin 12
 ** CLK - pin 13
 ** CS - pin 10 (for MKRZero SD: SDCARD_SS_PIN)*/
//TMRpcm library is needed

#include <SD.h>
#define SD_ChipSelectPin 10
#include <TMRpcm.h>
#include <SPI.h>

TMRpcm tmrpcm;

void setup()
{
tmrpcm.speakerPin=9;
Serial.begin(9600);
if(!SD.begin(SD_ChipSelectPin))
{
  Serial.println("SD fail");
  return;
}
tmrpcm.setVolume(6);
tmrpcm.play("Faded.wav");

}

void loop() {
  // put your main code here, to run repeatedly:

}

Comments

Popular posts from this blog

programing part for petrol level measuring in tamil

using millis() in ultrasonic sensor program in tamil

how to make pic and pot robot (robotic arm) in tamil