Shop OBEX P1 Docs P2 Docs Learn Events
Trying to debug apparent hardware issue when intefacing microSD adapter to propeller — Parallax Forums

Trying to debug apparent hardware issue when intefacing microSD adapter to propeller

Dan EDan E Posts: 61
edited 2011-01-23 09:04 in Propeller 1
I have been trying for some time now to use code that has been proven to work others, but I have not been able to get it to work for me. The object I am trying to use plays WAV files from an SD card. It was suggested to me to go back and analyze the hardware connections.

I have been able to succesfully use objects for other applications, this tells me the prop is wired fine, but I am unsure as to whether there might be something I am forgetting or unaware of when interfacing the microSD apdapter with the prop.

Just to double check, I completely took everything apart, and rebuilt trying to arrange things in the same way as the propeller education kit schematic. Again, my other objects ran fine. So I still think maybe I might be connecting the microSD adapter incorrectly.

I followed the diagram from the datasheet on the store webpage. Atttached is a clear picture of my connections, some wiring around the eeprom is a little busy, but it clearly shows how am I connecting to the microSD adapter.
prop plus microSD.jpg

Here is the link to the datasheet
http://www.parallax.com/Portals/0/Downloads/docs/prod/acc/32312-microSDCardAdapter-v1.0.pdf

I used a MAX4411ETP stereo amplifier to connect to my speaker, that I've tested just by hooking it up to my ipod and it worked fine, just soft due to the mismatch in impedance from the ipod to my speakers, This wiring is also a little busy due to the lack of space a had on that thin board, but it works properly.
MAX4411ETP.jpg


The only other variable I can think of is maybe theres a larger impedance or signal mismatch between the output, the stereo amplfier chip, and my speakers. I have two 8 ohm speakers, so I placed an 8 ohm resistor in series with each of them.
speakers.jpg


Maybe there is something here that someones sees that is obvious to them, but not to me. I would appreciate any suggestions.

Attached is the code I used, with pin selections.

Thanks,
Dan
1024 x 768 - 95K
1024 x 768 - 67K
1024 x 768 - 81K

Comments

  • SapiehaSapieha Posts: 2,964
    edited 2011-01-23 00:43
    Hi.

    On Yours First PCB I can't see any decoupling capacitor --- That not good.
  • Dr_AculaDr_Acula Posts: 5,484
    edited 2011-01-23 01:32
    Do you have the pullup resistors as per the schematic you posted? Maybe they are under the board (maybe the capacitor is under the board too). I like to use both a 0.1uF and a 22uF capacitor, in parallel and as close to the sd card as practical.
  • Dan EDan E Posts: 61
    edited 2011-01-23 09:04
    I believe the pull-up resistors in the schematic are surface mount resistors already on the adapter itself connection the actual SD card to the I/O pins of the adapter.

    But I do not have decoupling capacitors coming from the SD adapter. Where do they attach to the SD card? Do they change its operation?

    It looks like I forget to attach the object files I used in my first post, here they are.

    !WAV Player - Archive [Date 2011.01.23 Time 02.38].zip

    I noticed there are special circuits associated with the objects I used from the object exchange for this application. I think this may also be what I am lacking. Since these objects are used for multiple applications, I am confused about the correct pin attachments.

    For the DS1307_RTCEngine object, do the DS1307 SDA and SCL pins refer to pins 28 and 29 on the prop? Also are the Data and Clock pins assigned to the same pins that will be used with the SD card?
    DS1307_RTCEngine circuit.PNG


    For the PCM2.1_DACEngine object, 100 ohm resistors are used with the ouput signals, rather than the 10K resistors that are used in the Demo Board schematic. Could this cause the soft distortion I heard?
    PCM2.1_DACEngine converter circuit.PNG

    The Demo Board schematic is in the link below.
    http://www.parallax.com/Portals/0/Downloads/docs/prod/prop/PropellerDemoBd-RevG-Schem.pdf

    Lastly, in the SD3.01_FATEngine there are several circuits, I asume each is for one of the many applications the object does, but none of the pin selections correspond to the microSD adapter pin selections from the datasheet (link is above in my first post), so I am not sure which is the approriate one to use.

    If anyone has used the schematics in any of these objects, I would appreciate some help deciphering.

    Thanks for the feedback,
    Dan
Sign In or Register to comment.