Project

69 views
Skip to first unread message

Chris Hurley

unread,
May 31, 2012, 9:08:34 AM5/31/12
to 091labs-public
Hey guys,

I called into the lab yesterday asking about a project I was working
on and I was told to ask this group.

Basically the project is to build a simple circuit to play a few
short .wav files repeatedly. I searched online, but couldn't find much
in the way of circuit diagrams etc, so I was wondering what thoughts
you guys had on the project. When I went in to the labs the lads
recommended using an arduino with an SD card shield for storing the
files. Is this the best way to do it or is there a simpler
(quicker :P ) way (maybe with some sort of IC that just reads from
memory and drives speakers?)

I kinda want to get a prototype fairly quick too, so I don't know if I
can wait for arduino shipping... Is there something I can get locally
in Galway to do this?

Let me know what ye think anyways,

Cheers,
Chris

Duncan Thomas

unread,
May 31, 2012, 9:16:00 AM5/31/12
to 091labs...@googlegroups.com
On 31 May 2012 14:08, Chris Hurley <ramsc...@gmail.com> wrote:
> Hey guys,
>
> I called into the lab yesterday asking about a project I was working
> on and I was told to ask this group.
>
> Basically the project is to build a simple circuit to play a few
> short .wav files repeatedly. I searched online, but couldn't find much
> in the way of circuit diagrams etc, so I was wondering what thoughts
> you guys had on the project. When I went in to the labs the lads
> recommended using an arduino with an SD card shield for storing the
> files. Is this the best way to do it or is there a simpler
> (quicker :P ) way (maybe with some sort of IC that just reads from
> memory and drives speakers?)

There are ICs that will do this, but by the time you've messed around
getting a circuit with them working, you'd have been quicker to use an
arduino - I'd only bother witha dedicated IC if I was going to be
making enough of them that the cost saving becomes significant.

I've an arduino in the lab you're welcome to borrow, I don't currently
have an SD card shield I'm afraid... there's a USB host mode shield
there if you can find the libraries to read from a usb thumb drive
maybe?


--
Duncan Thomas

Daniel Cussen

unread,
May 31, 2012, 9:16:08 AM5/31/12
to 091labs...@googlegroups.com
Hi Chris,

I am in Dublin but this might help:
http://www.quasarelectronics.com/sound-recorder-modules.htm

It's a sound recording module. No software required. just trigger the
play button when required. Some have the ability to replay the same
message forever."loop option"

Warning some are kits. They are UK based.

I own a similar unit. It loops. It has a limit of around 16 seconds.
It has a very high deafening output. I could post to you if ultra
urgent. Email me direct.

Dan

Domhnall Walsh

unread,
May 31, 2012, 9:22:35 AM5/31/12
to 091labs...@googlegroups.com
Umm, I'm no expert on this stuff, but when it comes to an Arduino, but you might be able to push low sample rate low bit rate WAVs through an Arduino fast enough. Don't know enough about how the Arduino underpinnings fire interrupts, but I'd imagine you should be able to get an Arduino to play (say) an 8Khz/8bit WAV okay with (some) CPU cycles to spare, but it'd probably require tweaking with the timing of the SD card reads vs audio output. Would the hardware UART be useful to "cheat" on the output side?

Chris Hurley

unread,
May 31, 2012, 9:27:14 AM5/31/12
to 091labs-public
Thanks for getting back so quick. That'd be great if I could borrow it
for a while and see if I can get it to work.I'd say you're right about
the IC I'll leave it for a while anyways. Are you around this evening
in the labs and we can meet up?

Chris

On May 31, 2:16 pm, Duncan Thomas <duncan.tho...@gmail.com> wrote:

Chris Hurley

unread,
May 31, 2012, 9:30:45 AM5/31/12
to 091labs-public
Daniel,

Thanks for getting back so quickly. I don't think I'll need you to
post it but thanks. I'm looking for something you can load up a few
files onto and it'll play them until you turn it off... no need to
record or anything.

One of the guys has an arduino I can mess around with this evening so
I might give that a shot and get back to you if I can't get it to
work.

Thanks a million,
Chris

On May 31, 2:16 pm, Daniel Cussen <d...@post.com> wrote:
> Hi Chris,
>
> I am in Dublin but this might help:http://www.quasarelectronics.com/sound-recorder-modules.htm
>
> It's a sound recording module. No software required. just trigger the
> play button when required. Some have the ability to replay the same
> message forever."loop option"
>
> Warning some are kits. They are UK based.
>
> I own a similar unit. It loops. It has a limit of around 16 seconds.
> It has a very high deafening output. I could post to you if ultra
> urgent. Email me direct.
>
> Dan
>

Duncan Thomas

unread,
May 31, 2012, 9:37:47 AM5/31/12
to 091labs...@googlegroups.com
Have to get back to you later I'm afraid, it depends on how the day
goes. If not, any of the labs regulars will know my pile of stuff in
the corner, there's an arduino on top, just unplug the controller
boards that are wired up to it...

I think there's a beginning arduino book on the shelf that might cover sound...
--
Duncan Thomas

gerryk

unread,
May 31, 2012, 9:39:06 AM5/31/12
to 091labs...@googlegroups.com
It should be possible to drive a speaker/audio amp directly via PCM from the Arduino.
--


Pete

unread,
May 31, 2012, 9:42:30 AM5/31/12
to 091labs...@googlegroups.com
what about hacking a cheap toy that has an audio record/playback circuit in it? I'm sure the pound shop or smyths must have some toy with this functionality.

Chris Hurley

unread,
May 31, 2012, 9:42:36 AM5/31/12
to 091labs-public
Cool, thanks a million. I'll give it a shot later. Good luck with the
rest of your day :)

On May 31, 2:37 pm, Duncan Thomas <duncan.tho...@gmail.com> wrote:
> Have to get back to you later I'm afraid, it depends on how the day
> goes. If not, any of the labs regulars will know my pile of stuff in
> the corner, there's an arduino on top, just unplug the controller
> boards that are wired up to it...
>
> I think there's a beginning arduino book on the shelf that might cover sound...
>

Gerard Ryan

unread,
May 31, 2012, 9:43:04 AM5/31/12
to 091labs...@googlegroups.com
Hi Chris,

If you're looking to buy an arduino in Galway, Maplin had them the last
time I was up there.

--
Gerard Ryan :: ger...@ryan.lt :: http://gerard.ryan.lt/blog
PGP Fingerprint: AA11 A666 C98E B6D8 231C 11ED 6EDC 7E4A 62BC 4A15

Chris Hurley

unread,
May 31, 2012, 9:44:18 AM5/31/12
to 091labs-public
Cool, do you reckon that'd be covered in the beginner's book? Or is it
a bit more complicated?

On May 31, 2:39 pm, gerryk <ger...@gmail.com> wrote:
> It should be possible to drive a speaker/audio amp directly via PCM from
> the Arduino.
>
> On 31 May 2012 14:37, Duncan Thomas <duncan.tho...@gmail.com> wrote:
>
>
>
>
>
>
>
>
>
> > Have to get back to you later I'm afraid, it depends on how the day
> > goes. If not, any of the labs regulars will know my pile of stuff in
> > the corner, there's an arduino on top, just unplug the controller
> > boards that are wired up to it...
>
> > I think there's a beginning arduino book on the shelf that might cover
> > sound...
>

Chris Hurley

unread,
May 31, 2012, 9:46:31 AM5/31/12
to 091labs-public
Really? Do you remember how much they were? Did they have shields as
well?

Chris Hurley

unread,
May 31, 2012, 9:49:13 AM5/31/12
to 091labs-public
I thought about that alright. Well maybe a cheap MP3 player or
something, but I'm not sure if that'd be easier for me or not? How
complicated do you reckon it would be? It seems a bit like cheating
aswell though :)

On May 31, 2:42 pm, Pete <accounts.pe...@gmx.com> wrote:
> what about hacking a cheap toy that has an audio record/playback circuit in it? I'm sure the pound shop or smyths must have some toy with this functionality.
>
>  Duncan Thomas <duncan.tho...@gmail.com> wrote:
>
> Have to get back to you later I'm afraid, it depends on how the day
> goes. If not, any of the labs regulars will know my pile of stuff in
> the corner, there's an arduino on top, just unplug the controller
> boards that are wired up to it...
>
> I think there's a beginning arduino book on the shelf that might cover sound...
>

gerryk

unread,
May 31, 2012, 9:49:21 AM5/31/12
to 091labs...@googlegroups.com
About €40, IIRC. They do haev shields too.
In typical Maplin form, they are grossly overpriced.
--


Domhnall Walsh

unread,
May 31, 2012, 9:55:49 AM5/31/12
to 091labs...@googlegroups.com
£25 for an Uno R3, feck knows what that'll translate to in euros. They have three in stock in Galway.

They also have "wireless" micro SD card shields in stock - £23 (euros? No idea) and there are two in Galway. (The wireless bit is a socket for a Zigbee module, no module included)

Chris Hurley

unread,
May 31, 2012, 9:56:23 AM5/31/12
to 091labs-public
Ah yeah, but you'd expect that! :D I might mess around with Duncan's
tonight, but it's handy to know that they're there if I need them
quick.

Cheers

On May 31, 2:49 pm, gerryk <ger...@gmail.com> wrote:
> About €40, IIRC. They do haev shields too.
> In typical Maplin form, they are grossly overpriced.
>

Duncan Thomas

unread,
May 31, 2012, 10:05:00 AM5/31/12
to 091labs...@googlegroups.com
http://arduino.cc/playground/Code/PCMAudio

http://hlt.media.mit.edu/?p=1963 (Could make the sample longer using
an sd shield)

Jeffrey Roe

unread,
Jun 1, 2012, 4:32:46 AM6/1/12
to 091labs...@googlegroups.com
If you are looking to play audio off an sd with an arduino.

This is the thing for you
http://www.ladyada.net/make/waveshield/

I have one , I havnt used it yet, it still needs two wires to be soldered.


Jeffrey Roe,
www.tog.ie

Barry Coughlan

unread,
Jun 1, 2012, 10:12:16 AM6/1/12
to 091labs-public
Not sure what this project is for, but if it's an audio device
(sampler/drum machine), 22khz mono would still be quite low grade. Not
that I have a better solution!

On Jun 1, 9:32 am, Jeffrey Roe <jefrey...@gmail.com> wrote:
> If you are looking to play audio off an sd with an arduino.
>
> This is the thing for youhttp://www.ladyada.net/make/waveshield/
>
> I have one , I havnt used it yet, it still needs two wires to be soldered.
>
> Jeffrey Roe,www.tog.ie
>
>
>
>
>
>
>
> On Thu, May 31, 2012 at 3:05 PM, Duncan Thomas <duncan.tho...@gmail.com> wrote:
> >http://arduino.cc/playground/Code/PCMAudio
>
> >http://hlt.media.mit.edu/?p=1963(Could make the sample longer using
> > an sd shield)
Reply all
Reply to author
Forward
0 new messages