当前位置:网站首页>Esp8266 uses TF card and reads and writes data (based on Arduino)

Esp8266 uses TF card and reads and writes data (based on Arduino)

2022-07-07 09:30:00 Allen953

Introduce  

The following modules are mainly used , One

TF Memory card pin

This picture mainly tells us TF What is the function of each pin of the card , Because we use spi Interface , So just look at the last column .

Run routine

Under normal circumstances , Once your arduino IDE It's equipped with esp8266 Hardware support for , Then the adapter will be automatically installed esp8266 Of SD Kaku , So we don't need to install the Library . 

We turn on files This routine , Then compile .

This files What are routines mainly for ?

Is to create one on the memory card example.txt The file of , And then delete .

connection

After compiling it , Let's start wiring

If you directly run the routines compiled above , Without making any changes to the program , Then it's OK to connect like this .

  After connecting the line , You can directly power on the board , Then open the serial port from , Check whether the printed log is normal .

You can see , Memory card initialization succeeded , And successfully created the file on it , Then deleted the file .

原网站

版权声明
本文为[Allen953]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207070643577634.html