I have a Digispark ATtiny85 Arduino board (as shown in the picture). Can I connect a SD card shield to this board as a normal Arduino? How can I do that I'm new to this field?

Board im using

  • 3
    Just connect the MISO, MOSI, and SCK pins. And use another pin to connect to the Chip Select of the SD card.
    – Gerben
    Commented Apr 17, 2017 at 12:40
  • 1
    By "another pin" we mean "D5", since the other two pins are your USB connection.
    – Majenko
    Commented Apr 17, 2017 at 12:41
  • So i must use D0, D1, D2, D5, power and ground right?
    – knobiDev
    Commented Apr 17, 2017 at 12:47
  • 1
    Yes, and then hope that there is SD software that fits in that rather underpowered chip.
    – Majenko
    Commented Apr 17, 2017 at 13:05
  • 1
    you can get an sdcard module for under $1, might be worth it get rid of the ill-fitting jank...
    – dandavis
    Commented Apr 17, 2017 at 21:56

3 Answers 3


In short I am going to say NO.

The flash is too small to adequately run the SD library as well as the rest of your Arduino code.

The RAM is also underpowered for what is needed to properly access files on an SD card.

Having said this, I am sure there are some clever software engineers that could write a cut down SD card library to do limited commands. Overall this is too hard for the beginner - Just buy an Arduino Uno/Mega/Due and avoid the unnecessary hassle.


Yes you can connect it: http://elm-chan.org/fsw/ff/00index_p.html Your happiness depends on what you want to accomplish. Simple streaming, like feeding an FPGA with a bitstream is achievable. Logging an incoming data stream to the SD card filesystem is probably not.

  • Can I use the digispark as SD reader so when I connected to PC it will work as a flash drive?
    – alsadk
    Commented Oct 18, 2021 at 20:17
#include <SPI.h>                                
#include <SD.h>

File file;                                     
int const pinCS = 2;

void setup()
file = SD.open("Test.txt", FILE_WRITE);        

void loop()                                     

This Arduino(ATmega) code creates to SD card a file "Test.txt" and records there a text "anything".

Dear Arduino experts, pls kindly, let me ask you, rewrite this code to ATtiny85. It can helps to many Arduino hobby men. Josef

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.