element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Trying to construct a talking clock... need advice :/
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 6 replies
  • Subscribers 402 subscribers
  • Views 436 views
  • Users 0 members are here
Related

Trying to construct a talking clock... need advice :/

Former Member
Former Member over 12 years ago

Hi All,

 

I have been on a struggle to make a talking clock as a family gift for quite some time now, similar to the idea of the one sold here:
http://www.amazon.com/Message-In-Time-Recordable-Clock/dp/B0006NHCW0

 

That is, a clock that plays a recorded message every hour.   This I think was a great gift idea.
The problem is, the company that sells these went on the cheap, and now the clock they offer only plays the same message every hour, not 12 different ones like it originally did.

 

So I wondered if I could make my own.  I ended up looking around online, and found a chip that can play recorded sound files if they are converted into the right format (the soundfile conversion I can do).  I purchased a few parts after talking to an electronics store on recommendation, including an Arudino, and I'll list them here. The first part listed was what started me thinking it could be done.   So now I have 4 parts altogether:

 

SoundOut audio module
http://www.embeddedadventures.com/soundout_wtv020_module_mod-1007.html

 

Voltage power supply
http://www.embeddedadventures.com/level_translator_module_mod-1003.html

 

realtime Clock
http://www.embeddedadventures.com/real_time_clock_module.html

 

I also have an Arudino Micro "without headers". 

 

The company I bought all this from claims it should be a rather simple thing, involving connecting them with some jumper wires and then I assume hooking up a speaker and power source, like a battery.   They said the whole project should 'only take an hour or so'.

 

The problem is, its been over five weeks and they still have to get around to telling me how to connect the parts.  The birthday I was making this for is already three weeks gone and I'm still left hanging.
Can anyone lend a hand with advice?   I have basic electronics knowledge, my understanding is the sound files would be turned into .ad4 files, like  0000.ad4 0001.ad4 etc., put on the sound chip and then go.  Some kind of language instruction would have to be put in (??) but I don't know where.
In any case I'm up to about $75 in parts, which is more than I expected.   Could this have been done more cheaply?   If I could just get some pointers I could probably complete this......... thanks for any help or advice.

 

jeffpas

  • Sign in to reply
  • Cancel
Parents
  • Former Member
    0 Former Member over 12 years ago

    Apologies... spelling is, 'Arduino'.   Post won't let me edit.   image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • mandeep255
    0 mandeep255 over 12 years ago in reply to Former Member

    I made one using Arduino UNO and Sparkfun MP3 Player, may suit your requirements.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago in reply to mandeep255

    That sounds like just what I might be looking for.
    Did you just need these two parts only, and I assume a power source and a speaker?    Are the ones below what you used.

     

    https://www.sparkfun.com/products/11021?gclid=CIXph8vl0LkCFQkSMwod1hwAkA

     

    https://www.sparkfun.com/products/10628

     

    Did the sound files play hourly?
    thanks much-

     

    Jeff Pass

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • mandeep255
    0 mandeep255 over 12 years ago in reply to Former Member

    Yes, these are the two boards I used. 

    I addition I used Real Time Clock Module to maintain the time of the type  http://www.hobbyist.co.nz/?q=real_time_clock

    The speakers can be connected directly to the Sparkfun MP3 Player, however, for higher volume you will need and external amp. Do not connect the amp diectly to MP3 Shield, read the documentation prior to that.

    I ran the entire setup with a 12 V Battery, you can use any suitable power source.

    You have to programme the Arduino UNO to whatever result you may desire, It is extremely flexible, I assume you are conversant with Arduino IDE. You can programme it to speak at any interval and speak what you would like it to. The MP3 files to be spoken are to be copied on the micro SD card on the MP3 Player.

    Pl feel free for any other clarification

     

    regards

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago in reply to mandeep255

    Mandeep-I have some programming background including C, but am completely new to electronics and Ardunio programming.
    At this point, I have an Arudino Micro which I have wired up with the parts I first described, and have hooked up a speaker.   I have created 12 .ad4 sound files and with a bit of wiring manipulation I can get the files to play.
    I also have the Ardunio software loaded, the ardunio and other chips hooked up the computer via usb and I assume I can compile and 'import' sketches into the Ardunio to make this work.   So it looks like I'm close :/ .

     

    All I'm looking for is basically a short block of code example which would keep track of the time and play an ad4 file every hour.   I've checked the web and the bookstore but really finding it hard to get started.
    I think it has something to do with this excerpt:


    >>>

    Commands are 16 bit words.
    0x0000 => Starts playback of 0000.ad4
    ...
    0x01FF => Starts playback of 0511.ad4
    0xFFFx => Sets volume: 0xfff0 mute to 0xfff7 loud (default)
    0xFFFE => Play (or pause if already playing)
    0xFFFF => Stop playback

     

    So to playback 0000.ad4, send 0x0000. To start playback of 0001.ad4, send
    0x0001 and so on. You can send volume commands whether playback is occurring
    or not.

    >>>>

     

    and possibly part of this code would be involved:
    http://arduino.simpson.edu/index.php?chapter=steam_punk_clock&lang=en

     

    How would you do it?   I just can't see it as being too complicated or long code, perhaps a loop with a time counter and then calls to play the sound files.
    Then all I would need is a way to set the time.   Or do you know anywhere where such a code sample would be.

    I'd much appreciate any example,.... thanks

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • Former Member
    0 Former Member over 12 years ago in reply to mandeep255

    Mandeep-I have some programming background including C, but am completely new to electronics and Ardunio programming.
    At this point, I have an Arudino Micro which I have wired up with the parts I first described, and have hooked up a speaker.   I have created 12 .ad4 sound files and with a bit of wiring manipulation I can get the files to play.
    I also have the Ardunio software loaded, the ardunio and other chips hooked up the computer via usb and I assume I can compile and 'import' sketches into the Ardunio to make this work.   So it looks like I'm close :/ .

     

    All I'm looking for is basically a short block of code example which would keep track of the time and play an ad4 file every hour.   I've checked the web and the bookstore but really finding it hard to get started.
    I think it has something to do with this excerpt:


    >>>

    Commands are 16 bit words.
    0x0000 => Starts playback of 0000.ad4
    ...
    0x01FF => Starts playback of 0511.ad4
    0xFFFx => Sets volume: 0xfff0 mute to 0xfff7 loud (default)
    0xFFFE => Play (or pause if already playing)
    0xFFFF => Stop playback

     

    So to playback 0000.ad4, send 0x0000. To start playback of 0001.ad4, send
    0x0001 and so on. You can send volume commands whether playback is occurring
    or not.

    >>>>

     

    and possibly part of this code would be involved:
    http://arduino.simpson.edu/index.php?chapter=steam_punk_clock&lang=en

     

    How would you do it?   I just can't see it as being too complicated or long code, perhaps a loop with a time counter and then calls to play the sound files.
    Then all I would need is a way to set the time.   Or do you know anywhere where such a code sample would be.

    I'd much appreciate any example,.... thanks

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • Former Member
    0 Former Member over 12 years ago in reply to Former Member

    it would be something along the lines of this (in UNIX script):

    TIME=1;

     

    while [1]

    do

    sleep 3600; # wait 1 hour

     

    case $TIME in

      1) play 0000.ad4;;

      2) play 0001.ad4;;

      3) play 0002.ad4;;

      ....

    esac

     

    TIME=`expr $TIME + 1`;

    if { $TIME > 24 } then TIME=1;

    done

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube