Arduino SD card access

I have an Arduino Ethernet Shield W5500 Development Board which has a slot for a SD card. I insert a Micro SD card into the slot (FAT32 formatted) and try executing a sketch because Arduino should execute the HTML file on the webserver …

// initialize SD card
Serial.println("Initializing SD card...");
if (!SD.begin(4)) {
    Serial.println("ERROR - SD card initialization failed!");
    return;    // init failed
}
Serial.println("SUCCESS - SD card initialized.");
// check for index.htm file
if (!SD.exists("index.htm")) {
    Serial.println("ERROR - Can't find index.htm file!");
    return;  // can't find index file

The “index.htm” file is there. So I am quite astonished that the serial monitor complains about a missing file.

I have a SD card module at hand and execute a sketch writing some lines in a testfile …

Serial.print("Writing to test.txt…");
myFile.println("This is a test file :)");
myFile.println("testing 1, 2, 3.");
for (int i = 0; i < 20; i++) {
myFile.println(i);
}
// close the file:
myFile.close();
Serial.println("done.");

Now I can see in the serial monitor that there is NO error message that the “index.htm” file is not there. And I am quite surprised that the C++ sketch has written the text into the “index.htm” file and saved it as “INDEX.HTM”.

Seems to be a matter of fact that Arduino, when accessing a Micro SD card (FAT32) , expects the filename in upper cases and ignores filenames with lower case letters.

Arduino Nano : Cannot upload code

Quite common that could not upload code to my Arduino Nano. Uno, Mega no problem. So could not be an issue with the USB ports. Tried out different Arduino IDE versions. Different operating systems/versions. Still not possible to upload code. Finally found out that the reason was that upload requires the old bootloader. Most of the Arduino Nano s (at least the ones that I own) do not use the standard bootloader. I saw old bootloaders are required for …

WCHCH340G AMS1117 5.0 H947MK
Diymore/WCH
CH3400 AMS1117 ATMEL M328 P

HDD enclosures Wavlink ./. Orico. HDD 2,5 ” Recycling

I did already buy some Orico products and have been quite happy with them.

For some reason, when I needed a HDD enclosure for my old HDD (taken out of my broken Lenovo Ideapad S10) I bought a Wavlink enclosure. Maybe because Wavlink was promising that it were working with all SATA types … SATA I/II/III. Orico publishes less information.

Reason for doing this is that I like to reuse the harddisks. Already did have some problems accessing the MicroSD card on my Raspberry and now trying to save data on an external HDD.

I do have a HDD SATA adapter as well, but an enclosure is more beautiful than leaving the HDD with an adapter on the office desk .

However, when the Wavlink enclosure has been shipped, I saw that there was no access to the data. So this enclosure was quite useless.

The solution to this problem was ordering an Orico encloser, which, in fact was working.

Zweiweg Festplatten Adapter IDE <-> SATA – So funktioniert er

Da dem bei Ebay gekauften Adapter keinerlei Bedienungsanleitung beilag, habe ich ihn getestet und mit dieser Konfiguration wurde die IDE Festplatte an einem SATA Anschluss erkannt.  Das SATA Kabel ist bei einer IDE Festplatte links Seitens der Stromkabel angebracht.