Skip to content

Touchscreen

project-owner edited this page Jan 21, 2018 · 9 revisions

Adafruit PiTFT Touchscreen is the main control component in the Peppy player. Even if you are using another controlling devices such as mouse, keyboard or IR remote control you still have to validate the correctness of issued commands on touchscreen. The screen size of PiTFT is 3.5" and screen resolution is 480*320 pixels. This is probably the minimum touchscreen size/resolution for UI of average complexity like in Peppy player. The touch areas of smaller size screens become hard to use for fingertips.

tft-1

There are two small pads on the back of the PiTFT. The PiTFT comes with those pads connected. This allows to switch on/off the PiTFT back-light by changing level on GPIO pin #18. This is a good feature which could be used for example to switch off PiTFT when player enters the screensaver mode. But unfortunately Amp+ module is also using GPIO pin#18 for its own purposes. Therefore if you don't cut that trace which connects those two small pads Amp+ will be nonfunctional. You can do that by hobby knife. The image below shows the pads and trace before cut and after.

tft-2

PiTFT can be connected to 40-pin GPIO connector of the Raspberry Pi 3 using the first 26 pins. PiTFT doesn't use all those pins but I found that it's much easier to create 26-pin ribbon cable rather than to connect individual pins between Raspberry Pi's GPIO and PiTFT connector. The details of preparing such cable will be discussed in the 'Cabling' chapter.

tft-3

<<Previous | Next>>

Clone this wiki locally