Sound Clock

General project discussion / help
Did you make a robotic coffee pot which implements HTCPCP and decafs unauthorized users? Show it off here!

Moderator: phalanx

Post Reply
nhpick02
Posts: 2
Joined: Tue Dec 12, 2017 11:18 am

Sound Clock

Post by nhpick02 » Tue Dec 12, 2017 11:23 am

Hey guys, I'm working on a project which includes building a clock that will play 12 different music files (probably 5 seconds each). Is there a good micro controller that can handle storing the music files and playing each file when it receives a voltage signal from a clock movement. This is the same as what a bird clock would do, only the sounds would be different.

rcwilcox
Posts: 8
Joined: Thu Dec 07, 2017 4:46 pm

Re: Sound Clock

Post by rcwilcox » Tue Dec 12, 2017 3:28 pm

You could add this module to any microcontroller

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

Read the reviews in above reference, e.g this link

https://bigdanzblog.wordpress.com/2014/ ... -wtv020sd/

nhpick02
Posts: 2
Joined: Tue Dec 12, 2017 11:18 am

Re: Sound Clock

Post by nhpick02 » Wed Dec 13, 2017 1:05 pm

Thanks for the response. I'm looking for a way to store the music files onto the microchip and play it back when it receives a signal. Is there a type of chip that can do this with decent sound quality.

User avatar
darrellg
Posts: 305
Joined: Fri Oct 17, 2014 10:02 am
Location: Southern California

Re: Sound Clock

Post by darrellg » Wed Dec 13, 2017 4:18 pm

The ISD ChipCorder series may meet your needs.

rcwilcox
Posts: 8
Joined: Thu Dec 07, 2017 4:46 pm

Re: Sound Clock

Post by rcwilcox » Wed Dec 13, 2017 4:55 pm

A rough order of magnitude (ROM) of a 4 KHz signal sampled would be (4k x 2 Nyquist x 12 files x 5 sec) or 480KB (assuming 8 bit DAC) before compression so you will likely need a MCU card that has an SD card port. A 4 Khz 8 bit signal is decidedly Lo-Fi so scale appropriately. If you are looking for a single board MCU this might be a place to start:

https://www.pjrc.com/teensy/td_libs_Audio.html (Teensy MCU), you will still need to drive your speakers with something like this which mates to the Teensy (see link for photos): https://www.pjrc.com/store/teensy3_audio.html

Post Reply