Pages: [1]   Go Down
Author Topic: control dc motor with a mic!  (Read 527 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello! I have just figured out my first arduino project.. what i want to do is control an 18v DC motor (from an old screwdriver) with a microphone. What im gonna do with this motor is roll up my curtains in my room which activates when my alarm on my cellphone (or alarm clock) goes off in the morning or when i please.

Now to the question: I read some guide on here that said i could use an H bridge to do this.. can i do it in another way?

When i first came to think about this idea i thought of powering the dc with an external power source and just have a transistor in between to control the on and off as thats all i really need.. and to use the microphone input as an indicator of when the arduino powers the transistor which then lets the motor run.

As im new to this i dont really know if that will work.. though with my basic knowledge i like to think that it would work just like that (i thought about having to use an amplifier for the microphone too). So where im going with this is that im unsure whether or not i can do it this way or if i really have to use a bridge? I just want to know if this would be safe for the arduino or if i should do it in another way.

I really appreciate if you guys have any other ideas on how to do this aswell.

thanks in advance! /anton
Logged

Offline Offline
Sr. Member
****
Karma: 5
Posts: 422
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This will give you some ideas for arduino audio input.

http://www.instructables.com/id/Arduino-Audio-Input/?ALLSTEPS

Get that working first, and then think how you want to control the motor, do you need to just open the curtains?
If so a simple relay will do the job, but you need a (light level) sensor to detect when the curtains are open enough.

So, detect audio level, switch on motor, detect light level, switch off motor.
« Last Edit: March 18, 2013, 06:54:11 pm by Lakes » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

alright thanks alot
Logged

Earth
Offline Offline
Full Member
***
Karma: 2
Posts: 111
Webmaster
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

3 Pin Sound Sensor Module ECM for Sound Detecting 5V DC DIY High Sensitivity
http://www.ebay.com/itm/130814345964
« Last Edit: March 18, 2013, 07:55:31 pm by TrailerTrash » Logged

Webmaster living off grid in a camper with 300watts of solar panels charging 9 absorbed glass mat 12V batteries. i own about 40 dot coms. i

Offline Offline
Sr. Member
****
Karma: 5
Posts: 422
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://dangerz.blogspot.co.uk/2012/01/arduino-electret-microphone.html
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So i have put together a clap switch for my project, http://www.buildcircuit.com/clap-switch2/# and i was trying out different resistors (R5 in the circuit) to increase the sensitivity of the mic, because i have to be close to the mic when i clap.. so with the different resistors i tried (ranging from 1k to 10k) im not seeing any of the results that i want.

so my question is should i get another transistor that is more sensitive or is there anything i can do to amplify the signal if i connect it to my arduino (somewhere inbetween the mic and the transistors) ?

any thoughts or ideas is very appreciated!
Logged

Offline Offline
Sr. Member
****
Karma: 5
Posts: 422
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://arduinodiy.wordpress.com/2012/12/20/electret-microphone-amplifier/

Logged

Pages: [1]   Go Up
Jump to: