Interfacing TFT LCD with Arduino - Internet of Things

Interfacing TFT LCD with Arduino

Interfacing TFT LCD with Arduino

Today, we are going to Interface 2.4 inch TFT LCD Shield with Arduino. By using this color TFT LCD shield we can show characters, strings, blocks, images etc on the color TFT LCD. And we can use this TFT Shield in many applications like:  Security SystemHome AutomationGames etc.
Interfacing TFT LCD with Arduino is very easy. We only need to have an Arduino Board & a 2.4 inch TFT Shield in hardware part and Arduino IDE & TFT Library in software part. Many libraries are available on the Internet, for TFT Shield to operate, but different TFT LCDs have different inbuilt drivers. So first we need to identify the driver of TFT and then install a suitable library for that. Here we are using 2.4 inch TFT Shield having ili9341 driver. Link, for downloading the Library for given TFT, is given in Steps below. Check this for simple LCD interfacing with Arduino.

Hardware and Software Requirements:
Hardware:
·         Arduino Uno
·         TFT shield
·         USB cable
Software:
·         Arduino ide
·         TFT library for Arduino (spfd5408)

Circuit Diagram:
User only needs to insert TFT Shield over the Arduino. Because TFT Shield is compatible with Arduino UNO and Arduino mega.
Steps for Installing TFT library in Arduino IDE:
Step 1: Download the TFT library for Arduino, from the below given link and make it zip (if not already zipped).

Step 2: After this, copy and paste it in Arduino library folder in Program Files.

Step 3: Now open Arduino IDE and select Sketch -> Include Library -> Add .ZIP Library.

Then go to the Arduino Library in Program Files, where you have pasted the zipped downloaded library in Step 2­­ and select and open zipped SPFD5408-Master library.
My Computer -> C: Drive -> Program Files -> Arduino -> libraries

Now after opening the SPFD5408 Master Library, you can see that your library file has been installed in Arduino IDE.

Step 4: Now in Arduino IDE go to, File -> Example -> SPFD5408-master -> spfd5408_graphictest
Open it, compile it and then upload it in Arduino.

  Demo & Code


Interfacing TFT LCD with Arduino Interfacing TFT LCD with Arduino Reviewed by XXX on สิงหาคม 27, 2560 Rating: 5

ไม่มีความคิดเห็น