SD Card Shield
#1
Posted 23 August 2010 - 03:17 AM
I got the SD Card Shield from MakerShed and I'm just trying to do some simple file IO.
When I try to enumerate volumes and file systems from Microsoft.SPOT.IO it doesn't find anything. I'm assuming this is because Netduino is missing a driver. I started looking at the Arduino Fat code to see about porting it, but I'm really not sure where to start. Honestly I'm not even sure how this shield works, the documentation for it leaves quite a bit to be desired. "You can select 3.3V or IO port power supply with the switch on board in order to work with different library."
Can anyone point me in the direction of some good resources? Am I just making this too hard (hopefully)?
#2
Posted 23 August 2010 - 03:28 AM
#3
Posted 23 August 2010 - 03:32 AM
Now, that said, you could try to port the Arduino's driver code over to NETMF. That would be a lot easier, but I don't think you will be able to use it with NETMF's native storage options.
EDIT: Dang, you beat me to it, Chris
#4
Posted 23 August 2010 - 03:36 AM
EDIT: Dang, you beat me to it, Chris
Phew, finally...
Actually, peer support is fantastic. I'll slow down if I need to... Much appreciated!
#5
Posted 23 August 2010 - 04:06 AM
It sounds like I'd better just chill out and wait for the experts.
As for if it's 3.3/5v I'm not really sure. Like I said the documentation is somewhat lacking. There is a switch on it which says I can select 3.3 or IO port power, so it sounds like it's 3.3.
#6
Posted 23 August 2010 - 03:33 PM
#7
Posted 23 August 2010 - 03:37 PM
Nevermind I think I understand what they're saying now. You can power it either by the 3.3 (on if the netduino is on) or by turning on the GPIO on Pin 9. The communication is done via serial then right?
Yes. The communication is done via SPI (pins D11-D13, and one of the other pins as a "chip select"). It's a serial interface very similar to a serial port (UART) but instead of having a baud rate the Netduino's clock line "clocks" out the communication with the SD card.
Most SD cards support "SPI mode"--which is what you'll be using. I'd stick with <=2GB cards for the time being.
Chris
#8
Posted 23 August 2010 - 03:58 PM
#9
Posted 02 September 2010 - 06:21 PM
#10
Posted 02 September 2010 - 06:37 PM
#11
Posted 03 September 2010 - 03:29 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users