Questions about DS screen and producing sound

Hi everyone,

I am fairly new to the Arduino, I have been exploring lots of basic tasks with it recently and I feel I want to move on to something a bit more advanced.

I have two things I would like to do, firstly, I want to take follow this tutorial: http://kalshagar.wikispaces.com/Arduino+and+a+Nintendo+DS+touch+screen to get a DS screen to work with the Arduino. As far as I can tell the tutorial seems OK but my question is about the Touch Screen connector breakout which can be found from sparkfun here: http://tr.im/FvdT. I am in the UK and I'm not really willing to pay for the postage/wait for the delivery when I can probably find something like it in the UK. So, is this (from eBay) http://tr.im/FvdL the same sort of thing?

Secondly, I want to play sine waves / audio using my Arduino. I found this guide/article: http://www.uchobby.com/index.php/2007/11/14/arduino-sound-part-2-hello-world/ but as far as I can tell it explains how to create square waves and not 'smooth' ones. So my question is what components do I need to be able to play quality sounds so 8-bit or 12-bit something like that?

Thanks

look in the playground for the wav player code. and you can see a sample if you search here for my cylon pumpkin halloween project in the exhibition section.

Arghh, I hate that tutorial...

There is no need for resistors, see my old project: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1243499684 or the original code page (translated): http://translate.google.co.uk/translate?hl=en&sl=auto&tl=en&u=http%3A%2F%2Fmnicolato.altervista.org%2Farduino%2Fardtouch.htm

Mowcius

Arghh, I hate that tutorial...

I know.. Everyone keeps referencing it (and in fact it was the first one I saw before yours, Mowcius), and the resistors aren't needed :P.

Admittedly, this code: http://kousaku-kousaku.blogspot.com/2008/08/arduino_24.html which that tutorial is based on, was done before this code: http://mnicolato.altervista.org/arduino/ardtouch.htm which mine was based on, but it is much improved and does not need pull down resistors...

Mowcius

The wiring isn't much different between them...Why do they use Pull Down Resistors anyways? :-/

I have not looked in detail but in marco nicolato's code he sets the pins as 'ground' (inputs) in some parts of the code therefore getting rid of the need for pull down resistors. I think that is the reason anyway...

Mowcius

Ah alright then. I guess code evolves just like everything else. Everything has to start out basic and inefficient ;).

Yep :D

Mowcius

look in the playground for the wav player code.

do you mean this one: http://www.arduino.cc/playground/Code/PCMAudio? I'm more confused about the hardware needed to get this working? Do I need to just plug in a speaker to two PWM ports?

Arghh, I hate that tutorial... There is no need for resistors, see my old project: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1243499684 or the original code page (translated): http://translate.google.co.uk/translate?hl=en&sl=auto&tl=en&u=http%3A%2F%2Fmnicolato.altervista.org%2Farduino%2Fardtouch.htm

Yeah I found the tutorial a little hard to understand and I got the jist of it but yours seems much easier to follow, thanks!

Thanks for your help!

Yeah I found the tutorial a little hard to understand and I got the jist of it but yours seems much easier to follow, thanks!

Well it wasn't meant to be a tutorial but thanks :D I will stick one on my website once I get round to uploading it...

So my question is what components do I need to be able to play quality sounds so 8-bit or 12-bit something like that?

Stored audio or created-on-the-fly audio (in program composing) For stored audio you probably want to look at this: http://blushingboy.net/p/SDplayWAV/ the SDplayWAV library, only needs an SD connection of some sort (possibly a shield - the libelium one is good)

Mowcius

I will stick one on my website once I get round to uploading it...

When is your website getting up? I'm excited. It sounds like it will be quite informative :P!

Hopefully next week I will get my domain but it will be a few months before it is filled. There will also be a shoppe for purchasing my laser cut acrylic covers among other parts. http://www.flickr.com/photos/mowcius/sets/72157622349824171/

Mowcius

but it will be a few months before it is filled

What do you mean by that? :-?

What do you mean by that?

There is a lot of stuff I want to put on it but I haven’t had the time to write it all yet so I will be doing a bit every so often after the site is aired.
The site may be a litte empty when it goes up… :-/

Mowcius

Oh that's fine :P. I thought you meant you were going to buy the Domain, then wait a few months to host it haha. I think it'll be great to see your site even if it is a little empty. Maybe you could add some functionality for people to submit tutorials, wink wink, (once I become less of a noob that is :P).

Maybe you could add some functionality for people to submit tutorials, wink wink, (once I become less of a noob that is).

Probably just via email but I'm not sure it will be that sort of site. There are a lot of those sites already...

Mowcius

True true, but it would be nice to have that kind of on the side, eh?

Maybe... We'll have to see ;)

Mowcius

Indeed. Make sure you keep us posted on when you put up the site ;)!