EP-0062: Difference between revisions

From 52Pi Wiki
Jump to navigation Jump to search
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=Raspberry Pi 2.2 Inch GPIO display (without touch screen)=
=Raspberry Pi 2.2 Inch GPIO display (without touch screen)=
==Description==
==Description==
This product is End Of Life.
The PI-TFT22A module features a 2.2'display with 320x240 16-bit color pixels. This PI-TFT22A module refresh it's screen rapidly because the TFT module communicates with raspberry Pi in a high speed SPI interface ,this PI-TFT22A module can be used as Xwindow port ,displaying images or video etc. it plugs right in on top of your Model A+, B+ or Pi 2 and fits as HAT.
The PI-TFT22A module features a 2.2'display with 320x240 16-bit color pixels. This PI-TFT22A module refresh it's screen rapidly because the TFT module communicates with raspberry Pi in a high speed SPI interface ,this PI-TFT22A module can be used as Xwindow port ,displaying images or video etc. it plugs right in on top of your Model A+, B+ or Pi 2 and fits as HAT.
   
   
Line 34: Line 35:
|[[Image:TFT22_show06.jpg|thumb|left|300px]]
|[[Image:TFT22_show06.jpg|thumb|left|300px]]
|[[Image:2.2TFT_show06.JPG|thumb|none|300px]]
|[[Image:2.2TFT_show06.JPG|thumb|none|300px]]
|[[Image:TFT22_show07.jpg|thumb|none|300px]]
|}
|}
[[Image:TFT22_show07.jpg|thumb|none|300px]]
<br style="clear:both">
----
----
==Install Driver==
==Install Driver==
===Screen===
===Screen===
*If it's the first time for you to use this LCD module , please download the device driver for Raspberry Pi ,you can download the file from the following link http://www.52pi.net/forum.php?mod=viewthread&tid=1363&highlight=rtc
*If it's the first time for you to use this LCD module , please download the device driver for Raspberry Pi from the following link:<br>
*If you are done download the device driver ,copy and past them into 'pi' folder in Raspberry Pi
[[File:Download.jpg|thumb|left|300px]]
<br style="clear:both;">
[https://www.dropbox.com/s/2rde4hz426b8nfp/TFT-Drivers-Full-Pack-V0_5-20160331.tar.bz2?dl=0 TFT-Drivers-Full-Pack-V0_5-20160331.tar.bz2]<br>
----
<br>
Upload it into your Raspberry Pi or Just download from your Pi, and use "tar" command to unpack it.
<br>[[Image:2.2TFT_tech1.png|800px]]
<br>[[Image:2.2TFT_tech1.png|800px]]
*type<code>sudo tar -jxpvf TFT-stable-Build-20150424.tar.bz2 -C</code> to extract the device driver file
<br style="clear:both;">
1. Extract the device driver file<br>
*<code>sudo tar -jxpvf TFT-stable-Build-20150424.tar.bz2 -C /</code>  
<br>[[Image:2.2TFT_tech3.png|800px]]
<br>[[Image:2.2TFT_tech3.png|800px]]
* modify modules file in /etc folder ,you can type <code>sudo vim.tiny /etc/modules</code> to open this file.To modify the file you should follow the  picture beside
<br style="clear:both;">
<code>
2.Setup it up by editing /etc/modules file as following steps:<br>
fbtft dma
<code>sudo vim.tiny /etc/modules</code><br>
fbtft_device name=rpi-display rotate=270 speed=64000000 gpios=dc:24,reset:23,led:18
<code>fbtft dma</code><br>
</code>
<code>fbtft_device name=rpi-display rotate=270 speed=64000000 gpios=dc:24,reset:23,led:18
</code><br>
There are some pictures showing how to set it up.
<br>[[Image:2.2TFT_tech5.png|800px]]
<br>[[Image:2.2TFT_tech5.png|800px]]
<br>[[Image:2.2TFT_tech6.png|800px]]
<br>[[Image:2.2TFT_tech6.png|800px]]
*If you have finished above step ,then ,reboot the Raspberry Pi,and now you will see the reboot details is on the screen
<br style="clear:both;">
3. Reboot the Raspberry Pi and you will see the details on the screen.
----
----
===Keyboard===
===Keyboard===
*It is easy to setup the keyboard,first you should install evtest  to detect the keyboard  
*It is easy to setup the keyboard,first you should install a software called "evtest" to detect the keyboard.<br>
*modify modules file in /etc folder like following picture ,just add code
0. Install the package evtest:<br>
<code>gpio_keys_device pulldown active_low=0 keys=26:103,21:108,20:105,16:106</code>
<code>sudo  apt-get -y install evtest </code><br>
1. Add following parameters to /etc/modules file.<br>
<code>gpio_keys_device pulldown active_low=0 keys=26:103,21:108,20:105,16:106</code><br>
<br>[[Image:2.2TFT_tech4.png|800px]]
<br>[[Image:2.2TFT_tech4.png|800px]]
<br>[[Image:2.2TFT_tech8.png|800px]]
<br>[[Image:2.2TFT_tech8.png|800px]]
<br>[[Image:2.2TFT_tech9.png|800px]]
<br>[[Image:2.2TFT_tech9.png|800px]]
*Then, reboot the system,type <code>sudo evtest</code>to initiate the program,type<code>0</code>to set test mode.Then,you press buttom on Pi TFT Module,the test information will printed in the screen
<br style="clear:both;">
<br>[[Image:2.2TFT_tech11.png|800px]]
2.Reboot your Raspberry Pi and open a terminal:<br>
<br>[[Image:2.2TFT_tech12.png|800px]]
<code>sudo evtest</code><br>
<br>[[Image:2.2TFT tech13.JPG|800px]]
Select "0" to set test mode and  press the button on this module,the test information will print out<br>
----
[[Image:2.2TFT_tech11.png|left|800px]]
 
[[Image:2.2TFT_tech12.png|left|800px]]
==Purchase Links==
[[Image:2.2TFT tech13.JPG|left|800px]]
[[File:shopping_car.png|left|21px]][http://www.52pi.com  52Pi Store]
<br style="clear:both;">
----
----

Latest revision as of 19:55, 27 August 2021

Raspberry Pi 2.2 Inch GPIO display (without touch screen)

Description

This product is End Of Life. The PI-TFT22A module features a 2.2'display with 320x240 16-bit color pixels. This PI-TFT22A module refresh it's screen rapidly because the TFT module communicates with raspberry Pi in a high speed SPI interface ,this PI-TFT22A module can be used as Xwindow port ,displaying images or video etc. it plugs right in on top of your Model A+, B+ or Pi 2 and fits as HAT.

You can download configuration-free image or configurable packages, adjustable brightnes [level 0 -255], HAT compatible and Onboard buttons, you can load kernel modules to support GPIO KeyBoard function, almost all GPIO available on this board [non SPI 0,GPIO 18,GPIO 24,GPIO23],Very easily be other uses, IDROM has built initialization data to support Device Tree boot.


Feature

  • Character number: 320x240
  • Screen scale: 2.2'
  • Refresh rate: >20fps
  • Weight: 23.9g
  • module scale: 66x57x12(mm)
  • connect port: 2*20 Stacking Header
  • control interface: SPI
  • work voltage: 5V

Package Include

1 x Raspberry Pi 2.2 Inch GPIO display (without touch screen)


Presentation


Overview



Install Driver

Screen

  • If it's the first time for you to use this LCD module , please download the device driver for Raspberry Pi from the following link:
Download.jpg


TFT-Drivers-Full-Pack-V0_5-20160331.tar.bz2



Upload it into your Raspberry Pi or Just download from your Pi, and use "tar" command to unpack it.
File:2.2TFT tech1.png
1. Extract the device driver file

  • sudo tar -jxpvf TFT-stable-Build-20150424.tar.bz2 -C /


File:2.2TFT tech3.png
2.Setup it up by editing /etc/modules file as following steps:
sudo vim.tiny /etc/modules
fbtft dma
fbtft_device name=rpi-display rotate=270 speed=64000000 gpios=dc:24,reset:23,led:18
There are some pictures showing how to set it up.
File:2.2TFT tech5.png
File:2.2TFT tech6.png
3. Reboot the Raspberry Pi and you will see the details on the screen.


Keyboard

  • It is easy to setup the keyboard,first you should install a software called "evtest" to detect the keyboard.

0. Install the package evtest:
sudo apt-get -y install evtest
1. Add following parameters to /etc/modules file.
gpio_keys_device pulldown active_low=0 keys=26:103,21:108,20:105,16:106

File:2.2TFT tech4.png
File:2.2TFT tech8.png
File:2.2TFT tech9.png
2.Reboot your Raspberry Pi and open a terminal:
sudo evtest
Select "0" to set test mode and press the button on this module,the test information will print out