AL_16
Created August 4, 2020 © GPL3+

Microphone activated switch for everyone.

In this project I have created a system to turn on and off lights by clapping, talking or tapping the floor with your shoes.

BeginnerFull instructions provided1 hour31
Microphone activated switch for everyone.

Things used in this project

Hardware components

Big Sound Sensor
×1
SparkFun Qwiic Single Relay
SparkFun Qwiic Single Relay
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Arduino Nano R3
Arduino Nano R3
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Multitool, Screwdriver
Multitool, Screwdriver
Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Custom parts and enclosures

Cover for the switch

It is designed so that all you have to do is take the cover off the switch, connect the relay and put this 3D printed cover.

Schematics

Circuit Diagram

It works by turning on or off the relay depending on the sound arround it.

Code

Code for the Project

Arduino
const int Big_Sound = 7;
const int Relay = 8;

void setup() {
  // put your setup code here, to run once:
pinMode(Big_Sound, INPUT);
pinMode(Relay, OUTPUT);
Serial.begin (9600);

}

void loop() {
  // put your main code here, to run repeatedly:
int Sound;

Sound = digitalRead (Big_Sound);
Serial.println(Sound);
if (Sound == 0){
  digitalWrite(Relay, HIGH);
  delay(500);
}
if (Sound == 0){
  digitalWrite(Relay, LOW);
  delay(500);
}
       
}

Credits

AL_16

AL_16

1 project • 0 followers

Comments