#6 NodeMCU/ ESp8266 Tutorial: Interface SD card
HTML-код
- Опубликовано: 26 авг 2024
- In this video I show pinout of SD card and how to connect an SD card with esp8266.
The SD card connection is as follow:
SD pin 2 (CS) -- D8
SD pin 3 (MOSI) -- D7
SD pin 4 (3.3v) --3v
SD pin 5 (SCK/clock) -- D5
SD pin 6 (GND) -- Ground
SD pin 7 (MISO) --D6.
The code is in the arduino example.
Goto FIles--Examples scroll down and you will see SD(ESP8266)
select the listFile example.
if you power up your nodemcu (8266) with 5V then at the pin Vin (Vin stand for volts that come in from the USB ) so use Vin pin directly and it will work fine, no need to unsolder the regulator
Thank you man, this helped me alot !
You dont need to remove the voltage regulator if you power the esp using 5v wall charger .. connect esp-vin to sd-vcc. This will provide 5v from esp to sd card .. 🤘
Exactly
Wall charger to USB port?
But the video was good and it was useful for me thank you
I want to read first line of text file from sd card and delete it . After that second line other lines should be shifted .Please help me in logic and commands
Thanks for tutorial , i am Little confusing i have data with timestamp text file so I want to send data to google sheet what is skipped while internet was not available , what commands i should use?
it works thank you
Any update on this?
It worked before but now it don't, only soft WDT reset when calling SD.begin.
Any clue?
Check your power supply.
@@MohammedRezwanulIslam I' using PC USB port on the ESP8266.
I think the SD module is dead.
@@juanpamoreno325 Use a good quality usb cable. If you use cheap usb cable then there will be high resistance on the wire and at the end there will not be 5v for the esp8266.
@@MohammedRezwanulIslam I'm using the USB cable from my phone. It's supposed to be a good one
is it neccessary to remove the ic when i work in node mcu
Yes. If you do not remove the IC then the supply voltage of the SD card will be less than 3.3v. Then it may not work properly.
Thank u for your reply but when i worked in arduino it requires atleast 5v why
@@kabileshr7390 But NodeMcu dev board can only supply 3.3v. The IC can convert 5v -> 3.3v but if you supply 3.3v then the output will be less than 3.3v and your SD card will not work.
make an updated video
Bro you should add source code and connection diagram in description
Added
card initialization failed!
Try again and again and again.
@@MohammedRezwanulIslam its working with some another sd card but for a particular sd card its not working it because micro sd card adapter supports micro sd card and microsd hc
@@khushwantmaan791 good to hear that you got it working.
@@MohammedRezwanulIslam yeh! thank you for your efforts