|
This module can be used for ANY microcontroller. A bidirectional levelshifter and tristate outputs will allow to run a SD card on a SPI bus without having trouble with other SPI devices. A detailied description about the need of bidirectional level shifter and tristate outputs will follow in the next few days. We already included some pictures below but they are still in German. But you may see the difference between resistor and / or transistor solutions against our bidirectional level shifter with tristate outputs. This module comes with software examples for Bascom basic and a detailed documentation. Software for C is available in the internet. We will give you some links to several projects where you may adapt the software to your needs. Use this card for:
- writing statistical data or protocoll data to a SD card and read them out with your PC (e.g. MS Excel)
- save lots of graphics to the SD card and load / show them with our graphic display modules
Until now, ANY SD card worked ! The current list of reported card is available here. Please send in your feedback of your used card too, so this list can grow.
Technical data: Voltage supply: Vcc: allowed from 3,0 Volt up to 5,5 Volt Voltage microcontroller signals: 3,0 Volt up to 5,5 Volt Current need (without SD Karte): 150µA; 0,03µA in 3-State-mode. The current of the SD card is depending on the SD card (can be up to 100mA shortly) Level shifting: from microcontroller (e.g. 5V) to 3V towards the SD card (DI, Clock, CS ) Level shifting: DO from 3V (SD-Card) towards microcontroller (e.g. 5V) Maximal data speed: usually 8 Mbps are possible Lines for card detection and write protection are available and can be checked by the micro controller 4 x Tristate-lines (= all lines can be disconnected from the SPI bus) size: 56 x 32 mm; 6mm height (can be reduced to 44 x 32 mm by removing the part with the mounting holes). Delivery: completely soldered module (you only solder the cables for the connection with your microcontroller) Optional: 2x6er female connector if you like to have an easy connection with your module (unfortunately these 2x6er female connectors are hard to get and expensive)Optional: price reduction if you need a module without 3V voltage regulator (you need to feed 3V then from your external device) Manual how to use, Tips, software examples by E-Mail There is no SD card included with this offer. The following is still in German but will be adapted shortly. Sorry for the inconvinience. Scroll down to the pictures, you will at least see the basic content of the text: resistors are not good for level shifting fast signals and also regular transitors are not good for fast signals.
Tristate Die Ausführung mit Tristate Eingängen/Ausgängen erlaubt es, über einen weiteren Port des Mikrocontrollers dass gesamte SD-Kartenmodul vom System abzuklemmen. Ansonsten bliebe nämlich u.U. die Datenleitung der SD-Karte nach einer Nutzung auf "High" und blockiert somit sämtliche anderen Systeme am SPI-Bus. Sie sehen, wir haben an alles gedacht. Warum gibt es diese Karte:
- Eine SD Karte kann nicht mit 5 Volt betrieben werden. Sie benötigt 3 Volt Signale und eine Spannungsversorgung von 3 Volt
- Der direkte Anschluss einer SD Karte an einen 5V Mikrocontroller ist also nicht möglich
- Tristate Ausgänge sind die perfekte Möglichkeit, mehrere Geräte an einem SPI Bus zu betreiben. Ohne Tristate-Ausgänge beeinflussen sich die Geräte gegenseitig mit dem Ergebnis, dass meist alles ausfällt.
- Die Pegelwandlung mittels Widerstandsnetzwerken oder Transistoren führt häufig zu Problemen (siehe die Abbildungen unten) - eine professionelle Lösung kann nur mit einem bidirektionalen Pegelwandler für hochfrequente Signale aufgebaut werden.
Häufige Fragen: Warum muss der Pegelwandler bidirektional sein? Reicht nicht die Wandlung in nur eine Richtung (5V -> 3V), denn umgekehrt erkennt der Mikrocontroller doch die 3 Volt Signale der SD-Karte als High? Antwort: Das ist zwar einerseits richtig - aber: Die genutzte SPI Schnittstelle ist ein Bus-System, d.h. die Leitungen Miso, Mosi, Clock werden auch von anderen Geräten mit SPI-Schnittstelle genutzt (u.U. ISP-Programmieradapter, Display, Touch Screens etc.). Wenn nun zwischen einem 5V Mikrocontroller und diesen Geräten ein Datenverkehr stattfindet, dann haben Sie auf der Miso-Leitung auf jeden Fall einen 5 Volt Pegel. Da die Data-Out-Leitung der SD Karte dann aber direkt mit dem Miso-Leitung (SPI Schnittstelle) des Mikrocontrollers verbunden wäre, würden also diese 5 Volt an der SD Karten anliegen und diese zerstören. Daher nutzen wir einen bidirektionalen Pegelwandler, der die Spannung zwischen einem 3 Volt und einem 5 Volt Gerät in die gewünschte Spannung umsetzt. Warum brauche ich überhaupt einen Pegelwandler, im Internet gibt es auch Schaltungen mit Transistoren oder Widerständen? Anwort: Das ist Bastelei. Wie Sie an den vielen Fragen in diversen Foren auch erkennen können, funktioniert dies eben häufig nicht oder die SD Karte wird zerstört. Wir haben einmal die beiden gängigen Alternativen Widerstandsnetzwerk und Transistoren aufgebaut und nur Probleme beim Arbeiten mit der SD-Karte gehabt.
(Nachtrag: Mittlerweile haben einige User sich gemeldet: Karten, die vormals bei Pegelwandlern mit Widerständen, bzw. Transistoren nicht arbeiteten, funktionieren nun mit dem Modul einwandfrei.) Der Anschluss an das Oszilloskop zeigt dann auch den Grund:  
|