1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

SDcard and Oshonsoft

Discussion in 'Oshonsoft' started by gold94, Jan 10, 2015.

  1. gold94

    gold94 New Member

    Joined:
    Jun 10, 2014
    Messages:
    11
    Likes:
    0
    Location:
    Paris
    who tested this circuit?
    http://www.oshonsoft.com/sdcard.php
    To connect an SD card has a 16f876
    because I did not manage to make it work, the scheme is correct
    to the SD card (tested with Arduino), this just may be the
    code.

    thank you

    Thierry
     
  2. Ian Rogers

    Ian Rogers Super Moderator Most Helpful Member

    Joined:
    Mar 28, 2011
    Messages:
    9,304
    Likes:
    914
    Location:
    Rochdale UK
    ONLINE
    I have only seen it working with a full sized 1G card.... Remember that an SD card pulls quite a lot of current and only works at 3v so make sure you have a 0.1uf cap across the power rail ( some suggest bigger 1uF~4.7uf ) and allow the card to suck up some amps...
     
  3. ericgibbs

    ericgibbs Well-Known Member Most Helpful Member

    Joined:
    Jan 4, 2007
    Messages:
    21,233
    Likes:
    645
    Location:
    Ex Yorks' Hants UK
    hi g94,
    I guess you are powering the PIC , LCD from +5V and the SD Card from 3.3V , also using the resistive voltage dividers between the PIC and SD lines.??

    E

    EDIT:

    Do you get either of theses images of the LCD.?
     

    Attached Files:

    Last edited: Jan 10, 2015
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. gold94

    gold94 New Member

    Joined:
    Jun 10, 2014
    Messages:
    11
    Likes:
    0
    Location:
    Paris

    ericgibbs and ian rogers thank

    I use the 3.3 v to the SD card and 5 v for 16f876 with divider bridges SDO SDI, I just put a 4.7 uf, and I tested with several 256meg SD card
    1 g and 8g, some pictures. 20150110_163408_resized.jpg 20150110_163424_resized.jpg 20150110_163435_resized_1.jpg
     
  6. gold94

    gold94 New Member

    Joined:
    Jun 10, 2014
    Messages:
    11
    Likes:
    0
    Location:
    Paris
    here is my LCD

    20150110_165532_resized.jpg 20150110_165535_resized.jpg 20150110_165538_resized.jpg

    but it does not have the expected result !! the display should send me the type of card (SDHC, SD ..) and the reading writing test is 0 ..

    Thierry
     
  7. ericgibbs

    ericgibbs Well-Known Member Most Helpful Member

    Joined:
    Jan 4, 2007
    Messages:
    21,233
    Likes:
    645
    Location:
    Ex Yorks' Hants UK
  8. gold94

    gold94 New Member

    Joined:
    Jun 10, 2014
    Messages:
    11
    Likes:
    0
    Location:
    Paris
    hello

    I have a special license pack1 functions.
    with 18F4550 the result is the same,
    the 18F4550 SPI protocol SDO = RC7, SDI = RB0, RB1 = CLK, CS = RA5
    but may use other pin?
    I just did the test with external 3.3V supply, failure ...

    Thierry
     
  9. gold94

    gold94 New Member

    Joined:
    Jun 10, 2014
    Messages:
    11
    Likes:
    0
    Location:
    Paris
    Hello
    I found ...... you just reverse SDO and SDI
    RB0 = SDO, SDI = RC7, CLK = RB1, CS = RA5

    thank you

    Thierry
     
  10. ericgibbs

    ericgibbs Well-Known Member Most Helpful Member

    Joined:
    Jan 4, 2007
    Messages:
    21,233
    Likes:
    645
    Location:
    Ex Yorks' Hants UK
    hi g94,
    Was the crossed pair due to a program or circuit diagram error or was it your connection.?

    If its an Oshonsoft error you should send Vladimir a Bug report.

    E
     
  11. gold94

    gold94 New Member

    Joined:
    Jun 10, 2014
    Messages:
    11
    Likes:
    0
    Location:
    Paris
    the code is correct and the scheme too.
    the problem we have to look at the scheme not to be mistaken.:wideyed:

    Thank you all
    and soon
    • ;)

    Thierry
     
  12. ericgibbs

    ericgibbs Well-Known Member Most Helpful Member

    Joined:
    Jan 4, 2007
    Messages:
    21,233
    Likes:
    645
    Location:
    Ex Yorks' Hants UK
  13. MauricioG

    MauricioG New Member

    Joined:
    Jan 2, 2015
    Messages:
    1
    Likes:
    0
    Hi all,
    I managed to make the examples work, except for FAT16. With raw read / write and FAT32 everything work as expected (with the Vladimir´s wiring) but...for fat32 to work, I had to format the SD card with a formatting utility from SD; just formatting from the PC with windows utilities just didn´t go for me.
    regards
    Mauricio
     
  14. ericgibbs

    ericgibbs Well-Known Member Most Helpful Member

    Joined:
    Jan 4, 2007
    Messages:
    21,233
    Likes:
    645
    Location:
    Ex Yorks' Hants UK
    hi M,
    Thanks for the feedback.

    I have ordered a few SD development toys so that I can try out Oshonsoft's SD

    E
     
  15. gold94

    gold94 New Member

    Joined:
    Jun 10, 2014
    Messages:
    11
    Likes:
    0
    Location:
    Paris
  16. moty22

    moty22 Member

    Joined:
    Jan 31, 2015
    Messages:
    171
    Likes:
    18
    Bonjour Thierry.
    Look at my website you may get some more clues how to use SD with PIC.
    http://www.moty22.co.uk/sd_bmp.php
     
    Last edited: Feb 26, 2015

Share This Page