user28893: 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?


user19409: 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.

user70230: #include <SPI.h>                                
#include <SD.h>

File file;                                     
int const pinCS = 2;

void setup()
 
{
SD.begin(pinCS);                               
file = SD.open("Test.txt", FILE_WRITE);        
file.println("anything");                     
file.close();}                                

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

user66427: 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.

28893: <p>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?</p>

<p><a href="https://i.stack.imgur.com/z5CeU.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/z5CeU.jpg" alt="Board im using"></a></p>
 19409: <p>In short I am going to say NO.</p>

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

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

<p>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.</p>
 70230: <pre><code>#include &lt;SPI.h&gt;                                
#include &lt;SD.h&gt;

File file;                                     
int const pinCS = 2;

void setup()
 
{
SD.begin(pinCS);                               
file = SD.open(&quot;Test.txt&quot;, FILE_WRITE);        
file.println(&quot;anything&quot;);                     
file.close();}                                

void loop()                                     
{}
</code></pre>
<p>This Arduino(ATmega) code creates to SD card a file &quot;Test.txt&quot; and records there a text &quot;anything&quot;.</p>
<p>Dear Arduino experts, pls kindly, let me ask you, rewrite this code to ATtiny85.
It can helps to many Arduino hobby men.
Josef</p>
 66427: <p>Yes you can connect it: <a href="http://elm-chan.org/fsw/ff/00index_p.html" rel="nofollow noreferrer">http://elm-chan.org/fsw/ff/00index_p.html</a>
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.</p>
