Hi All,
I have been on a quest to make a talking clock as a gift for quite some time now, similar to the idea of the one sold here:
That is, a clock that plays a recorded message every hour. This I thought was a great gift idea.
The problem is, the company that sells these in the link above 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. I want mine to play a different message each hour, say have family members say things.
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 Ardunio, 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
Voltage power supply
realtime Clock
I also have bought an Ardunio Micro "without headers". This one:
http://store.arduino.cc/ww/index.php?main_page=product_info&cPath=11_12&products_id=283
So so far I've bought 4 chips altogether. The company I bought all this from claimed 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....they never got around to telling me how to connect the parts. So I'm left high and dry. I've been getting some advice on another page and the whole thread is here:
https://forum.sparkfun.com/viewtopic.php?f=32&t=36537&p=163501#p163501
So basically I'm at this point today:
I have the four chips wired together, and hooked up to a power source and speaker. I have twelve .ad4 sound files created, one for each hour on the SD flash card. I can manipulate the wires and get the sound files to play. So, so far so good. I also have the Ardunio software downloaded to Win 2008, Ardunio 1.0.5. But at this point I'm dead in the water, though it seems like I'm so close
SO......Here are my hurdles and questions. If anybody can answer ANY, I'd really appreciate:
1- I assume I need to write some kind of 'sketch' program and then upload it into the Ardunio, to run the clock and then kick off the sound files every hour. I've tried doing this, searched for samples, gone to the bookstore but no luck.
I think it would have to not be very complicated which is the frustrating part. Something along the lines of this as it would be in UNIX script:
TIME=1;
while [1]
do
sleep 3600; # wait 1 hour
case $TIME in
- play 0000.ad4;;
- play 0001.ad4;;
- play 0002.ad4;;
....
esac
TIME=expr $TIME + 1
;
if { $TIME > 24 } then TIME=1;
done
Can anyone just give an example of how this would be done? I have some programming experience but I'm completely new to Ardunio and working with chips.
2- Right now I have the Ardunio hooked up to a 9V battery- is this OK? Is this appropriate to run a 'talking clock'?
3- The only other thing I imagine I would really want or need to figure out... this only needs to be simple as possible..... is just a button on the clock box. When you press the button, it would then play the 1am sound, again... 2am sound... then 3am. And then CONTINUE to 'clock on' after that point. So in this way, somebody could wait until the top of any hour, and set the clock.
I'm hoping the clock chip I bought, which includes a small battery, would keep the unit from resetting and the code would be saved- you know so whoever has this clock, they don't have to get hold of me and fire up Ardunio software if they change the battery.
4- Could this have been done with less hardware? The company I bought all this from, got me for over $50 dollars just for the electronics. I'd like to make another one of these if it works but this is really kind of expensive. Thanks for any help!!!