Micro SD card library

@RWD, it already is up and running. See my posted code above! It isn’t in a repository or cleaned up, but it does work just fine. We just want to get it clean and trim.

1 Like

Working on a few things and then I’ll put together the repo for what I have a little bit later. Thanks!

1 Like

Where did you guys get your microSD shield?

They are kinda pricey for something simple :stuck_out_tongue:

Maybe i should do a little crowdfunding with my schoolmates and make a few :smiley:

kennethlimcp, they are expensive for what you get! Mine is an sparkfun unit.

@peekay123 Thanks for the info! That’s like 9.95 and shipping from US to here is another 3.50-10.

I think my local community needs to fabricate more stuff ourselves and lower the cost of being a maker/hobbyists :smile:

Sparkfun is kind of gouging customers with a $10 price tag on that shield… Here’s my “shield” … everyone has headers and SD to microSD adapters. And the Spark Core is 3.3V so you don’t need any level shifters… just throw one of these together they are super easy:
http://www.imgur.com/A3Au1B1

2 Likes

BDub, I like the socket/solder job thing. Very creative! :ok_hand:

OH YEAH @BDub i remember you did it and have it on my list to try it too :smiley:

But i can’t be doing that when i have it as a commercial device in future :stuck_out_tongue:

Thanks, yeah it just happens to fit perfectly enough to work:
http://www.imgur.com/aiMlHky

4 Likes

Genious! so what is the pin layout for this when it comes to connecting it to the Spark Core?

4 Likes

Come one come all… get your red hot SD Card library here:
https://github.com/technobly/SparkCore-SD

FYI: Take a look at the file structure… I really like this method and it’s very similar to drag and drop libraries just like Arduino. This was done by @choosatron. I renamed the way he named the directory from ‘lib’ to ‘libraries’ to be more like Arduino. What do you guys think about this for a standard way of creating libraries for the Spark Core? @zach @zachary @Dave It’s very portable. One thing I would like to solve is how to make running the examples easier. Right now you have to rename files to application.cpp. I even thought of naming them all application.cpp by default and putting them into their own directory with an appropriate name, but that seems kind of worse.

7 Likes

Mentioning @jgoggins so he sees the library standards idea you mentioned

Dave, we should bounce the lib off the Spark Elites for review and comments. Once that’s done, I think it would be a great library.

1 Like

BTW I left a bunch of the things I pruned out as commented areas, just to leave a trail of what I chopped out. If we like what was done, we can clean that all up and remove the extra comments. Or we can think of better ways to do things.

1 Like

@BDub ah, can I say you are a Genius !

WOW, do you have a size of PCB in mind ? Socket Left or Right or Center below Spark Socket ?

In the IDE App-- possible to have a DigitalWrite “HIGH” during the time the card is being written; illuminating a Red LED so no one ejects SD Card during a write cycle ?

Using @BDub linking and pinouts. I added a DC 2.1mm Jack for 5-6vdc external supply; filter capacitor and a LED on D0 for when the SD Card is being written to. Also put external headers for all Spark Core Pins.

Am I missing something ?

http://magicstop.files.wordpress.com/2014/03/sparksd_sch_eagle_cad.jpg

2 Likes

I love to see new things being created so fast with stuff I post. Good job!

A couple thoughts:

Might be good to put the SD Card holder on the USB side so the card holder is not creating a ground plane under the chip antenna. However, it’s probably going to be a tiny bit tight under a micro USB plug, but the Spark Core could be elevated a bit by the female headers so it should be ok then.

Connect the LED to D6 Because it’s closest to the USB side of the Core, and doesn’t have any special functions like I2C or PWM. FYI D2 - D6 are all good choices for general I/O. D7 obviously doubles as the on-board blue LED.

Positive tip of your Jack should connect to VIN, not VDDA.

Mounting holes :smile:

I don’t think it needs a power switch, but maybe someone else feels stronger about it?

Full size SD Card is nice because it allows you to use micro SD or standard SD cards, but certainly many people will think a micro SD holder would make the whole thing more compact.

2 Likes

I vote for Micro SD card only. Simply because it smaller and all the billion phones now use it so its as easy to get as gas and cigarettes.