Shop OBEX P1 Docs P2 Docs Learn Events
Help!!! Sd adapter!!! - Page 2 — Parallax Forums

Help!!! Sd adapter!!!

2

Comments

  • VaatiVaati Posts: 712
    edited 2009-06-20 18:18
    I don't understand what you mean... "you can also upload very high res photos and copies of exact code and someone may find problem"

    Upload them to the SD, the computer, or the forums...?


    Thanks.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • mctriviamctrivia Posts: 3,772
    edited 2009-06-20 18:20
    forum of course.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    propmod_us and propmod_1x1 are now in stock. Only $30. PCB available for $5

    Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
  • mctriviamctrivia Posts: 3,772
    edited 2009-06-20 18:30
    sorry i ment take a picture of the sd card reader.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    propmod_us and propmod_1x1 are now in stock. Only $30. PCB available for $5

    Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
  • VaatiVaati Posts: 712
    edited 2009-06-20 18:31
    OH!!! Okay.... lol.... just a sec--

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • VaatiVaati Posts: 712
    edited 2009-06-20 18:41
    Here:

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
    3264 x 2448 - 2M
    3264 x 2448 - 2M
    3264 x 2448 - 2M
  • mctriviamctrivia Posts: 3,772
    edited 2009-06-20 18:44
    have you checked there are no shorts? with jumpers soldered in like that it is very easy to do.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    propmod_us and propmod_1x1 are now in stock. Only $30. PCB available for $5

    Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
  • VaatiVaati Posts: 712
    edited 2009-06-20 18:44
    Yep--continuity check on everything to everything... I think it might be good to double check though...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • RaymanRayman Posts: 14,851
    edited 2009-06-20 23:26
    Check continuity to ground on all your pins...

    I think you are close to getting it... Best thing to do is make a wiring diagram of your setup and post that along with the code you're using. That, with the picture should help us get you going...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
  • VaatiVaati Posts: 712
    edited 2009-06-21 00:57
    Okay, will do.

    I just wondered if it might be some sort of problem with the lines connected to the card, since the Card Inserted light is on before the program actually starts and sets the SD pins to input and does its thing. I think that one of those lines is either shorted or not connected or SOMETHING....

    I will get you a wiring diagram and my test results most likey by tomorrow.



    Thanks.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • WinWin Posts: 21
    edited 2009-06-22 11:44
    Allow me to add my frustrations to the thread. I read through this thread and various others. I've tried 3 different SD cards, three different SD card test software modules, checked the wiring numerous times, replaced the wires to be sure, traced the circuit with a voltmeter, and tried all the different versions of sdspi in the fsrw routine...I still get either a -13 or -41 error. I spent over 4 hours yesterday debugging this and am not really any closer to an answer than when I started. The SD cards are not damaged, I can still read and format them in a PC. I double checked the formatting too. I'm using the wiring example from this page
    http://rayslogic.com/propeller/Programming/SD_Card/SD_Card.htm on my demo board. The one thing I'm not sure of is that in the picture, he shows a yellow wire coming off of 5V...it joins with a purple wire, but I can't tell what the purple wire is connected too. I don't think this is important since the SD is using 3.3V and none of the schematics I've found show anything related to using a 5V supply for anything. I built my own SD adapter...just like the one shown in the picture and triple checked it for continuity.

    Any ideas? I would really like to get this working for use with Boebot and Femto BASIC on a Propeller BoeBot I've built.

    Thanks...Win
  • RaymanRayman Posts: 14,851
    edited 2009-06-22 12:53
    The purple wire is my Hack for USB power... I wouldn't recommend that, unless you're very, very brave! (and have a very fine tip soldering iron).

    Getting the SD card to work is often challenging... I've had trouble with my self-made adapters shorting out to metal of the socket...

    Sometimes the error messages can be a good sign, that it's actually reading info from the card, but I don't know about those particular errors...

    The other thing to look out for is that you have an old, regular SD card <=2GB, and not a new SDHC card...

    PS:· I should also take a moment to say that my new PSM (Propeller System Module) could help people out by providing an SD socket with a propeller based card...·

    PSS:· I've found that you don't need the pull-up resistors and I don't use them in my PSM after seeing that most of my electronic gadgets don't use them.·

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm

    Post Edited (Rayman) : 6/22/2009 1:03:17 PM GMT
  • Cluso99Cluso99 Posts: 18,069
    edited 2009-06-22 13:12
    Not sure if this is the problem, but pin 9 on the SD card is actually before pin 1, but recessed further in. So the socket pins are most likely 9,1,2,3,4,5,6,7,8.

    see http://www.interfacebus.com/Secure_Digital_Card_Pinout.html

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Links to other interesting threads:

    · Home of the MultiBladeProps: TriBladeProp, RamBlade, TwinBlade,·SixBlade, website
    · Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
    · Prop Tools under Development or Completed (Index)
    · Emulators: Micros eg Altair, and Terminals eg VT100 (Index) ZiCog (Z80), MoCog (6809)
    · Search the Propeller forums (via Google)
    My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
  • WinWin Posts: 21
    edited 2009-06-22 13:48
    I do have the older SD cards. I'm also pretty sure I have the pin-out correct. I did see that 9 came before 1. I may have to break down and buy a carrier board. Not sure what else to try.

    Win
  • VaatiVaati Posts: 712
    edited 2009-06-22 15:59
    I have checked my module with the Ray's Logic page about four times now, and I know for a fact that my pins are in the right places. I don't know if I used the mount(n) thing though, so I will try that and see if it works....

    Thanks for your help.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2009-06-22 16:11
    prop2sd.jpg

    This may be over simplification, but I've built many SD adapters from this image.

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Visit the: The Propeller Pages @ Warranty Void.
  • RaymanRayman Posts: 14,851
    edited 2009-06-22 16:17
    That's a nice picture OBC! Do you really not connect the second Gnd though?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2009-06-22 16:20
    It's worked a half-dozen times (or more) over here.

    {Although I use pins 16,17,18,19 now most of the time}

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Visit the: The Propeller Pages @ Warranty Void.
  • VaatiVaati Posts: 712
    edited 2009-06-22 16:22
    Wait, so was I supposed to connect the other ground (pin 3 on the SD) to GND? I connected them, so....

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2009-06-22 16:23
    I see I'm not the only "visual learner" here. [noparse]:)[/noparse] Here's to that adapter working Vaati!

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Visit the: The Propeller Pages @ Warranty Void.
  • WinWin Posts: 21
    edited 2009-06-22 16:36
    I built according to the picture above. I also built using pullup resistors as shown here
    http://rayslogic.com/propeller/Programming/SD_Card/SD_Card.htm in the Prop demo board pic. I tried tried both 10k and 22k pullups. No luck. There is something fundamental here that is wrong, but for the life of me I can't see what it is.
  • VaatiVaati Posts: 712
    edited 2009-06-22 16:39
    Same here... I have no clue whatsoever as to what is wrong with my adapter... If I figure it out, you will be able to purchase it from Gadget Gangster... For now, I need to get it working!!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • mctriviamctrivia Posts: 3,772
    edited 2009-06-22 16:43
    I use 10k pull up. but I also use micro sd. My modules will soon be able to be used in gadget gangster designs

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    propmod_us and propmod_1x1 are temporarily out of stock(selling faster then expected). Only $30. PCB available for $5

    Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
  • VaatiVaati Posts: 712
    edited 2009-06-22 16:47
    Hmmmm.... Well, I was wondering if my SD card is the problem... I got the 2GB Elite Pro from Kingston: http://www.amazon.com/Kingston-Secure-Digital-SD-2GB-S/dp/B000E5FOYS/ref=sr_1_31?ie=UTF8&s=electronics&qid=1245689286&sr=1-31

    Is that able to work....?


    Thanks.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • WinWin Posts: 21
    edited 2009-06-22 16:49
    I am using the older SD cards (not HC), but is it possible that some cards are not compatible? I built the Sparkfun GPS logger a couple months ago, and one of my three SD cards did not work with it. They are all formatted the same, they work fine in a PC card adapter and my camera, but one would just not work in the logger. It happened to be the first one I tried, so I wasted a good hour debugging before I tried another card. For this Prop experiment, I tried all three cards and none work. Is it possible the card is at fault?
  • RaymanRayman Posts: 14,851
    edited 2009-06-22 17:29
    Well guys... It sounds like you have the right wiring and the right SD cards... So, maybe it's the code? Try posting your code along with the actual pins numbers you are using...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
  • WinWin Posts: 21
    edited 2009-06-22 17:39
    I'm using the FAT16 code from the object exchange.
    http://obex.parallax.com/objects/search/?q=fsrw
    I tried version 1.6 and 1.7. I'm using pins P0-P3. I was thinking this was the default pin range.
  • VaatiVaati Posts: 712
    edited 2009-06-22 17:42
    I am using PropDOS, so.... I will get an attachment of the EXACT same code I am using...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • RaymanRayman Posts: 14,851
    edited 2009-06-22 17:43
    Tell us exactly which SD pin is connected to which Prop pin...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
  • VaatiVaati Posts: 712
    edited 2009-06-22 17:45
    I have a little diagram of that on the first page of this thread... Just so you know, that is supposed to be an SD card holder, and I have the pins of the SD card itself, not the pin numbers of the SD card. I hope that makes sense...


    Thanks.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • RaymanRayman Posts: 14,851
    edited 2009-06-22 17:48
    Look at OBC's diagram to get the names of the SD card pins and tell us which Prop pin each is connected to... FSRW expects a certain arrangement...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
Sign In or Register to comment.