SD Card
SD Card Module
- Overview
- Commands
- Samples
- On-Module Code
An SD card slot that plugs into any DUELink chain — load a card on a PC, plug it into the module, and access files through the engine's File System library. FAT16 and FAT32 with long-filename support are built in, so reading and writing files works with simple text commands over any supported interface, no filesystem library to integrate.
Common uses: long-running datalogging, configuration files that survive power cycles, asset libraries (images, melodies, scripts), and any project where a host PC would be the awkward way to manage files.
For a smaller form factor, see MicroSD. For larger USB Mass Storage devices, see USB Host.
Key features • SD card slot | Resources 📄 Schematics PID: 0x080002 |
Modules ship without cables to reduce waste. Some specialty boards include a USB cable; for the rest, see Cables to add cables to your order.
Commands this module accepts. See Samples for runnable code in popular host languages.
This module has no commands of its own — file access is handled by the engine's built-in File System library. The same file functions (FsMnt, FsOpen, FsRead, FsWrite, etc.) work whether you have USB Host, SD Card, or MicroSD connected, so the same code works across all DUELink storage modules.
Peek under the hood
The script below is this module's driver — it teaches the hardware how to respond to the commands listed above. It ships pre-loaded from the factory; most users never need to open it.
loading...
Example code that calls this module's commands from popular host languages.
New here? See Get Started to connect a module and send your first command.
- Python
- MicroPython
- JavaScript
- .NET
- Arduino
- MicroBlocks
loading...
loading...
loading...
loading...
loading...
This sample runs in MicroBlocks on a any host board that's connected/tethered to this module, or a chain of modules. This module keeps its official DUELink firmware and module driver and responds to commands from the connected MicroBlocks-running host. New here? See the MicroBlocks page.
There are two ways to use it:
Open the full sample — the complete project (the module's library plus a ready-to-run example) opens directly on the MicroBlocks website.
Add just the libraries to your own project — copy the link, then in your MicroBlocks project click Add Library → Cloud and paste it. This loads this module's libraries into your project without replacing your current work.
Copy Library LinkCode that runs directly on this module's MCU. See how On-Module Code allows modules to run standalone.
- Script
This example runs using the default DUELink Internal Engine using its Scripting Language, and it expects the module's driver to be loaded first, see the Commands Tab.
loading...
Ordering Info
| Product | Part Number | Price |
|---|---|---|
| DUELink SD Card | GDL-STSDCARD-B | $14.95 |