Houston
Offline
Jr. Member
Karma: 0
Posts: 92
Electronics is just part of life.
|
 |
« on: March 30, 2011, 04:59:35 pm » |
i need a really small one, preferably like 8 pins... but ive looked around alot and i haven't found any... does anyone know what the smallest is?
i dont care about memory or any other pins, all i need to use is the miso mosi sck another pin for ss and tx and rx, please help =)
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Dallas
Offline
Shannon Member
Karma: 120
Posts: 10194
|
 |
« Reply #1 on: March 30, 2011, 05:19:16 pm » |
Generally, as they get smaller the serial port disappears. What baud rate(s) do you plan to use?
|
|
|
|
|
Logged
|
|
|
|
|
"The old Europe"
Offline
Edison Member
Karma: 0
Posts: 2003
Bootloaders suck!
|
 |
« Reply #2 on: March 30, 2011, 05:30:25 pm » |
If you need 'real' SPI (not USI) and a 'real' uart in a smal package, I fear you won't find anything in DIP-8.The smallest ATtiny with a real uart is the 2313/4313. I find using the TQFP-32 ones (e.g. atmega168-au...) very easy to solder.
|
|
|
|
|
Logged
|
• Upload doesn't work? Do a loop-back test. • There's absolutely NO excuse for not having an ISP! • Your AVR needs a brain surgery? Use the online FUSE calculator. • My projects: RGB LED matrix, RGB LED ring, various ATtiny gadgets... • Microsoft is not the answer. It is the question, and the answer is NO!
|
|
|
|
Houston
Offline
Jr. Member
Karma: 0
Posts: 92
Electronics is just part of life.
|
 |
« Reply #3 on: March 30, 2011, 06:35:24 pm » |
well im making an mp3 player, but with other features... i wont have enough pins on one arduino so im using two, i didnt want to use two but i have to... is it possible to send songs like from an sd card to an arduino to another arduino through tx and rx?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 249
Posts: 16571
Available for Design & Build services
|
 |
« Reply #4 on: March 30, 2011, 06:56:01 pm » |
Why not use a part with more pins instead then? Like ATMega644PA in 44 pin TQFP package? http://www.mouser.com/ProductDetail/Atmel/ATMEGA644P-20AU/?qs=sGAEpiMZZMtmW1oUCKTs6oeRoRYfIZTGdata sheet summary http://www.atmel.com/dyn/resources/prod_documents/8011S.pdfPlenty of IO that way, 2 Serial ports if needed, more flash/Ram memory for processing. 12mm square package, 0.8mm spacing on the pins. Build it up, jumper it over to a duemilanove to bootload it via the FTDI chip BIT BANG method, will need to do a little research for the fuse setting. The add pins for the ICSP header- which are the 3 SPI pins you listed + power, ground, reset.
|
|
|
|
« Last Edit: March 30, 2011, 06:58:01 pm by CrossRoads »
|
Logged
|
|
|
|
|
Portugal
Offline
God Member
Karma: 5
Posts: 962
|
 |
« Reply #5 on: March 30, 2011, 07:04:53 pm » |
An Arduino cant decode mp3...
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 249
Posts: 16571
Available for Design & Build services
|
 |
« Reply #6 on: March 30, 2011, 07:10:01 pm » |
Maybe he is wiring it up to one of these http://www.roguerobotics.com/products/electronics/rmp3and wants the extra IO for buttons, screen, etc.
|
|
|
|
|
Logged
|
|
|
|
|
Portugal
Offline
God Member
Karma: 5
Posts: 962
|
 |
« Reply #7 on: March 30, 2011, 07:25:59 pm » |
He is reading mp3's from an sd card with the atmegas so I dont think so.
|
|
|
|
|
Logged
|
|
|
|
|
Houston
Offline
Jr. Member
Karma: 0
Posts: 92
Electronics is just part of life.
|
 |
« Reply #8 on: March 30, 2011, 07:56:31 pm » |
im not... heres what im doing... im using an atmega644p for the main board... its using the sanguino bootloader to interact with the arduino firmware, from there i have hooked up 8 buttons connected to a piso shift register and that to the 644p, i also have a 5 pin monochrome lcd screen hooked up to the 644, i wanted to have a way to read files from an sd card, be able to display the names on the screen and also play them, i bought the sd card breakout board from cutedigi.com http://www.cutedigi.com/product_info.php?products_id=4435&osCsid=c21092b55ad5435c2977d2a70293fe28and a vs1003 mp3 decoder breakout board from cutedigi.com http://www.cutedigi.com/product_info.php?products_id=4343&osCsid=c21092b55ad5435c2977d2a70293fe28and i figured out that im going to need more than one set of spi pins so i decided to add another arduino, i was thinking of reading the sd card data with one, sending the undecoded data to the 644p via serial and from that have the mp3 decoder hooked up and send the raw data to the vs1003 to be decoded and played so i wanna know: - if you can send raw data like that using serial
- if you can read files with unknown names from the sd card using the arduino library
- how to work with the vs1003
- if there is an easier way to do this =)
i appreciate the help and the concern guys! thanks  edit: oh and thanks for suggesting rogue robotics board, but i had seen it before and its a bit too big and too expensive for this project
|
|
|
|
« Last Edit: March 30, 2011, 07:59:39 pm by Leonidas »
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 249
Posts: 16571
Available for Design & Build services
|
 |
« Reply #9 on: March 30, 2011, 08:16:03 pm » |
The way SPI works is that all devices share the SCK, MISO, MOSI pins, and you give each one its own SS pin that you drive LOW to enable comm's with a device & then bring back high when done. I don't think you need 2 device. You will send data to the vs1003 at something like 32Kbytes/seconds (128k*2/8) (128K sampled MP3s, dual stereo, 8 bits/byte), which is well within the SPI data capability, and the display is updated at a comparatively rare rate compared to the sound.
So you'll read a block of bytes from the SD and spit them out to the vs1003.
Search the forum, see if anyone has used it yet. I thought about it last summer, decided it was gonna need more coding than I was capable of at the time.
|
|
|
|
|
Logged
|
|
|
|
|
Houston
Offline
Jr. Member
Karma: 0
Posts: 92
Electronics is just part of life.
|
 |
« Reply #10 on: March 30, 2011, 08:40:22 pm » |
hah great!! =) thanks both of you guys, i guess this is going to be alot easier than i expected! and the sd card question was to read unkown file names, as in search through the sd card, pick the next available file and read it in.
|
|
|
|
|
Logged
|
|
|
|
|
|