当前位置:网站首页>esp8266使用TF卡并读写数据(基于arduino)
esp8266使用TF卡并读写数据(基于arduino)
2022-07-07 06:44:00 【Allen953】
介绍
主要用到下面的模块,一个

TF内存卡引脚
这张图片主要告诉我们TF卡的各个引脚是什么作用,因为我们是用的spi接口,所以就看最后一列就可以了。

跑例程
正常情况下,一旦你的arduino IDE里面安装了esp8266的硬件支持,那么就会自动安装上适配esp8266的SD卡库,所以我们是不需要安装库的。
我们打开files这个例程,然后编译。

这个files例程主要是做什么呢?
就是在内存卡上创建一个example.txt的文件,然后再删掉。
接线
编译好了之后,我们开始接线
如果直接跑我们上面编译好的例程,而不对程序做任何修改,那么像下面这样接线就可以了。

接完线之后,就可以直接给板子上电,然后从打开串口,看打印的日志是否正常。
可以看到,内存卡初始化成功,并且成功在上面创建了文件,然后又删掉了文件。

边栏推荐
- Netease Cloud Wechat applet
- Information Security Experiment 1: implementation of DES encryption algorithm
- Data association between two interfaces of postman
- JMeter JDBC batch references data as input parameters (the simplest method for the whole website)
- C语言指针(下篇)
- scrapy爬虫mysql,Django等
- Idea development environment installation
- Do you have any certificates with high gold content?
- Some pit avoidance guidelines for using Huawei ECS
- What is the use of PMP certificate?
猜你喜欢

C language pointer (special article)

STM32 serial port register library function configuration method

網易雲微信小程序

数据建模中利用3σ剔除异常值进行数据清洗

Entity of cesium data visualization (Part 1)

二叉树高频题型

Netease cloud wechat applet

Hard core sharing: a common toolkit for hardware engineers

PMP examination experience sharing

Jmeters use
随机推荐
Two schemes of unit test
Some pit avoidance guidelines for using Huawei ECS
Redis common commands
2020 year end summary
What is the rating of Huishang futures company? Is it safe to open an account? I want to open an account, OK?
[chaosblade: node CPU load, node network delay, node network packet loss, node domain name access exception]
Expérience de port série - simple réception et réception de données
stm32和电机开发(从单机版到网络化)
C语言指针(下篇)
信息安全实验四:Ip包监视程序实现
STM32 and motor development (from stand-alone version to Networking)
Locust performance test 5 (analysis)
Postman interface test (II. Set global variables \ sets)
How long does the PMP usually need to prepare for the exam in advance?
【Istio Network CRD VirtualService、Envoyfilter】
Windows starts redis service
C语言指针(中篇)
Information Security Experiment 2: using x-scanner scanning tool
Pytest+request+allure+excel interface automatic construction from 0 to 1 [familiar with framework structure]
MySql数据库-事务-学习笔记