Shop OBEX P1 Docs P2 Docs Learn Events
demo board 'clap' detector? — Parallax Forums

demo board 'clap' detector?

adriadri Posts: 34
edited 2010-11-07 02:33 in Propeller 1
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

Comments

  • RossHRossH Posts: 5,520
    edited 2010-11-04 17:30
    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 LeeRoger Lee Posts: 339
    edited 2010-11-04 18:51
    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)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2010-11-04 19:08
    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
  • ElectricAyeElectricAye Posts: 4,561
    edited 2010-11-04 19:34
    RossH wrote: »
    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!
  • edited 2010-11-05 06:51
    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
  • adriadri Posts: 34
    edited 2010-11-05 09:15
    Well if anyone's capable of giving the prop VD it'd be me...

    Thanks for the help and jokes!

    Adri
  • adriadri Posts: 34
    edited 2010-11-06 02:23
    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
  • adriadri Posts: 34
    edited 2010-11-06 02:29
    Sorted it.

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

    RFTM as they say
  • mparkmpark Posts: 1,305
    edited 2010-11-07 00:19
    adri wrote: »
    dira[*23..16]~~

    How did you end up fixing this?
  • adriadri Posts: 34
    edited 2010-11-07 01:51
    dira[*23..16]~~

    changed to

    dira[23..16]~~

    I think the asterisk must have been a typo.
  • edited 2010-11-07 02:33
    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!
Sign In or Register to comment.