miesch
Posts: 8
Joined: Thu Jan 30, 2014 6:11 am

Re: 2.8" TFT + Touch Shield Board v2

Thu Apr 23, 2015 11:21 pm

All right! So I should have heeded Texy's council on the v4 TFT setup:
It is recommended to use the latest raspbian image dated 2015-02-16, to configure using an SSH session remotely, with no TV/Monitor connected to the HDMI port, and to connect the 2.8" Display board right from the start prior to connecting power to the Pi.
If I don't hook up to the HDMI port, everything works great and Kodi now shows on the TFT! Now I can try to figure out how to get this to work even when HDMI is hooked up. Thanks,

-miesch

User avatar
angusmedia
Posts: 15
Joined: Sat Feb 01, 2014 10:47 am

Re: 2.8" TFT + Touch Shield Board v2

Fri Apr 24, 2015 3:00 pm

Do you have some details for me how you did it?

miesch
Posts: 8
Joined: Thu Jan 30, 2014 6:11 am

Re: 2.8" TFT + Touch Shield Board v2

Fri Apr 24, 2015 7:21 pm

I have already started a complete tutorial, but I won't be able to finish it until next week. Here are the top-level tasks you have to complete (going off memory here):

1-Expand the file system (see this)
2-sudo apt-get update
3-Add "dtoverlay=hy28b, rotate=90" to /boot/config.txt
4-Now you can complete Texy's RaspBMC instructions, except skip the /etc/modules modification, as the Device Tree Overlay already takes care of that for you

thauke
Posts: 3
Joined: Sun Apr 26, 2015 6:28 pm

Re: 2.8" TFT + Touch Shield Board v2

Sun Apr 26, 2015 8:06 pm

I have a Waveshare Spotpear v4. Would your OSMC tutorial work for my screen? I think it uses the fb_ili9340 driver. I have been pulling my hair out all week trying to make this work :oops: :D

miesch
Posts: 8
Joined: Thu Jan 30, 2014 6:11 am

Re: 2.8" TFT + Touch Shield Board v2

Fri May 08, 2015 5:57 am

thauke,

Sorry for the delayed response. At first I thought notro doesn't support your device with his framebuffer driver (see here). Then I noticed his note that the list is not complete and that his source should be referenced. It looks like his last submission added support for a Waveshare TFT, not sure if it is the V4 though.

Keep in mind that there are 2 ways to load your driver, using the device (modprobe) and using the device overlay. If your TFT uses the fb_ili9340 driver, you may be able to modprobe the adafruit22a device with the correct parameters since the Adafruit 2.2 TFT uses the same driver as yours. If you want to make it work with with the device tree, it appears you will need to manually add the correct overlay as I don't think it is included in the kernel (my pi is not hooked up so I can't verify). A few promising links:

https://github.com/notro/fbtft/issues/181
https://github.com/swkim01/waveshare-dtoverlays

-miesch

thauke
Posts: 3
Joined: Sun Apr 26, 2015 6:28 pm

Re: 2.8" TFT + Touch Shield Board v2

Sat May 09, 2015 7:34 am

Thanks for your response - the waveshare32b device tree overlay works a charm, and I can now watch videos on my portable raspberry pi!

Alex_TNT
Posts: 8
Joined: Fri Jun 13, 2014 3:36 pm

Re: 2.8" TFT + Touch Shield Board v2

Wed May 13, 2015 5:30 pm

Does anyone have a tutorial for the lates raspberry pi 1.4.1? I don't seem to get it to work, I have the second version of touchscreen

texy
Forum Moderator
Forum Moderator
Posts: 5151
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: 2.8" TFT + Touch Shield Board v2

Wed May 13, 2015 5:36 pm

Hi Alex
Not for NOOBS, but for Raspbian, see the first post of this thread.
Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

Alex_TNT
Posts: 8
Joined: Fri Jun 13, 2014 3:36 pm

Re: 2.8" TFT + Touch Shield Board v2

Wed May 13, 2015 5:50 pm

texy wrote:Hi Alex
Not for NOOBS, but for Raspbian, see the first post of this thread.
Texy
Thank you, does it cause any problem using NOOBS?

LE. It works

texy
Forum Moderator
Forum Moderator
Posts: 5151
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: 2.8" TFT + Touch Shield Board v2

Wed May 13, 2015 6:08 pm

Sorry, I have never used NOOBS.
Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

User avatar
angusmedia
Posts: 15
Joined: Sat Feb 01, 2014 10:47 am

Re: 2.8" TFT + Touch Shield Board v2

Tue Sep 01, 2015 12:05 am

Got it for OSMC:

At first do all updates in OSMC, and install cronjobs - then login and set password for root
copy the file "fbcp" to boot-folder

Code: Select all

sudo passwd root
then login as root

Code: Select all

su root

Code: Select all

sudo  echo "dtoverlay=hy28b, rotate=90" >> /boot/config.txt
sudo apt-get install ca-certificates -y
sudo apt-get install git-core binutils -y
sudo wget https://raw.github.com/Hexxeh/rpi-update/master/rpi-update -O /usr/bin/rpi-update && sudo chmod +x /usr/bin/rpi-update
sudo -E RPI_UPDATE_UNSUPPORTED=0 rpi-update
sudo cp /boot/fbcp /usr/local/bin/
sudo chmod 755 /usr/local/bin/fbcp

crontab -e

and insert:

Code: Select all

@reboot /bin/sleep 14 && /usr/local/bin/fbcp &
the autostart can also be done by using init.d

if you want to use a remote, GPIO 18 and 17 (standard-selection) has to be changed

sam nazarko
Posts: 145
Joined: Wed Apr 25, 2012 5:05 pm

Re: 2.8" TFT + Touch Shield Board v2

Tue Sep 01, 2015 6:21 pm

Hi

This will break some functionality, such as the OSMC splash screen, WiFi driver support. If someone submits a PR to OSMC's GitHub repository I will accept this driver in to our kernel, then you will not need to rpi-update.

Sam

User avatar
angusmedia
Posts: 15
Joined: Sat Feb 01, 2014 10:47 am

Re: 2.8" TFT + Touch Shield Board v2

Tue Sep 01, 2015 9:15 pm

Would be a good idea. Wifi is still working. Touchscreen calibration is not working. But future updates wont work.

sam nazarko
Posts: 145
Joined: Wed Apr 25, 2012 5:05 pm

Re: 2.8" TFT + Touch Shield Board v2

Tue Sep 01, 2015 9:52 pm

Definitely a good idea. We call our own init (not /sbin/init) via a kernel patch and we have a few other patches. While WiFi is still working, you are using in-tree drivers, and we prefer out of tree with some of our patches to improve performance and stability.

If you're happy with upstream kernel that's great, but as I say we're keen (and see no reason not) to support this and it should make things easier for other users as a result.

bullwinkle
Posts: 117
Joined: Wed Jan 09, 2013 12:14 pm

Re: 2.8" TFT + Touch Shield Board v2

Thu Jan 14, 2016 5:59 am

Hello,
thanks for the above, I have OSMC on my 2.8 (hy28a).
angusmedia wrote:.... Touchscreen calibration is not working. .
My touch screen is working but the axis is inverted. I can't figure out how to flip them.

I also tried this (interesting) http://forum.kodi.tv/showthread.php?tid=162608&page=5
but the axis are still flipped.
Many thanks for any ideas ..
cheers,

Return to “HATs and other add-ons”