dreamster / dreamster-board

Specialized Arduino board which is the heart of the Dreamster Robot.
1 stars 0 forks source link

Add sound to dreamster #4

Closed tulku closed 9 years ago

tulku commented 9 years ago

Having sound could be nice. In the current dream-sheild version, can we easily add something to reproduce sounds (like human voice, recorded mp3s)?

Please take into account that we can just hack one or two robots and not add sound to all the robots.

tulku commented 9 years ago

To add audio, we could put an stereo audio codec and an SD reader. We don't need to decode MP3, that circuito wouldn't be so complex nor expensive.

Something like this could be use to read the SD: https://learn.adafruit.com/adafruit-micro-sd-breakout-board-card-tutorial

And something like this to use as Stereo Audio CODEC: http://ar.mouser.com/Search/Refine.aspx?Keyword=WM8731

There is a board from which we can copy schematics and library: https://www.sparkfun.com/products/11290 screenshot from 2015-02-06 22 02 16

The board seems to be based in this project: http://wiki.openmusiclabs.com/wiki/AudioCodecShield

tulku commented 9 years ago

It seems, according to @ernestmc that the output power of this IC will not drive a speaker. We should add some aplification stage to make it louder.

yagui commented 9 years ago

I dont understand what is the goal.

We want to add sound to some boars but not all? It should be in the dreamster shield schematics and we solder it just in a few? or is an extra board that we could add in some prototypes?

We want microphone AND recorded sound? or is one or the other.

If we gonna put an SD, I wouldn't use a codec. I'd just save raw sound, and simplify the circuit.

tulku commented 9 years ago

If we can make it simple and cheap enough it would be nice to put it on every board, if not just a few.

I think that having the footprints in the board and use them or not is better than having an add on board.

I like your idea... Just store the samples in the SD, output PWM, filter and then use a simple amplifier?

Could you add that to the schematics?

yagui commented 9 years ago

if we use a SD card we need 4 pins for spi. Do we have other options?

tulku commented 9 years ago

I don't think so. We do not have those pins?

"Oh no, not again."

On Sat, Feb 14, 2015 at 12:56 PM, Ariel Burman notifications@github.com wrote:

if we use a SD card we need 4 pins for spi. Do we have other options?

— Reply to this email directly or view it on GitHub https://github.com/dreamster/dreamster-board/issues/4#issuecomment-74380240 .

yagui commented 9 years ago

we are one pin short. maybe we can leave the ir sensor's leds always on.

tulku commented 9 years ago

@Martin-MT thought that this was a bad idea, but I don't remember why.

yagui commented 9 years ago

ok, we can share a pin. The leds enable of ir sensors and mosi (cmd) line of the sd. When using the ir sensors the ChipSelect line of the sd should be disabled. When using the SD, the led of ir sensor will flash randomly. If we do not make readings of the sensors while using the SD, I think it will be ok. What do you think?

ernestmc commented 9 years ago

Just one word: BUS. Make the IR sensors and all other sensors work independently with a small dedicated uP that manages the polling on pogrammable intervals or otherwise. Another benefit of this approach is that you can make them separate plugable modules.

yagui commented 9 years ago

It's getting complicated. I think this first version should be simple. What if we forget about the SD card and generate simple sounds like tones?

tulku commented 9 years ago

Ok. I like the idea of sharing the Pin. We will not have an sd reader per robot, so we will be generating tones for most of them. In the ones that we want to have proper sounds, we can share the pin.

Lucas

"Oh no, not again."

On Mon, Feb 16, 2015 at 1:35 PM, Ariel Burman notifications@github.com wrote:

It's getting complicated. I think this first version should be simple. What if we forget about the SD card and generate simple sounds like tones?

— Reply to this email directly or view it on GitHub https://github.com/dreamster/dreamster-board/issues/4#issuecomment-74535698 .