Countdown timer to cuckoo sound

Discussion in 'The Projects Forum' started by AlanMccabe, Nov 11, 2012.

  1. AlanMccabe

    Thread Starter New Member

    Nov 11, 2012
    4
    0
    Hi folks. Wondered if any one can help. I need to be able to play the sound of a cuckoo clock 4 mins after a button is pressed. We are going to us it in a santa's grotto to let Santa have some idea how long he has been chatting to a child. The button would be pressed when the child enters the sound would come out of a fake cuckoo clock and Santa could start to wind up his conversation. I had thought of an mp3 player possibly but would welcome suggestions. Many thanks. Alan
     
  2. wayneh

    Expert

    Sep 9, 2010
    12,103
    3,038
    The mp3 player is a fine idea. I believe standard egg timers are 3 minutes, so if you can find one you like, that would work.

    It wouldn't make sound, but an hour glass would have a nice Santa touch.
     
  3. spinnaker

    AAC Fanatic!

    Oct 29, 2009
    4,884
    1,002
    I simple solution would be to use the alarm clock feature on your phone (if you can play any mp3). But you need the push button feature, so perhaps there is a timer app?
     
  4. JDT

    Well-Known Member

    Feb 12, 2009
    658
    85
    For a zero cost solution, use a computer or laptop. Write a simple application in VB.net or similar. Press space bar (or any key) starts timer, plays short wav file after time-out. Waits for space-bar to start timer again.

    Could even be a command-line script.
     
  5. AlanMccabe

    Thread Starter New Member

    Nov 11, 2012
    4
    0
    Thanks for the idea's. Like the idea of from JDT zero cost. I dont have any programming experience so will have a look for a countdown timer. I could use a stealth-switch to start the timer :)
    Thanks everyone
    Alan
     
  6. wayneh

    Expert

    Sep 9, 2010
    12,103
    3,038
    Soooo... a computer costs less than an egg timer? Or an mp3 player?
     
  7. AlanMccabe

    Thread Starter New Member

    Nov 11, 2012
    4
    0
    I have an small desktop spare that would do the job. Hopefully.
     
  8. wayneh

    Expert

    Sep 9, 2010
    12,103
    3,038
    I suspected as much. But it will be a nuisance to keep powered, haul around, protect, etc. when something so small as an mp3 player would do the job. All you need is a 4 minutes of silence added to the front of your sound. Restart the song with the "previous" button for each kiddie.
     
  9. AlanMccabe

    Thread Starter New Member

    Nov 11, 2012
    4
    0
  10. elec_mech

    Senior Member

    Nov 12, 2008
    1,513
    193
    It would not be free, but if you are comfortable making circuits, you could make two timers with 555s - one a 4-minute timer, the other a timed player for your sound. The 4-minute timer would trip the second one which could be connected to either an MP3 player or a musical greeting card - you may be able to skip the second timer altogether. There are recordable greeting card modules you can buy either in card stores or eBay.

    If you don't already have a stash of circuit components handy, then a pre-made solution is probably more cost-effective.

    Another thought is buying a cheap digital timer and connecting the output to a greeting card module. On the down side, the timer would need to be manually set to 4 minutes everytime.
     
  11. JDT

    Well-Known Member

    Feb 12, 2009
    658
    85
    After my last post, I thought I had better see if it can be done. Not as easy as I thought but try this:-

    Code ( (Unknown Language)):
    1. Option Explicit
    2.  
    3. 'Define the variables
    4. Dim SecDelay, SoundFile, Message, ReturnVal, shell
    5.  
    6. set shell=createobject("wscript.shell")
    7.  
    8. SecDelay = 10 'The delay in seconds.
    9. SoundFile = "C:\Windows\Media\tada.wav"  'The wav file to be played.
    10. Message = "The sound " & SoundFile & " will be played in " & SecDelay & " seconds"
    11.  
    12. Do
    13. 'Display a message box.
    14. 'OK click or Space-bar returns 1. Cancel or Escape returns 2.
    15. ReturnVal = MsgBox (Message,VbOKCancel,"Space-bar = OK, Esc = Cancel")
    16.  
    17. 'If Cancel clicked - Exit
    18. If ReturnVal = 2 Then Exit Do
    19.  
    20. 'Wait for pre-set delay
    21. WScript.sleep SecDelay*1000
    22.  
    23. 'Play the sound in the default player.
    24. shell.run SoundFile,,false
    25.  
    26. Loop
    Save this as soundtimer.vbs or similar and run it. It will play the sound in the default player on your system. Edit the file for your required time delay and wav file.
     
Loading...