Go Down

Topic: ethernet w5100 shield with sd card (Read 2067 times) previous topic - next topic

bonjeloe

I am currently using the Arduino software ver 1.0.1 (Windows)  with an UNO R3 and the ethernet w5100 ethernet shield with sd card.  The WebServer example in the 1.0.1 package appeared to work initially but I found it and other scripts to be intermitent over repetative usage with a web browser.  After researching I found that I had to modify the example to add an additional line to set pin 4 high (digitalWrite(4,HIGH); ) in the setup and it now runs like a champ.  Not sure why it was left out in the example.

I have a need for the webserver app to include SD functionality (read and write files). I have come across some examples but I believe they are old and do not compile with the 1.0.1 software.  Can anyone point me in the right direction.

PaulS

Quote
I have come across some examples but I believe they are old and do not compile with the 1.0.1 software.

Why don't they? The SD library is delivered as a core library, so it WILL compile with any version of the IDE.
The art of getting good answers lies in asking good questions.

SurferTim

This is a FTP client sketch in the playground.
http://www.arduino.cc/playground/Code/FTP
It uses the w5100 and microSD card together well. The setup function in that sketch will show you how to initialize both get them working together.

The libraries do not presume other equipment. The SD library does not presume a w5100, and the ethernet library does not presume an SD card. It is up to you to do this stuff.

bonjeloe

Upon your reply I double checked and found a solution ( http://www.ladyada.net/learn/arduino/ethfiles.html ) that works.  I forgot to load their SD library prior to my post. 

Go Up