Professional Documents
Culture Documents
Table of Contents
Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
http://www.instructables.com/id/Sound-Activated-Fan/
Intro: Sound Activated Fan
Ever talk into a fan as a child because it made that cool robot sound? It is a universal memory for most people these days. I created a fan that's soul purpose is modulate
your voice and bring you back to that childhood memory. So it's a fan that will only work when you speak into it. This instructable is made to document my journey of
making this experimental contraption and to also guide anyone who would like to recreate a sound activated fan.
Arduino UNO is the controller used. Price is around $25. You can purchase one through their website https://www.arduino.cc/en/main/arduinoBoardUno
The sound sensor is for arduino and I purchased mine through amazon prime, $10 for a pack of three. You only need one for this project technically but since they are so
cheap it is smart to buy more than one an case anything happens to your sensor.
My relay switch was made in my class, made out of a relay and an extension chord soldered to the relay switch.
http://www.instructables.com/id/Sound-Activated-Fan/
http://www.instructables.com/id/Sound-Activated-Fan/
Step 2: Find a code to do a Simple LED light up test.
So when someone speaks into the fan just right, the fan should turn on so the user's voice keeps the fan on long enough to modulate their voice in a fun way. Choose a
code that will take input from the sound sensor, run through the arduino, and turn the fan on.
To find my code I searched the internet for arduino projects that included a sound sensor. The one I found used a sensor and arduino to light up with music.
http://www.princetronics.com/sound-sensitive-light...\
A0 AO
GND GND
5V VCC
Digital Pin 2 DO
nt sensorvalue = 0;
void setup() {
Serial.begin(9600);
pinMode(6, OUTPUT);
void loop() {
Serial.print("Analog: ");
Serial.print(" ");
Serial.print("Digital: ");
digitalWrite(6, HIGH);
} else {
digitalWrite(6, LOW);
The serial port read that my sensor picked up sound at Analog: 50/51, so I declared threshold to be 53. When the sensor picks up a sound that read greater that 53, the
LEDS light up.
It definitely works. After my LEDS lit up with the music, I began to figure out how to change lighting LEDS as my output to turning on a fan.
http://www.instructables.com/id/Sound-Activated-Fan/
Step 3: Add a relay switch
This relay replaces DO/ digital pin 2 for the input and the other end of the rely is put into ground on the arduino. I choose digital pin 6 to connect my relay. My fan's power
supply (the plug) is plugged into the relay and the relay is plugged into an outlet. Now the intput from Digital pin 6 will switch the relay on when sensor value reaches over
53 and switch the relay off when the sensor value reads below 53. This in turn turns my fan on and off depending on which way the rely is switched to. (The clicking
sound you hear in the video is the relay switching on and off).
http://www.instructables.com/id/Sound-Activated-Fan/
Image Notes
http://www.instructables.com/id/Sound-Activated-Fan/
1. The relay is pin 6 and GND. digital pin 2 still has a jumper but is not needed.
int sensorvalue = 0;
void setup() {
Serial.begin(9600);
pinMode(6, OUTPUT);
void loop() {
Serial.print("Analog: ");
Serial.print(" ");
Serial.print("Digital: ");
digitalWrite(6, HIGH);
delay(250); // Keeps the fan on for a quarter of a second after it is turned on.
} else {
digitalWrite(6, LOW);
http://www.instructables.com/id/Sound-Activated-Fan/
Step 5: Set up hardware to the fan.
The user will face the front face of the fan when they speak into it. This requires the sensor to be in the front of the fan facing the user. The best place to put place my
sensor was in the front middle plastic disc. For optimal performance the sensor must not be blocked by any plastic, so I drilled a hole for the sensor and it's potentiometer.
Now sound is not obstructed at all and the sound of the blades is partially to the sensor and the potentiometer will not be moved or bumped unless the user decides for it
to be adjusted.
The sensor is placed inside the front plastic and secured through the make-shift hole with electrical tape on the back.
Now that the sensor is in place, it's jumpers that connect to the arduino (that's placed at the bottom of the fan) are not long enough to reach it. So unless you use jumpers
that are at least 10 inches or longer, you must do what I did, which was simply solder more wire to lengthen the jumpers.
http://www.instructables.com/id/Sound-Activated-Fan/
http://www.instructables.com/id/Sound-Activated-Fan/
http://www.instructables.com/id/Sound-Activated-Fan/
Image Notes
1. These holes allow room for the cords to fit through. Now, the stand is flat and
sturdy.
http://www.instructables.com/id/Sound-Activated-Fan/
Related Instructables
Advertisements
Comments
2 comments Add Comment
http://www.instructables.com/id/Sound-Activated-Fan/