treflip wrote:I did like you said and ran a few sketches with my SD card on another setup to test it. It works well but I noticed in the code this comment:
// On the Ethernet Shield, CS is pin 4. It's set as an output by default.
// Note that even if it's not used as the CS pin, the hardware SS pin
// (10 on most Arduino boards, 53 on the Mega) must be left as an output
// or the SD library functions will not work.
Hello treflip, thanks for your reply.
I do not seem to understand what do you mean when you say " ran a few sketches with my SD card on another setup to test it".
I ran a few example sketches of the SDfat arduino library just to see if my SD card would work... and it worked, it works with the SDfat library, and I can also stream RAW audio files from it (as you can see on my gamebuino clone v1.0) using code from gamebuino wiki, only thing that does not work with my SD card is the gamebuino bootloader... and I have no explanation for that
jonnection wrote:1) Arduino Nano and Arduino Uno have identical pinouts, EXCEPT Nano also has pins A6 and A7 (which are not real pins = cant be used for digital)
2) AVR ATMega328U chip pin PB2 = Gamebuino pin 14 = Arduino Uno board pin D10 = Arduino Nano board pin D10. No difference there with regards to CS function.
Hi jonnection.
Indeed SD ENABLE = CHIP SELECT = CS =ARDUINO DIGITAL PIN 10 = D10 = SS = PB2 = PORTB.2
that means Arduino Uno pinout = Arduino Nano pinout = ATmega 328 pinout.....except ATmega 328 in DIP package is different than ATmega 328 in SMD package.
SMD ATmega 328 has 2 extra pins: ADC6 (A6) and ADC7 (A7), which can be used (as you said) only as analog inputs, in gamebuino schematics A6 and A7 are used for battery monitor and LDR (light dependent resistor (for automatic backlight))
About the chip select pin, on gamebuino CS (chip select or SD enable) is digital pin 10 = the hardware SS pin
So when I was trying out the SDfat examples I only had to set the chip select pin to 10 (if it was not set by default)
treflip wrote: pin 10 on the nano is BTN 2 an INPUT, so that might be where we are getting hung up. If you have some free time check it out.
???pin 10 is BTN2 on Nano....an INPUT....what do you mean, what button, only button on Arduino nano v3.0 is the RESET button, and it is used to reset the ATmega 328 by setting the RESET pin to GND.
If you meant gamebuino BTN2, it is on PIND.6 = arduino pin D6??