really helpful videos. Your one of the video where you have made us understand the use of Arduino with 12 v source. really helped me a lot. thanks. Keep making this type of content. Very nice and detailed content.
Alimento a muro Arduino uno R4 wifi con SD montata come hai descritto ma mi dà errore di scrittura. Alimentato da PC via USB funziona tutto. Hai idea del perché? Stesso cavo, codice, posto di Arduino sulla scrivania, tutto uguale insomma. Cambio solo l'alimentazione. Fa la stessa cosa con powerbank o alimentato col connettore barrel (nero).
I have not installed this library. It comes with Arduino IDE installation so if you have less examples it is either because you have different Arduino IDE version with differebt version of the library or you installed some other library on top of it. Go to Arduino Manage Libraries and find the version and see if there are upgrades available
If you are using the newer version of the Arduino IDE (2.3.2): Go to library manager > search "SD" > click on the three dots on the corner of the SD library > Examples This are the examples shown in the video and it contains all of them, I had the same issue.
I use those sd2card, sdVolume,etc. to initialize and check sd card type and list the content. I get no error with this part. But how to open image file? I want to load image and display it on TFT screen. Below is my code: but I get "failed" all the time. File root = SD.open("/"); File entry = root.openNextFile(); uint8_t nameSize = String(entry.name()).length(); // get file name size String str1 = String(entry.name()).substring( nameSize - 4 ); // save file extension if( str1.equalsIgnoreCase(".bmp") ) // if the file has '.bmp' extension { Serial.println("OK"); bmpDraw(entry.name(), 0, 0); } else { Serial.println("failed"); } entry.close(); // close the file void bmpDraw(char *filename, uint8_t x, uint16_t y)
To begin with, the image must be in the correct format. The display requires the RGB565 format, where each pixel is represented by 16 bits: 5 bits for red, 6 bits for green, and 5 bits for blue. You can either prepare your image in this format, which can be challenging, or convert from a 24-bit color format inside your Arduino code, which is even more complex. The display bitmap method is designed for monochrome images. Check out my recent video: ruclips.net/video/2c4ZyJYaWS8/видео.html. In a few days, I'll release a new video on displaying color bitmaps on the display, but sending them from a PC over a serial interface instead of using an SD card module. The final draft of this video will be available today on Patreon and for my channel members. It will show you how to prepare the image and send the bytes to the display. One issue for me is that my display doesn't have a Chip Select (CS) pin, so I can't use it with an SD card reader. Additionally, the SD card reader works with 5V logic, while my microcontroller and display use 3.3V logic. When I get the new components (a display with CS and a 3.3V SD card module), I'll create another video on this topic. If this response helped you, please consider supporting my channel.
really helpful videos. Your one of the video where you have made us understand the use of Arduino with 12 v source. really helped me a lot. thanks. Keep making this type of content. Very nice and detailed content.
love your vids. can you maybe. amek a "ghost hnuting" machine with arduion uno
First decent video for SD cards. Wish the was a way to R/W individual sectors. (Want to make CPM3 SD cards)
Alimento a muro Arduino uno R4 wifi con SD montata come hai descritto ma mi dà errore di scrittura. Alimentato da PC via USB funziona tutto. Hai idea del perché? Stesso cavo, codice, posto di Arduino sulla scrivania, tutto uguale insomma. Cambio solo l'alimentazione. Fa la stessa cosa con powerbank o alimentato col connettore barrel (nero).
What exact error do you get
which is this SD library ? In my sd library it just shows SD test and SD time
I have not installed this library. It comes with Arduino IDE installation so if you have less examples it is either because you have different Arduino IDE version with differebt version of the library or you installed some other library on top of it. Go to Arduino Manage Libraries and find the version and see if there are upgrades available
If you are using the newer version of the Arduino IDE (2.3.2):
Go to library manager > search "SD" > click on the three dots on the corner of the SD library > Examples
This are the examples shown in the video and it contains all of them, I had the same issue.
I use those sd2card, sdVolume,etc. to initialize and check sd card type and list the content.
I get no error with this part.
But how to open image file? I want to load image and display it on TFT screen.
Below is my code: but I get "failed" all the time.
File root = SD.open("/");
File entry = root.openNextFile();
uint8_t nameSize = String(entry.name()).length(); // get file name size
String str1 = String(entry.name()).substring( nameSize - 4 ); // save file extension
if( str1.equalsIgnoreCase(".bmp") ) // if the file has '.bmp' extension
{
Serial.println("OK");
bmpDraw(entry.name(), 0, 0);
}
else
{
Serial.println("failed");
}
entry.close(); // close the file
void bmpDraw(char *filename, uint8_t x, uint16_t y)
To begin with, the image must be in the correct format. The display requires the RGB565 format, where each pixel is represented by 16 bits: 5 bits for red, 6 bits for green, and 5 bits for blue. You can either prepare your image in this format, which can be challenging, or convert from a 24-bit color format inside your Arduino code, which is even more complex. The display bitmap method is designed for monochrome images.
Check out my recent video: ruclips.net/video/2c4ZyJYaWS8/видео.html. In a few days, I'll release a new video on displaying color bitmaps on the display, but sending them from a PC over a serial interface instead of using an SD card module. The final draft of this video will be available today on Patreon and for my channel members. It will show you how to prepare the image and send the bytes to the display.
One issue for me is that my display doesn't have a Chip Select (CS) pin, so I can't use it with an SD card reader. Additionally, the SD card reader works with 5V logic, while my microcontroller and display use 3.3V logic. When I get the new components (a display with CS and a 3.3V SD card module), I'll create another video on this topic.
If this response helped you, please consider supporting my channel.
@@marios_ideas Thank you for your advice.
I'll check the link.
Good.
thank yuo