SD Card and Ethernet#
Micro-SD卡又称TF卡,是外置大容易存储数据的不二之选。
Ethernet Shield
包含了有线以太网上网模块与SD卡模块两个功能。含网络发送数据的例程代码。
Ethernet W5100 网络扩展板 SD卡扩展 支持MEGA-淘宝网
Micro SD卡模块 SPI接口 TF卡读写卡器
Micro SD卡模块 SPI接口 TF卡读写卡器 带电平转换芯片-淘宝网
原理图#
SD卡模块最核心的功能是提供从单片机到SD卡之间的SPI连接及其外部电路。
SD 卡模块非常适合练习 SPI 通信、Flash 读写操作、和文件系统等重要内容。
Examples#
Guide to Arduino & Secure Digital (SD) Storage. | Arduino Documentation
文档中的代码可以直接运行。通过测试的有 Ehternet-SD shield, SD 模块。
Library#
To use this library:
#include <SPI.h>
#include <SD.h>
Notes on using the Library and various shields.
Examples#
Card Info: Get info about your SD card.
Datalogger: Log data from three analog sensors to an SD card.
Dump File: Read a file from the SD card.
Files: Create and destroy an SD card file.
List Files: Print out the files in a directory on a SD card.
Read Write: Read and write data to and from an SD card.
SD class#
File class#
More Reference#
GitHub - arduino-libraries/SD: SD Library for Arduino
Guide to SD Card Module with Arduino | Random Nerd Tutorials
ESP32: Guide for MicroSD Card Module Arduino | Random Nerd Tutorials