Difference between revisions of "SD CARD X49"

From Land Boards Wiki
Jump to navigation Jump to search
 
(49 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
[[File:tindie-mediums.png|link=https://www.tindie.com/products/land_boards/sd-card-adapter-sd_card_x49/]]
 +
 +
[[File:SDCARDX49_P935_cropped-512px.jpg]]
 +
 
== Features ==
 
== Features ==
 +
 +
* SD or SDHC card adapter
 +
* 5V to 3.3V regulator
 +
* 3.3V to 5V [https://www.ti.com/lit/ds/symlink/txs0104e.pdf TXS0104E] level shifter
 +
* Activity LED
 +
* 49 x 49 mm ODAS foprm factor
 +
* (4) 4-40 mounting holes
 +
 +
== Power Options ==
 +
 +
'''Important to properly set up the power option'''
 +
 +
* 3.3V Host
 +
** Wire power to 3.3V position
 +
** Install Jumper J3
 +
** Leave 5V in pin open
 +
* 5V Host
 +
** Wire Power to 5V
 +
** Leave 3.3V open
 +
** Remove Jumper J3
 +
 +
== J1 pinout ==
 +
 +
[[FILE:SD_CARD_X49_J1.PNG]]
 +
 +
# GND
 +
# MISO
 +
# SCLK
 +
# MOSI
 +
# SPI_SS
 +
# CARD_DETECT (no pull-up)
 +
# 3.3V in/out
 +
# 5V in (for 5V host only)
 +
 +
== Schematic ==
 +
 +
* [http://land-boards.com/SD_CARD_X49/SD_CARD_X49_REV1_SCHEMATIC.pdf Rev 1 Schematic]
 +
* [http://land-boards.com/SD_CARD_X49/SD_CARD_X49_REV2_SCHEMATIC.pdf Rev 2 Schematic]
 +
 +
== Lock/Unlock ==
 +
 +
* Set switch to not locked position
 +
 +
[[file:sd-card-not-showing-files-6.jpg]]
 +
 +
== Used with Z80_PSOC card ==
 +
 +
* PSOC Pins
 +
** MISO - PSOC pin 76
 +
** MOSI - PSOC pin 77
 +
** SCLK - PSOC pin 78
 +
** SPI_SS - PSOC pin 79
 +
 +
=== Z80_PSOC - H3 Connector ===
 +
 +
# GND
 +
# +5V
 +
# SPI_SS - PSOC pin 79
 +
# SCLK - PSOC pin 78
 +
# MOSI - PSOC pin 77
 +
# MISO - PSOC pin 76
 +
 +
== Testing ==
 +
 +
* Testing is done using an Arduino uno at 5V
 +
 +
[[FILE:SD_CARD_X49-TESTING-P18101-720px.jpg]]
 +
 +
=== Hardware ===
 +
 +
* Unit Under Test (UUT)
 +
** NO5V jumper not installed
 +
* Arduino UNO card
 +
* FAT32 card with files on it
 +
* [[Arduino Sensor Shield]]
 +
** GVS connections
 +
 +
[[file:HCARDU0015_Diagram.png]]
 +
 +
==== Test Cabling ====
 +
 +
* USB cable to PC
 +
* Cable from Arduino Sensor Shield to UUT
 +
** 2x3 Dupont to D13/D12 and D11/D10
 +
** 8 pin Dupont to SD card
 +
 +
{| class="wikitable"
 +
! Signal Name
 +
! SD Card pin
 +
! Color
 +
! Sensor Shield pin
 +
|-
 +
| GND
 +
| 1
 +
| Green
 +
| D13 GND
 +
|-
 +
| MISO
 +
| 2
 +
| Violet
 +
| D12
 +
|-
 +
| SCLK
 +
| 3
 +
| Grey
 +
| D13
 +
|-
 +
| MOSI
 +
| 4
 +
| Brown
 +
| D11
 +
|-
 +
| SPI_SS
 +
| 5
 +
| Yellow
 +
| D10
 +
|-
 +
| CARD_DETECT (no pull-up)
 +
| 6
 +
| None
 +
| N/A
 +
|-
 +
| 3.3V in/out
 +
| 7
 +
| None
 +
| N/A
 +
|-
 +
| 5V in (for 5V host only)
 +
| 8
 +
| Orange
 +
| D13 VCC
 +
|-
 +
|}
 +
 +
=== Debugging ===
 +
 +
* Error message
 +
<pre>
 +
Initializing SD card...initialization failed. Things to check:
 +
1. is a card inserted?
 +
2. is your wiring correct?
 +
3. did you change the chipSelect pin to match your shield or module?
 +
Note: press reset or reopen this serial monitor after fixing your issue!
 +
</pre>
 +
* If test fails verify SD card is good in SD card adapter on PC
 +
 +
=== Software ===
 +
 +
* [https://github.com/land-boards/lb-Arduino-Code/tree/master/LBCards/SDCard/SD_Dir Arduino Sketch used to test cards]
 +
** [https://www.arduino.cc/en/Tutorial/LibraryExamples/Listfiles Using the SD library to print the directory of files on SD card] - Arduino code
 +
 +
=== Running ===
 +
 +
* SD card with something on it
 +
* Run Serial Monitor
 +
** 9600 baud
 +
* Prints directory to monitor
 +
<pre>
 +
Initializing SD card...initialization done.
 +
SYSTEM~1/
 +
        WPSETT~1.DAT            12
 +
        INDEXE~1                76
 +
README.TXT              1372
 +
done!
 +
</pre>
 +
* Reset button on sensor shield to re-run
 +
 +
== Mounting ==
 +
 +
=== Card Mounted in a Chassis ===
 +
 +
[[file:X49_Mounted_In_Chassis_720px.jpg]]
 +
 +
[[file:X49_Mounted_In_Chassis_P742_720px.jpg]]
 +
 +
=== Mounted on ODAS Carrier Card ===
 +
 +
* [[CARRIER95TO49MM]]
 +
 +
[[File:SDCARDX49_P929_CROPPED-720PX.jpg]]
 +
 +
== Assembly Sheet ==
  
 
[[SD_CARD_X49 Assembly Sheet]]
 
[[SD_CARD_X49 Assembly Sheet]]

Latest revision as of 14:12, 31 March 2023

Tindie-mediums.png

SDCARDX49 P935 cropped-512px.jpg

Features

  • SD or SDHC card adapter
  • 5V to 3.3V regulator
  • 3.3V to 5V TXS0104E level shifter
  • Activity LED
  • 49 x 49 mm ODAS foprm factor
  • (4) 4-40 mounting holes

Power Options

Important to properly set up the power option

  • 3.3V Host
    • Wire power to 3.3V position
    • Install Jumper J3
    • Leave 5V in pin open
  • 5V Host
    • Wire Power to 5V
    • Leave 3.3V open
    • Remove Jumper J3

J1 pinout

SD CARD X49 J1.PNG

  1. GND
  2. MISO
  3. SCLK
  4. MOSI
  5. SPI_SS
  6. CARD_DETECT (no pull-up)
  7. 3.3V in/out
  8. 5V in (for 5V host only)

Schematic

Lock/Unlock

  • Set switch to not locked position

Sd-card-not-showing-files-6.jpg

Used with Z80_PSOC card

  • PSOC Pins
    • MISO - PSOC pin 76
    • MOSI - PSOC pin 77
    • SCLK - PSOC pin 78
    • SPI_SS - PSOC pin 79

Z80_PSOC - H3 Connector

  1. GND
  2. +5V
  3. SPI_SS - PSOC pin 79
  4. SCLK - PSOC pin 78
  5. MOSI - PSOC pin 77
  6. MISO - PSOC pin 76

Testing

  • Testing is done using an Arduino uno at 5V

SD CARD X49-TESTING-P18101-720px.jpg

Hardware

  • Unit Under Test (UUT)
    • NO5V jumper not installed
  • Arduino UNO card
  • FAT32 card with files on it
  • Arduino Sensor Shield
    • GVS connections

HCARDU0015 Diagram.png

Test Cabling

  • USB cable to PC
  • Cable from Arduino Sensor Shield to UUT
    • 2x3 Dupont to D13/D12 and D11/D10
    • 8 pin Dupont to SD card
Signal Name SD Card pin Color Sensor Shield pin
GND 1 Green D13 GND
MISO 2 Violet D12
SCLK 3 Grey D13
MOSI 4 Brown D11
SPI_SS 5 Yellow D10
CARD_DETECT (no pull-up) 6 None N/A
3.3V in/out 7 None N/A
5V in (for 5V host only) 8 Orange D13 VCC

Debugging

  • Error message
Initializing SD card...initialization failed. Things to check:
1. is a card inserted?
2. is your wiring correct?
3. did you change the chipSelect pin to match your shield or module?
Note: press reset or reopen this serial monitor after fixing your issue!
  • If test fails verify SD card is good in SD card adapter on PC

Software

Running

  • SD card with something on it
  • Run Serial Monitor
    • 9600 baud
  • Prints directory to monitor
Initializing SD card...initialization done.
SYSTEM~1/
        WPSETT~1.DAT            12
        INDEXE~1                76
README.TXT              1372
done!
  • Reset button on sensor shield to re-run

Mounting

Card Mounted in a Chassis

X49 Mounted In Chassis 720px.jpg

X49 Mounted In Chassis P742 720px.jpg

Mounted on ODAS Carrier Card

SDCARDX49 P929 CROPPED-720PX.jpg

Assembly Sheet

SD_CARD_X49 Assembly Sheet