How to Use a TFT 2.8" Touchscreen to Display .bmp Images
by wilburie in Circuits > Arduino
328 Views, 0 Favorites, 0 Comments
How to Use a TFT 2.8" Touchscreen to Display .bmp Images
This is a ELEGOO TFT 2.8" Touchscreen displaying a .BMP image! I couldn't find any tutorials on a 2.8" so I'll make one myself!
This uses a lot of images, so make sure to click on "See [] More Images" to follow the steps!
Supplies
You'll need:
- 2.8" TFT Touchscreen
- Arduino UNO
- MicroSD card formatted to FAT32
- Something to plug the MicroSD into a computer (MicroSD to SD adapter, etc.)
- A computer with the Arduino IDE installed
- Hi-Speed USB cable for Arduino
Formatting the SD Card
- Plug in your SD card using an adapter.
- Save any important files!
- Right click on the card icon and click "Format".
- Make sure that everything matches this image, or otherwise it's not readable by the arduino!
Uploading the Image & Making It Look Right
- Download this image of a white square and save it to the root of the SD card.
- Rename the file to "img1".
- Open it with Paint.exe!
- Put whatever you want onto the image.
- Rotate it left by 90 degrees.
- It should look like this!
- Then flip it vertically.
- And now your image should look really weird, but this is how it works!
- Save your image.
Code + Reading the SD Card
- Safely eject your SD card! Make sure you do this or it won't read it.
Download "ShowBMP.ino" and upload it to your Arduino with the IDE.
It's a big file so it will take a while, but wait for the "Done Uploading." flag in the bottom right corner.
When done, press the reset button and watch your image come to life!
Downloads
You're Done!
Enjoy watching your image show on your screen! Try some HQ images because these things are actually fairly high def.