PDA

View Full Version : demo board 'clap' detector?



adri
11-04-2010, 09:23 PM
Hi

I want to use the electret mic on the demo board to make a loud noise detector. When the noise occurs I will trigger another event. If anyone has any tips on how to go about this they'd be much appreciated. I've not touched the prop for a good long while and it's taking some getting back into.

TIA

Adri

RossH
11-05-2010, 12:30 AM
Phew! Until I opened the thread and read the actual details, I thought I was about to hear that someone had found a nasty computer virus that affected the Propeller! :)

Ross.

Roger Lee
11-05-2010, 01:51 AM
I remembered a demo I used a few months ago.
searched "sound meter" and found a program sndmeter posted by Bean.

It's a demo he made for PropBasic.

Phil Pilgrim (PhiPi)
11-05-2010, 02:08 AM
Attached is the latest incarnation of the S2 object. In it, you will find an envelope detector for the S2 robot's built-in microphone. This was included for testing during manufacturing -- not for speech recognition or anything fancy like that. But it may be just what you need for detecting loud noises.

-Phil

ElectricAye
11-05-2010, 02:34 AM
Phew! Until I opened the thread and read the actual details...

And I was worried that he was working on the sensor end of a penicillin dispensing machine. Phew!

TonyF (spinvent.co.uk)
11-05-2010, 01:51 PM
Phil Pilgrim posted this demo code that runs on the Propeller Demo Board, it uses the mic and the LEDs:

http://forums.parallax.com/showthread.php?t=118061&

have fun!
TonyF

adri
11-05-2010, 04:15 PM
Well if anyone's capable of giving the prop VD it'd be me...

Thanks for the help and jokes!

Adri

adri
11-06-2010, 09:23 AM
Hi again.

After dropping my EEE PC and smashing the lcd :-( I've ended up installing BST on my PPC Mac. Seems to work.

Just tried compiling the code that Tony referred to but it fails on the following statement...

dira[*23..16]~~

Can anyone suggest why that might fail?

TIA

Adri

adri
11-06-2010, 09:29 AM
Sorted it.

Read the Prop Manual for a couple of minutes...

RFTM as they say

mpark
11-07-2010, 06:19 AM
dira[*23..16]~~


How did you end up fixing this?

adri
11-07-2010, 07:51 AM
dira[*23..16]~~

changed to

dira[23..16]~~

I think the asterisk must have been a typo.

TonyF (spinvent.co.uk)
11-07-2010, 09:33 AM
So you now have Phil's mic to LED demo program running on your Propeller Demo Board?
What do you think of it and will it help you in what you are doing with the Propeller?
Sorry to hear about your laptop 'crashing'. Look at it this way, a few years back an accident like that would have been much more expensive!