Hackster is hosting Hackster Holidays, Ep. 5: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Friday!Stream Hackster Holidays, Ep. 5 on Friday!
Boaz Lawnce
Published © GPL3+

Arduino Plays Indian National Anthem

Arduino Indian Citizen.

IntermediateFull instructions provided3,883
Arduino Plays Indian National Anthem

Things used in this project

Story

Read more

Schematics

Circuit

BC547 Fritzing Pinout E B C

Code

Code

C/C++
#include "SD.h"
#define cs 4
#include "TMRpcm.h"
#include "SPI.h"

TMRpcm Bz;

void setup(){
Bz.speakerPin = 9;
Serial.begin(9600);
if (!SD.begin(cs)) 
{
return;
}
}

void loop()
{ 
  Bz.setVolume(4); 
Bz.play("na.wav");
//delay(300000);
//Bz.play("176.wav");
//delay(300000);
//Bz.play("128.wav");
delay(58000); // Song duration
}

Credits

Boaz Lawnce

Boaz Lawnce

11 projects • 38 followers
Electronics Engineer, Founder, Hobbyist....

Comments