TURN ON THE LIGHTS WITH CLAP

by ensarlevent in Circuits > Arduino

6026 Views, 59 Favorites, 0 Comments

TURN ON THE LIGHTS WITH CLAP

Open The light With Claps
IMG_7332.JPG

Hi dear friend, today we are going to make a different device with microphone and led.

Now we want to, when we clap 2 times in 400ms, leds open.

What Will We Need?

IMG_7322.JPG

There are 2 different Arduino Microphone. First microphone has 3 pins and second microphone has 4 pins. If you have first one no problem but for second mic (like me) you must use A0 pin on mic(you can connect to every pwm pin on Arduino).

FIRST MIC: https://tr.aliexpress.com/item/MIC-microphone-amp...

SECOND MIC: https://tr.aliexpress.com/item/J34-Free-Shipping-...

Fritzing Shema

Ekran Resmi 2017-03-27 19.35.52.png

For Microphone;

Analog Output to D5

GND = GND

+(VCC) = 5V

For Led;

Long pin to D6;

Code;

You can get this work from this link;

https://drive.google.com/open?id=0B6EUM2JQFzOhejNT...

WARNING;

IMG_7319.JPG

IF DEVÄ°CE IS NOT WORKING, YOU MUST CHANGE THE POT LEVEL ON THE MICROPHONE BOARD.