救命,我无法将 microSD 卡连接到 Arduino,也无法连接到 ESP32,
我需要将其连接到 ESP32,我刚刚在 Arduino 上测试了它,看看它是否能正常工作
设备:ESP32 devkit v1、Arduino nano、MicroSD 卡适配器、MicroSD 卡 SanDisk 64gb eXFat
软件:Arduino IDE、SdFat 库(版本:2.2.2)、Sketch 是 sdfat 库的示例 - (sdinfo)
连接至引脚: 适配器引脚 - CS、SCK、MOSI、MISO、VCC、GND
Arduino 至适配器 - (CS, D10) (SCK, D13) (MOSI, D11) (MISO, D12) (VCC, +5V) (GND , GND)
ESP32 至适配器 - (CS, D27) (SCK, D14) (MOSI, D12) (MISO, D13) (VCC, VIN) (GND, GND)
ESP32输出:
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:8896
load:0x40080400,len:5828
entry 0x400806ac
Arduino输出:
SdFat version: 2.2.2
Assuming the SD is the only SPI device.
Edit DISABLE_CS_PIN to disable an SPI device.
Assuming the SD chip select pin is: 10
Edit SD_CS_PIN to change the SD chip select pin.
type any character to start
*这些是端口监视器的完整输出