Sunday, 16 December 2018

Arduino : Connecting speaker

Simple application to check that the Speaker is connected to the  Arduino or not and how it will produce sound.

Required Items.
1. Speakar
2. Arduino
3. 5V

Follow the below code and upload into arduino for speaker connection

void setup()
{
 
}

void loop()
{
  tone(8,33, 500);
  delay(2000);

   tone(8,37, 500);
   delay(2000);

   tone(8,41, 500);
   delay(2000);
}
Circuit for Arduino Connecting speaker 




for more info you can see the below link. for creating melody Arduino Connecting speaker 

https://maker.pro/arduino/projects/arduino-speaker

No comments:

Post a Comment