How to make Smart Clap Switch using Arduino | DIY Arduino Projects

4 Просмотры
Размещено
The proper way to make a clap light switch is to use an Arduino or a microcontroller, because it allows the device not just to detect claps but to recognise a clap pattern, two claps in our case. Two clap pattern is much more reliable than a single clap because it prevents false triggering.

Code (sketch) for this Arduino project: https://github.com/electrical-pro/clap_switch
Microphone module you can get here: https://s.click.aliexpress.com/e/_Abs0Z2
5V relay module: https://s.click.aliexpress.com/e/_AAXY9i
Arduino UNO: https://s.click.aliexpress.com/e/_Ap94tp
Arduino wires (jumper wire, Dupont): https://s.click.aliexpress.com/e/_AV0WRl

OUTLINE:
0:00 - About clap switch (and short demo)
0:20 - What components are needed
0:42 - Flashing Arduino
0:57 - Connecting wires
1:57 - Powering up everything and the first test
2:22 - Connecting a light bulb
2:33 - Controlling a light bulb
2:50 - Voice detection problem
3:17 - Fixing voice detection problem
4:12 - Test with a modified microphone module
4:34 - Removing one more capacitor
4:45 - Final test
5:09 - False triggering prevention demo
5:41 - Goodbye
Категория
Ардуино
Комментариев нет.