News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

Is this possible

Started by klovell, April 12, 2011, 06:54:31 PM

Previous topic - Next topic

klovell

This maybe a pipe dream but is it possible to trigger an event from sound?  Just like a motion detector will turn on a light when it detects motion. 

I'm thinking I would connect a mic to the MD in the nursery, then configure the event so the sound of the baby crying will turn on/flash lights and/or display video from a camera over looking the crib.

Please tell me this is possible... that would be so cool!

Marie.O

There are quite a few phones available who have this built in. Gigaset range from Siemens is one of them
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

klovell

These are compatible with Lmce?

rperre

#3
There are many projects out there that can create an event from sound, maybe you can work up a dce device, it would also be a start for control by sound. The sound can come from any device, but a well placed microphone like the Solo might be best for baby monitoring.

here is a sample project i found, since i have 2 grand baby's now, i was interested in this also.

http://audiotrigger.sourceforge.net/

Richard
My setup at: [url="http://wiki.linuxmce.com/index.php/User:Rperre"]http://wiki.linuxmce.com/index.php/User:Rperre[/url]

Marie.O

If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

klovell

Point taken. 

So you're saying if I get one of these phones I could create an event that will trigger commands when there's sound in the room?  I have absolutely no use for a phone in my house, both my wife and I have cell phones, this would be a complete waste of money if it can't be used as a sound sensor.  Has any one doe this with this phone?

tkteun

Maybe you could install a security camera and make a small microphone to infrared LED VU meter?

If you have a cheap VU meter like this: velleman.eu distributor/products/view/?id=352812  (MK146 on google)

and remove all the LEDs, you can take some infrared led and solder it in the required spot. Then place the device in view of the camera and make a camera trigger.

Because the cheap CCD and CMOS cameras are extremely sensitive to infrared light, the LED will turn bright white in the image. This should be able to trigger a movement alarm.

Maybe a camera is a bit more useful in a nursery than a phone and is definitely cheaper than any 'Siemens Gigaset'.

Marie.O

Quote from: klovell on April 13, 2011, 01:41:53 AM
Point taken. 

So you're saying if I get one of these phones I could create an event that will trigger commands when there's sound in the room? 

You can trigger a phone call on the Gigaset. The phone call could trigger action on LinuxMCE.
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

klovell

Quote from: posde on April 13, 2011, 07:51:07 AM
You can trigger a phone call on the Gigaset. The phone call could trigger action on LinuxMCE.

I hate to be a pest but I just don't understand.  What do you mean by trigger a phone call?  So someone says something in the room...anything, Or the baby starts crying and that will trigger the Gigaset to place a phone call?  What then, I set the phone to call an extension in the house?  That extension receiving a phone call triggers the lighting and video alerts I want?  Please break it down for me, i'm interested but i'm having a hard time following you.


Quote from: tkteun on April 13, 2011, 03:49:20 AM
Maybe you could install a security camera and make a small microphone to infrared LED VU meter?

If you have a cheap VU meter like this: velleman.eu distributor/products/view/?id=352812  (MK146 on google)

and remove all the LEDs, you can take some infrared led and solder it in the required spot. Then place the device in view of the camera and make a camera trigger.

Because the cheap CCD and CMOS cameras are extremely sensitive to infrared light, the LED will turn bright white in the image. This should be able to trigger a movement alarm.

Maybe a camera is a bit more useful in a nursery than a phone and is definitely cheaper than any 'Siemens Gigaset'.

Interesting!  This sounds great in theory, also there are VU meters with mics built in for fairly cheap.  I'd consider it if someone can confirm that a bright light will trigger a movement alarm.  I know the camera in my Droid can see the IR signals from my remotes so in theory I don't see why this wouldn't work.  I don't know if it would be bright enough though, plus I haven't used my soldering iron in years.  Can someone confirm if lights can trigger an alarm?  Especially in the daytime, I think this is where this idea will definitely fail.

Quote from: rperre on April 12, 2011, 08:02:11 PM
There are many projects out there that can create an event from sound, maybe you can work up a dce device, it would also be a start for control by sound. The sound can come from any device, but a well placed microphone like the Solo might be best for baby monitoring.

here is a sample project i found, since i have 2 grand baby's now, i was interested in this also.

http://audiotrigger.sourceforge.net/

Richard

I LOVE this idea.  Unfortunately that software is for windows, I don't suppose WINE is compatible with LMCE?  I don't want to have a windows box setup just for this.  I'll have more time next week to play with this so i'll search for a Linux alternative.  Then I can setup an MD in the nursery, install an app like this and get it married or duct taped to Lmce. 

Marie.O

Quote from: klovell on April 14, 2011, 02:09:38 PM
I hate to be a pest but I just don't understand.  What do you mean by trigger a phone call?  So someone says something in the room...anything, Or the baby starts crying and that will trigger the Gigaset to place a phone call?  What then, I set the phone to call an extension in the house?  That extension receiving a phone call triggers the lighting and video alerts I want?  Please break it down for me, i'm interested but i'm having a hard time following you.

You understood correct.

Any sound in the room triggers an outgoing phone call to a specific number. The gigaset calls an extension. The incoming call triggers an event, that can execute any command you want.
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

klovell

Quote from: posde on April 14, 2011, 02:15:54 PM
You understood correct.

Any sound in the room triggers an outgoing phone call to a specific number. The gigaset calls an extension. The incoming call triggers an event, that can execute any command you want.


WOW!  That sounds pretty simple.  For $99 for the phone in the wiki that sounds a little too simple to pass up.  I think i'm going to look into an application like audiotrigger first then default to this if that's a dead end.  With something application based i'd be able to use it for other rooms and other scenarios easily, just buy a mic.  This phone will work awesomely though!!

Thanks!!

tschak909

Any DCE device can be made to trigger an event.

So, take for example:

Creating a Security sensor called an audio sensor, in the same category as Generic Sensor. This would, as per the device template emit a Sensor Tripped event.
ho
You would use DCEGen to generate a C++ project skeleton for it...

This code would spawn an audio catching thread, listening for audio over a certain threshold (I won't get into the specifics of that.. it's a well known problem and is easy to put together a solution.) ... and upon a threshold met (set by device data for example!), it would emit an EVENT_Sensor_Tripped(1)

Which you would _THEN_ be able to catch in the web admin.

It's really not hard, for those with a little bit of drive to dig in a bit. I wish you guys would STOP trying to duct tape things around and actually learn the system a bit. ;)

-Thom

Marie.O

Thom,

do you think that using a phone is a clutch?
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

tschak909

Nah, but there are more direct ways of doing this. ;)

-Thom

Marie.O

How can you do it without coding a single line?

I think using a phone is great, as they are already setup for this kind of scenario. Everything else means re-inventing the wheel.
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]