Shop OBEX P1 Docs P2 Docs Learn Events
Problem with the SD-Card — Parallax Forums

Problem with the SD-Card

NikosGNikosG Posts: 705
edited 2011-12-05 15:40 in Propeller 1
Dear friends,
I have stuck and i need your help. I started a very cool project “a Propeller Planetarium”.
I execute an algorithm on my propeller QuickStart Board and I’m trying to write the numeric results on a Micro SD-card Adapter #32312 using a Transcend 8GB micro SD card.
I have also build a Real Time Circuit using the DS1302 (this circuit works perfect and I have no problem).

attachment.php?attachmentid=87322&d=1322757061]
I’m trying to create a single file on the SD card and I use the codes for “The FAT16/32 Full File System Driver” from Application Note AN006 Parallax semiconductor documentation but nothing happens. The Error Led on 23 doesn’t help me very much.
Do you know any code that can displays the error messages on serial terminal?


P.s. If overcome this obstacle my project will be finished. But I promise I won’t participate on the contest for the QUADROVERS that started by Matt :)

Comments

  • JLockeJLocke Posts: 354
    edited 2011-12-01 09:06
    I just took a quick look at the adapter, and it doesn't appear to provide any pull-up resistors. I would add 10K pull-ups (to +3.3V) on CS, SCLK, DI, and DO. And probably a 0.1 uF decoupling capacitor from 3.3V to GND.
  • NikosGNikosG Posts: 705
    edited 2011-12-01 09:37
    JLocke wrote: »
    I just took a quick look at the adapter, and it doesn't appear to provide any pull-up resistors. I would add 10K pull-ups (to +3.3V) on CS, SCLK, DI, and DO. And probably a 0.1 uF decoupling capacitor from 3.3V to GND.
    Thank you very much JLocke!
    Do you mean the the following scematics?
    attachment.php?attachmentid=87329&d=1322760775
    I thowght that this wiring was optional.
    I'll try your suggestion as soon as possible! thank you again!
    However if anyone had a different opinion I would appreciate any help.
    701 x 773 - 71K
  • Mike GreenMike Green Posts: 23,101
    edited 2011-12-01 10:16
    "Optional" really means "If it works, then you can probably do without them". In your case, it doesn't seem to work. I would use the "Simple Interface" and use a 0.1uF ceramic capacitor between Vdd and Ground (Vss).

    For debugging, consider using the Parallax Serial Terminal which is included with the Propeller Tool. This is a PC program plus a Spin object that's used in the Propeller Education Kit labs and is available in the Object Exchange as well. There's a sample program template included for use with the QuickStart board.
  • NikosGNikosG Posts: 705
    edited 2011-12-01 11:21
    Mike Green wrote: »
    "Optional" really means "If it works, then you can probably do without them". In your case, it doesn't seem to work. I would use the "Simple Interface" and use a 0.1uF ceramic capacitor between Vdd and Ground (Vss).

    For debugging, consider using the Parallax Serial Terminal which is included with the Propeller Tool. This is a PC program plus a Spin object that's used in the Propeller Education Kit labs and is available in the Object Exchange as well. There's a sample program template included for use with the QuickStart board.

    Thank you very much Mike!
    I'll try your suggestion with the simple interface Immediately!
    Could you tell me please which one of the following circuit with the 0.1uF ceramic capacitor between Vdd and Ground (Vss) is
    valid? option A , option B, both or none of them?
    attachment.php?attachmentid=87330&d=1322767007
    Is the ceramic capacitor wired right?
  • Mike GreenMike Green Posts: 23,101
    edited 2011-12-01 11:38
    Vdd is the +3.3V supply voltage, not the DO logic signal. You want to have the 0.1uF capacitor wired across the supply voltage close to the SD card itself (A-option) so it acts as an energy reservoir for the SD card.
  • NikosGNikosG Posts: 705
    edited 2011-12-01 12:06
    Mike Green wrote: »
    Vdd is the +3.3V supply voltage, not the DO logic signal. You want to have the 0.1uF capacitor wired across the supply voltage close to the SD card itself (A-option) so it acts as an energy reservoir for the SD card.
    Thank you Mike for the circuit suggestion!
    The spin object from Propeller Education Kit for the sirial terminal that you suggested are also awesome!
    I hope to overcome this obstacle in order to present my project on this forum.
    Thank you again for your precious help!
  • BigFootBigFoot Posts: 259
    edited 2011-12-02 19:52
    We have found that a high quality 1 uF monolithic ceramic cap across the SD card is optimal.
  • RaymanRayman Posts: 14,648
    edited 2011-12-03 05:43
    I'm suspicious that something else is wrong... The pullups and capacitor are recomended items, but I think it should work without them...
    I'd double check connections and make sure you don't have DO and DI backwards or something...

    You could also try the FSRW 2.6 code in OBEX...
  • KyeKye Posts: 2,200
    edited 2011-12-03 18:52
    Try a different microSD card.
  • NikosGNikosG Posts: 705
    edited 2011-12-05 15:03
    Dear friends,
    Thank you all of you for your kind attitude to help me!
    JLocke and Mike Green had absolutely right!
    As mr Green mentioned the "simple card interface with the 1uF capacitor was necessary in my case!
    I wired two circuits simple card interfaces. One for the SD card adapter (#32313) and the other for the micro-sd Card Adapter (#32312)
    Here is a photo from my primitive project
    attachment.php?attachmentid=87431&d=1323125447
    Both circuits work perfect!
    I tested both and I created a simple file on the SD card. Here is the result:
    attachment.php?attachmentid=87432&d=1323125467
    However I haven't achieved to write the secquence of crucial data into ot the file yet.
    I am in the process to achieve and this goal!
    1024 x 601 - 80K
    467 x 495 - 41K
  • RaymanRayman Posts: 14,648
    edited 2011-12-05 15:09
    Interesting... I bet it's the long wires that required you to add the capacitor...
  • NikosGNikosG Posts: 705
    edited 2011-12-05 15:40
    Rayman wrote: »
    Interesting... I bet it's the long wires that required you to add the capacitor...
    Long wires caused also a strange behavior when I needed to add an extention on 4x4 Matrix Membrane Keypad (#27899).
    attachment.php?attachmentid=87433&d=1323128184
    I wrote 2 different codes in order to overcome this problem!. One using the keypad without the homemade extention and the other code a litle changed because of the use of the cable extention.
    619 x 409 - 31K
Sign In or Register to comment.