Music With Arduino and Relay

by _MrX_ in Circuits > Arduino

2075 Views, 3 Favorites, 0 Comments

Music With Arduino and Relay

20200429_155345.png
music using Arduino and Relay |Arduino+relay=Music| awesome🎶

in this tutorial, I am going to show you how to create music with relay and Arduino interesting beginner-friendly project

How It Works

IMG_20200429_101217-01.jpeg

if you are familiar with relays .you may notice the triggering sound of the relay. that sound is our key .we trigger relays in a particular sequence to generate music awesome let's start building. before that please watch the making video for detailed instructions

Components Needed

IMG_20200429_093718-01.jpeg
IMG_20200429_093740-01.jpeg
IMG_20200429_093800-01.jpeg

Arduino UNO

you can use any Arduino I am using Arduino UNO

speaker

any speaker

relay module

led

breadboard

Circuit Diagram

ckt_bb.png

Connections

IMG_20200429_095746-01.jpeg
IMG_20200429_101156-01.jpeg

connect the speaker to pin 8 of Arduino

connect relays input to pin 13

Code and Library

code

I used pitches.h library to generate music

pitches.h library

Happy Making

IMG_20200429_101216-01.jpeg

if you have any doubt please comment it below