Cant decide on design route :(

Designing hardware that use VLSI Solution's devices as the system controller for the entire design.

Cant decide on design route :(

Postby russdx » Tue 2011-03-08 17:45

Im designing a audio board for a slot machine that can play two samples at once! (so its gonna need 2xmp3 decoders and ill merge the audio output)

I started drawing up a schematic for a design i thought of. which was
1xAtmel Atmega328 Micro controller (takes serial commands then transfers bytes from the spi ram to each decoder)
2xVS1053
1xSPI dataflash (all mp3 data stored here)

my design has a single usb that i would program the micro controller and download the mp3 data onto the spi dataflash



BUT i came across the VS1000D the other day and this seams to save me ALOT of work as i would not need the micro controller any more + all the firm ware is already written! (i just buy a nandflash + vs1000)

so my second idea is

2xvs1000
2xnandflash
and merge the audio output like i was going to on my original design

only downside i guess is i would have 2 usb sockets? does it really matter?


im gonna build the thing from scratch and get a board made up so i dont want to just buy 2 pre made mp3 players as that is boring! i want to design an build my own custom 2 channel player for my slot machine :)


heres a link to my original schematic (its not finished yet, its missing the audio ouput mixing amp n stuff)
http://russdx.frankster200.com/slot/Job1.PDF



which route do you guys think i should go down?

any ideas or help much appreciated :)
russdx
Senior User
 
Posts: 43
Joined: Mon 2011-02-07 15:21

Re: Cant decide on design route :(

Postby russdx » Wed 2011-03-09 11:41

had a really good look at the vs1000 last night, think i might take this route. compiled a few examples and really like this chip. it even has the regulators build it!

prob go down this route, save me alot of work! :)
russdx
Senior User
 
Posts: 43
Joined: Mon 2011-02-07 15:21

Re: Cant decide on design route :(

Postby pasi » Wed 2011-03-09 21:33

russdx wrote:so my second idea is
2xvs1000
2xnandflash
and merge the audio output like i was going to on my original design


What audio format do you require? If Ogg Vorbis (or PCM WAV) is fine, you could use VS1000 + vs10xx (vs8053?). It will be easier to have only one master.

We use vs1000 as a controller in the VoIP example (vs1000+vs1003) and the HiFi recorder (vs1000+vs1053). You need a bit of code to handle two simultaneous files, but you can then decode and output one file from vs1000 and send the other file to vs10xx.

If the sounds are completely independent, you should also take a look at the vs1000 audio module (products -> vs1000 module). The sounds can be in the module's 2MB SPI FLASH or on uSD card.
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook
User avatar
pasi
VLSI Staff
 
Posts: 697
Joined: Thu 2010-07-15 16:04

Re: Cant decide on design route :(

Postby russdx » Wed 2011-03-09 23:12

a vs1000 + vs1053 would be perfect as i have both breakout boards for these devices
the breakout board i have for the vs1000 is using the nandflash.

iv had a good read through all the source code. but it looks like slot of the methods are pre compiled?. i can only find the header files.

im not quite sure how i would open two files at the same time and send one to the vs1053. do you have some example code for this?

thank you
russdx
Senior User
 
Posts: 43
Joined: Mon 2011-02-07 15:21

Re: Cant decide on design route :(

Postby russdx » Sun 2011-03-13 14:52

i have drawn a quick schematic showing how i wish to connect these two vs devices together (schematic is not finished). i really want to use the nandflash, but this leaves me with very little IO for talking to the vs1053

http://russdx.frankster200.com/slot/Job2.PDF

I have used the powerbutton IO for the reading the vs1053 DREQ. is this ok? once the device is started i read i am ok to use this pin as a normal GPIO.

Another question i have is. this board will be used in a slot machine. i dont want to have to press the power button every time the machine is turned on. can this feature be ignored and the chip automatically turn on? is the power button completely controlled by software?


My program will read the uart for simple commands from another micro controller.
it will then either play 1 file on the vs1000 or open a second file and send the data to the vs1053 for decoding.
both files could be played at the same time!

[example commands]
play sample 3 on channel 0(vs1000 decoder) (sample is 35sec)
5sec delay
play sample 2 on channel 1(vs1053 decoder) (sample is 5sec)


Audio outputs will be merged using the LM386 amp and outputted to a little mono speaker



Do you guys think this will work?

Thanks
russdx
Senior User
 
Posts: 43
Joined: Mon 2011-02-07 15:21

Re: Cant decide on design route :(

Postby russdx » Mon 2011-03-14 2:12

Heres the completed schematic

can any one see any major flaws in it?

am i ok to be using the power button GPIO and the CS2GPIO14 pins?

im under the impression ill be able to control them how i want in the software


any help would be much appreciated it :)
Attachments
Job2.PDF
(269.34 KiB) Downloaded 148 times
russdx
Senior User
 
Posts: 43
Joined: Mon 2011-02-07 15:21

Re: Cant decide on design route :(

Postby Panu » Mon 2011-03-14 13:43

Hi!

I think I just answered this one at:
http://www.vsdsp-forum.com/phpbb/viewtopic.php?t=292&p=927#p927

-Panu
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy
User avatar
Panu
VLSI Staff
 
Posts: 1503
Joined: Tue 2010-06-22 13:43

Re: Cant decide on design route :(

Postby russdx » Mon 2011-03-14 14:13

Hi thanks for the reply

the other thread was about connecting the vs1053 to an amplifier. my question above was about how to connect the vs1000 + vs1053 / can i use the power button as GPIO

any help with that question would be really helpful

thanks :)
russdx
Senior User
 
Posts: 43
Joined: Mon 2011-02-07 15:21

Re: Cant decide on design route :(

Postby Panu » Mon 2011-03-14 14:26

Hi!

Sorry about the confusion. I just came back from a short holiday and there's a ton of mail to answer... :)

You can read the state of the power button from the VS1000 system controller register, so you can use the power button as an input. But if the power button is high for a long amount of time (about 4 to 8 seconds, depending on the CPU frequency), an internal timer will reset the VS1000. (So you can't pull it high by default, only use it as a button, where it's low by default and pushing the button brings it high.

I'll try to see about the rest of your mail soon :)

-Panu
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy
User avatar
Panu
VLSI Staff
 
Posts: 1503
Joined: Tue 2010-06-22 13:43

Re: Cant decide on design route :(

Postby russdx » Mon 2011-03-14 14:33

That would be great :)

Only questions i really need help on are all in this thread now :)


ok i dont think i will use the power button as GPIO then hehe, ill swap the vs1053 DREQ to another pin (not sure which one though :()



EDIT
(i forgot to add the 2 resistors 10k/100k to GPIO0_7, iv added these to my latest schematic)
ahhh
also forgot to add the 1M pull down resistor to GPIO0_6 to make sure it appears as a mass storage device hehe, thats now added as well.

im quite new to electronics and this is all very scary to me!!! :) but very fun :mrgreen:

reading the vs1000 datasheet again. it says i could use the nand flashes GPIO0_6/7 as a input if i pull them high. would i be able to use one of these pins for my DREQ from the vs1053? and check them every so often to check the status of the vs1053 DREQ.



Thanks :)
russdx
Senior User
 
Posts: 43
Joined: Mon 2011-02-07 15:21

Next

Return to Stand-Alone Applications

Who is online

Users browsing this forum: No registered users