Це відео не доступне.
Перепрошуємо.
How to Display Images on your Arduino SPI LCD Screen - Easy Version!
Вставка
- Опубліковано 15 сер 2024
- Once you've got an LCD panel and SD card connected to your Arduino you can save bitmap images to the SD card and display them on your screen. Use this for photo viewers, splash screens, logo displays or as a photo background for your control panel or buttons.
In this video I'll show you the fast and easy way to get the images from your SD card onto the LCD panel. We'll use some ready made library code to do all the heavy lifting for us.
Adafruit Tutorial
learn.adafruit...
Libraries You'll Need
Adafruit_ImageReader library
Adafruit fork of the SdFat library
Circuit Diagrams and Code
bytesnbits.co....
How to set up your LCD screen
• Connect an SPI TFT wit...
How to set up your SD card
• Connect an SPI SD Card...
Impeccable timing. I was just about to look into displaying an image from SD card and I see this in my subscriber feed. Spot on! Looking forward to your next video as well with the custom bitmap loading, decoding and displaying, as well as the file system.
Thanks!
Glad it was helpful! Bitmap decoding video is just processing in UA-cam at the moment.
Very good. I appreciate your video. Thank you for sharing and taking the time to help us out!
Glad it was helpful!
Nice!
Thank you! Cheers!
With the BMP files on the SD card, is there a need to include the forward slash ("/logo.bmp") before the file name as you did...???? ....or can we just name it as ("logo.bmp") ...???
I now have an ILI9341 TFT with SD card and a DS3231 RTC and trying to start on the birthday clock.
Idea is, as before, look at names and dates in a struct and display the photo of the person who's birthday it is, on the given day.
If I just write the image to the screen the one time, will it then stay there until I write something else when the date no longer matches?
The backslash is probably not needed - try it to find out. Sounds like a great project. Yes, the image will stay there until you write something else to the screen, or the screen is reset or powered off.
@@BytesNBits Thanks....yes, project is a bit over my head but will see how I go. Intention is to break the programming up into sections and combine into one as I get sections to work successfully.
Hello is it possible to display an image file on the computer to the arduino lcd screen without having to upload to eeprom or sd card?
Yes, but you'll need to code it. Basically you can convert an image file to a base64 text string, send that down to the arduino over the serial channel and have it decode it back to the image data. There may well be libraries already written to do this sort of thing.
Nice!
very thank you sir
You're welcome!
Hello sir, does this work with an esp32? I am completely new to this and struggling with my project.
Hi. Yes. The Arduino library should be fine but you'll need to remap the pins to the correct ones for the ESP32.
@@BytesNBits Thank you so much for replying sir, a really helpful video..
For everyone in this proyect using a ESP32 instead of a Arduino uno, replace this:
if(!SD.begin(SD_CS)){
with this:
if(!SD.begin(SD_CS, SD_SCK_MHZ(25))) {
Thanks for the code. That's a great help.
Could not find complete code on the link "circuit diagrams and code".
The download button was hidden down the bottom and with the wrong text on the button. It's a bit more obvious now. Thanks for finding that. Hope you get it working.
Been working on changing one of my projects, birthday clock, to display peoples photo on given dates from an RTC and looking at how you display the bmp. See how it goes....Cheers@@BytesNBits
mine says SD begin() failed. why is that?
Make sure you've got all the libraries up to date and included into your sketch at the top of the listing. Then make sure all the pins are correctly assigned. After that it should compile and run.
I bought a TFT SD7735S display which appears the similar to yours here (not touch screen thought) but, even trying 3 different software sketches, I cannot get anything to display other than a screen full of minute different coloured pixels.
The software is correctly loading the 128 x 160 bmp images (24 bit) from the sd card as far as I know given the readout from the serial monitor.
I was hoping to use this or any slide show in a birthday clock however cannot get past the first requirement.
Original sketch writer did not link to a particular library which I think could be the problem.
Also all attempts to get an answer have been zero reply.
Can only imagine the number of libraries out there and getting the correct one is like a needle in a haystack.
video I used ...... ua-cam.com/video/X8syt55ITUo/v-deo.html
Where I load a library for the ILI9341 you'll need to load one for the SD7735S. The library I used may well have the code for your chip, you'll have to check the documentation. Once you've got a working driver you should be OK.