rompelstilchen
Posts: 49
Joined: Thu Mar 03, 2016 10:37 am

raspbery pi 3 PITFT PLUS

Sat Mar 05, 2016 11:30 am

hello,

can anyone tell me if RPi 3 is compatible with this screen ?

https://www.adafruit.com/products/2441

thanks

DirkS
Posts: 9872
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: raspbery pi 3 PITFT PLUS

Sat Mar 05, 2016 2:05 pm

Yes, it is. Nothing relevant for this screen has changed on the Pi3B

User avatar
jartweb
Posts: 12
Joined: Thu Mar 12, 2015 9:33 pm
Location: Teddington
Contact: Website

Re: raspbery pi 3 PITFT PLUS

Sun Mar 06, 2016 2:24 pm

I have a Pi 3 and the AdaFruit 3.5" TFT (for model 2) and there are software issues.
Cannot boot the supplied Jessie or Wheezy images available from AdaFruit.
If you find a Jessie image that boots OK, when you update it to cater for the screen, it fails to boot after the update.
I get a solid red LED and the green one flashes 4 long then 4 short.

User avatar
DougieLawson
Posts: 35533
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: raspbery pi 3 PITFT PLUS

Sun Mar 06, 2016 2:41 pm

That's because you need new firmware, new kernel and new modules to run a RPi3B and your Adafruit image is too old.

Get NOOBS 1.8 or plain Raspbian Jessie 2016-02-26 running and look at /boot/overlays/README you may find there's support for your Adafruit PiTFT in the stock standard kernel.

Code: Select all

[email protected]:/boot/overlays# grep -i 'pitft' *
Binary file pitft28-capacitive-overlay.dtb matches
Binary file pitft28-resistive-overlay.dtb matches
README:Name:   pitft28-capacitive
README:Info:   Adafruit PiTFT 2.8" capacitive touch screen
README:Load:   dtoverlay=pitft28-capacitive,<param>=<val>
README:Name:   pitft28-resistive
README:Info:   Adafruit PiTFT 2.8" resistive touch screen
README:Load:   dtoverlay=pitft28-resistive,<param>=<val>
[email protected]:/boot/overlays#
Note: Having anything remotely humorous in your signature is completely banned on this forum. Wear a tinfoil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

DirkS
Posts: 9872
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: raspbery pi 3 PITFT PLUS

Sun Mar 06, 2016 2:46 pm

jartweb wrote:If you find a Jessie image that boots OK, when you update it to cater for the screen, it fails to boot after the update.
How do you update for the screen? Are you using the adafruit helper script?

User avatar
jartweb
Posts: 12
Joined: Thu Mar 12, 2015 9:33 pm
Location: Teddington
Contact: Website

Re: raspbery pi 3 PITFT PLUS

Sun Mar 06, 2016 2:49 pm

Yes - I followed the tutorial to install the Adafruit repos and then used the helper script.
Pi was working fine until the reboot after the update.

DirkS
Posts: 9872
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: raspbery pi 3 PITFT PLUS

Sun Mar 06, 2016 3:25 pm

jartweb wrote:Yes - I followed the tutorial to install the Adafruit repos and then used the helper script.
Pi was working fine until the reboot after the update.
Yes, I see what's happening now. The script downloads and installs their own raspberrypi-bootloader (mainly kernel and firmware) and it has not been updated for the Pi3 yet...

You could wait until Adafruit have updated their repository or try the following.
I assume you either have another screen attached or log in with SSH, otherwise you couldn't have followed the original instructions.
Start with a clean Jessie install, then issue the following commands:

Code: Select all

wget https://www.dropbox.com/s/npjc52s2z6ifk55/pitft35r-overlay.dtb?dl=0 -O pitft35r-overlay.dtb
sudo mv pitft35r-overlay.dtb /boot/overlays/
wget https://raw.githubusercontent.com/adafruit/Adafruit-PiTFT-Helper/master/adafruit-pitft-helper
sudo adaruit-pitft-helper -t 35r
The first two download the ovelay for your screen (I ripped that from the Aafruit repo) and move it to the correct direcory.
Then the helper script is downloaded and executed (I think I got the parameters right, you may want to double check that)

User avatar
jartweb
Posts: 12
Joined: Thu Mar 12, 2015 9:33 pm
Location: Teddington
Contact: Website

Re: raspbery pi 3 PITFT PLUS

Sun Mar 06, 2016 3:32 pm

Thanks! I will try that when I next get a spare moment.

I was SSHing into the Pi remotely via an Ethernet cable.

kermit2016
Posts: 1
Joined: Wed Mar 09, 2016 11:15 am

Re: raspbery pi 3 PITFT PLUS

Wed Mar 09, 2016 11:29 am

I have managed to get the Adafruit 2.8 inch PiTFT working using a modified version of the above.

Starting from a clean install of the latest Raspbian release:

Code: Select all

wget https://raw.githubusercontent.com/adafruit/Adafruit-PiTFT-Helper/master/adafruit-pitft-helper
nano adafruit-pitft-helper
Scroll down and modify change:

Code: Select all

overlay="dtoverlay=pitft28-r,rotate=90,speed=32000000,fps=20
to

Code: Select all

overlay="dtoverlay=pitft28-resistive,rotate=90,speed=32000000,fps=20
Then:

Code: Select all

chmod +x adafruit-pitft-helper
sudo ./adafruit-pitft-helper -t 28r
Shutdown, connect the display and power up, and it worked for me. The power switch option doesn't seem to be working yet (may have to enable it first), but console works and so does X including the touchscreen. This is using the txt overlay included with the kernel rather than Adafruit's own, so there may be differences. I have not tried with the Adafruit one as yet.

User avatar
jartweb
Posts: 12
Joined: Thu Mar 12, 2015 9:33 pm
Location: Teddington
Contact: Website

Re: raspbery pi 3 PITFT PLUS

Sat Mar 12, 2016 12:12 pm

@DirkS

Finally got a chance to try your suggestion which was (with slight corrections):

Code: Select all

wget https://www.dropbox.com/s/npjc52s2z6ifk55/pitft35r-overlay.dtb?dl=0 -O pitft35r-overlay.dtb
sudo mv pitft35r-overlay.dtb /boot/overlays/
wget https://raw.githubusercontent.com/adafruit/Adafruit-PiTFT-Helper/master/adafruit-pitft-helper
sudo chmod +x adafruit-pitft-helper
sudo adafruit-pitft-helper -t 35r
At the mv step I got a response:

Code: Select all

mv: failed to preserve ownership for â/boot/overlays/pitft35r-overlay.dtbâ: Operation not permitted
but it did appear to move the file.

I answered 'y' to the question about console appearing on the PiTFT and rebooted successfully.
But no console text on the display. Had to SSH in.

User avatar
DougieLawson
Posts: 35533
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: raspbery pi 3 PITFT PLUS

Sat Mar 12, 2016 12:19 pm

jartweb wrote:Yes - I followed the tutorial to install the Adafruit repos and then used the helper script.
Pi was working fine until the reboot after the update.
What does the helper script do? If it is replacing the kernel then it will need Adafruit to update that stuff to a version that will work with the RPi3B.
Note: Having anything remotely humorous in your signature is completely banned on this forum. Wear a tinfoil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

DirkS
Posts: 9872
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: raspbery pi 3 PITFT PLUS

Sat Mar 12, 2016 2:04 pm

DougieLawson wrote:
jartweb wrote:Yes - I followed the tutorial to install the Adafruit repos and then used the helper script.
Pi was working fine until the reboot after the update.
What does the helper script do? If it is replacing the kernel then it will need Adafruit to update that stuff to a version that will work with the RPi3B.
No, it just creates some configuration files and moves some stuff around.
The harmful stuff is done elsewhere

DirkS
Posts: 9872
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: raspbery pi 3 PITFT PLUS

Sat Mar 12, 2016 2:10 pm

jartweb wrote:I answered 'y' to the question about console appearing on the PiTFT and rebooted successfully.
But no console text on the display. Had to SSH in.
I noticed a quote in one of your posts above that should not be there:

Code: Select all

dtoverlay="pitft...
Re not seeing the console: check /boot/cmdline.txt
Somewhere near the end of the first line you should see

Code: Select all

fbcon=map:10

User avatar
jartweb
Posts: 12
Joined: Thu Mar 12, 2015 9:33 pm
Location: Teddington
Contact: Website

Re: raspbery pi 3 PITFT PLUS

Mon Mar 14, 2016 10:43 am

Hi DirkS,
Thanks for your assistance but still no joy on the Pi3.

I can confirm that the 'fbcon=map:10' entry is there in the cmdline.txt file.
The quote is actually from another user's posting where they state that they got the 2.8 TFT working by editing the adafruit helper script. Within that script (with my limited knowledge of scripts) it seems that the double quotes are needed as a long string is being passed as a parameter:

Code: Select all

    if [ "${pitfttype}" == "35r" ]; then
        overlay="dtoverlay=pitft35-resistive,rotate=90,speed=42000000,fps=20"
    fi
This is my own attempt at modifying the relevant part of the script. I have no success running the script as originally downloaded or with this modification.
I have checked the screen h/w is OK by testing it on a Pi2 using the Adafruit screen-specific Wheezy image. All is fine there. Will sit back and await Adafruit updating the necessary bits (they say they are looking into it but there is no ETA at the moment).

sushant.singh
Posts: 4
Joined: Mon Mar 14, 2016 6:15 pm

Re: raspbery pi 3 PITFT PLUS

Mon Mar 14, 2016 6:33 pm

Hi,

I recently bought raspberry pi 3 and I was trying to install kernel for "PiTFT Plus" Capacitive touch screen (https://www.adafruit.com/products/2423) using the instructions given at https://learn.adafruit.com/adafruit-2-8 ... re-install.

I followed the steps as mentioned, installed the kernels and did shutdown. But after i plugged in charger for reboot, i only see white screen on my touch screen display.. as if kernels still doesn;'t recognize the device. and raspberry was not booting up..

I noticed that, the insrtuctions were given for "PiTFT capacitive" whereas i was having "PiTFT Plus capacitive " which is an upgraded design for compatibility with raspberry Pi 2 and Model A+ / B+ as mentioned on (https://www.adafruit.com/products/2423

Since raspberry pi 3 is compatible with raspberri Pi2 and model A+ and B+, So this touchscreen should work with Raspberry Pi 3

But looks like the kernels are not yet updated for raspberry pi 3 or infact i should say for "PiTFT Plus " capacitive touch screen.

Has anyone interfaced "PiTFT Plus " capacitive touch screen. with any raspberry model.. ???

The tutorial at https://learn.adafruit.com/adafruit-2-8 ... re-install. fails for "PiTFT Plus" model..

sushant.singh
Posts: 4
Joined: Mon Mar 14, 2016 6:15 pm

Re: raspbery pi 3 PITFT PLUS

Mon Mar 14, 2016 7:11 pm

Hi,

I just saw this post from AdaFruit forum. for interfacing raspberrypi 3 with PiTFT Plus Capacitive model.

https://forums.adafruit.com/viewtopic.p ... 00#p463500

I hope this will be helpful for others as well who are getting issues while interfacing . I will try the solution, suggested in the above link.

DirkS
Posts: 9872
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: raspbery pi 3 PITFT PLUS

Mon Mar 14, 2016 7:24 pm

sushant.singh wrote:Hi,

I just saw this post from AdaFruit forum. for interfacing raspberrypi 3 with PiTFT Plus Capacitive model.

https://forums.adafruit.com/viewtopic.p ... 00#p463500

I hope this will be helpful for others as well who are getting issues while interfacing . I will try the solution, suggested in the above link.
Yes, that will probably work.
BTW: from that post
The pitft 2.8 capacitive touch drivers are now already available in the latest kernel image of RPI.
These overlays and drivers have been in Raspbian for a long time...
first update the drivers -> sudo rpi-update
Totally unnecessary when using a fairly recent Raspbian image.

For getting the touch to work you will have to do some additional steps. See https://learn.adafruit.com/adafruit-2-8 ... ouchscreen

sushant.singh
Posts: 4
Joined: Mon Mar 14, 2016 6:15 pm

Re: raspbery pi 3 PITFT PLUS

Tue Mar 15, 2016 3:55 am

Thanks DisrkS, I will try these as well..

rvajf00
Posts: 4
Joined: Wed Mar 23, 2016 11:43 pm

Re: raspbery pi 3 PITFT PLUS

Wed Mar 23, 2016 11:56 pm

Hello all. I just received my first raspberry pi in the mail this week and I have been following this thread to try and get my PiTFT Plus (https://www.adafruit.com/product/2441B) working correctly. I am almost there but I have to issue three commands via ssh on every reboot, and my only about half of the screen has content as shown in this image. http://i.imgur.com/QJeVTMX.jpg

Here are all the steps I have taken that have brought me to this point.

Compile kernel from https://github.com/adafruit/adafruit-ra ... ree/master since the Adafruit helper script bootloader is not compatible with the RP3.

Code: Select all

$ sudo rpi-update
$ sudo apt-get update
$ sudo apt-get upgrade
Install Custom Kernel

Code: Select all

$ wget https://www.dropbox.com/s/npjc52s2z6ifk55/pitft35r-overlay.dtb?dl=0 -O pitft35r-overlay.dtb
$ sudo mv pitft35r-overlay.dtb /boot/overlays/
$ wget https://raw.githubusercontent.com/adafruit/Adafruit-PiTFT-Helper/master/adafruit-pitft-helper
$ chmod +x adafruit-pitft-helper
$ sudo ./adafruit-pitft-helper -t 35r
Verify no 99-fbturbo.conf in /etc/X11/xorg.conf.d/ and /usr/share/X11/xorg.conf.d

These are the three commands I must issue on each reboot.

Code: Select all

$ sudo modprobe bcm2845_smi
$ sudo modprobe fbtft_device name=pitft rotate=90
$ sudo startx
Any help getting full screen and automatically starting X to my PiTFT would be greatly appreciated!

-Drew

DirkS
Posts: 9872
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: raspbery pi 3 PITFT PLUS

Thu Mar 24, 2016 12:21 am

rvajf00 wrote:Any help getting full screen and automatically starting X to my PiTFT would be greatly appreciated!
Well, it went wrong in the first step you made...
The adafruit kernel source on Github is 4 years old and pre-dates the introduction of device trees.
It simply cannot work with the device tree overlays you're installing later on. That's why you have to modprobe various drivers.

As I stated in my post further up you can start off with a current Raspbian Jessie image and then run the following steps.

Code: Select all

$ wget https://www.dropbox.com/s/npjc52s2z6ifk55/pitft35r-overlay.dtb?dl=0 -O pitft35r-overlay.dtb
$ sudo mv pitft35r-overlay.dtb /boot/overlays/
$ wget https://raw.githubusercontent.com/adafruit/Adafruit-PiTFT-Helper/master/adafruit-pitft-helper
$ chmod +x adafruit-pitft-helper
$ sudo ./adafruit-pitft-helper -t 35r
NB: if you don't use SSH to log in and configure Raspbian then I would use raspi-config to set the boot method to boot to console.
When everything is working you can switch back to boot to desktop.

rvajf00
Posts: 4
Joined: Wed Mar 23, 2016 11:43 pm

Re: raspbery pi 3 PITFT PLUS

Thu Mar 24, 2016 1:07 am

Thanks for the reply. I have tried this method a few times and I always receive the message below when I run sudo startx.

Fatal server error: no screens found (EE)

I notice that I only have a /dev/fb0 and I am lacking the /dev/fb1 file. $FRAMEBUFFER is set to /dev/fb1 so that must be the issue, but I am unsure how to configure the PiTFT as /dev/fb1.

Thanks again!

DirkS
Posts: 9872
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: raspbery pi 3 PITFT PLUS

Thu Mar 24, 2016 9:08 am

rvajf00 wrote:I am unsure how to configure the PiTFT as /dev/fb1.
That should be done automagically when the driver is loaded.
Did you get any error messages when you ran the helper script?

Can you post the contents of /boot/config.txt and the output of

Code: Select all

lsmod

rvajf00
Posts: 4
Joined: Wed Mar 23, 2016 11:43 pm

Re: raspbery pi 3 PITFT PLUS

Thu Mar 24, 2016 12:39 pm

$ lsmod

Code: Select all

Module                  Size  Used by
bnep                   10336  2 
hci_uart               13533  1 
btbcm                   4196  1 hci_uart
bluetooth             317981  22 bnep,btbcm,hci_uart
joydev                  9024  0 
evdev                  10278  4 
brcmfmac              177635  0 
brcmutil                5501  1 brcmfmac
cfg80211              407580  1 brcmfmac
rfkill                 16036  4 cfg80211,bluetooth
i2c_bcm2708             4920  0 
spi_bcm2835             7074  0 
bcm2835_gpiomem         2860  0 
bcm2835_rng             1763  0 
hid_apple               4677  0 
snd_bcm2835            19802  0 
snd_pcm                73474  1 snd_bcm2835
snd_timer              18848  1 snd_pcm
snd                    50779  3 snd_bcm2835,snd_timer,snd_pcm
uio_pdrv_genirq         2944  0 
uio                     7753  1 uio_pdrv_genirq
stmpe_ts                3497  0 
i2c_dev                 5671  0 
fuse                   80694  1 
ipv6                  338660  32
/boot/config.txt

Code: Select all

# For more options and information see
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

# --- added by adafruit-pitft-helper Fri Mar 18 05:09:36 EDT 2016 ---
[pi1]
device_tree=bcm2708-rpi-b-plus.dtb
[pi2]
device_tree=bcm2709-rpi-2-b.dtb
[all]
dtparam=spi=on
dtparam=i2c1=on
dtparam=i2c_arm=on
dtoverlay=pitft35r,rotate=90,speed=42000000,fps=20
# --- end adafruit-pitft-helper Fri Mar 18 05:09:36 EDT 2016 ---
Thanks again!

DirkS
Posts: 9872
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: raspbery pi 3 PITFT PLUS

Fri Mar 25, 2016 1:22 am

Ok. The drivers for the screen are not loaded for some reason.
Can you check if the file /boot/overlays/pitft35r-overlay.dtb exists?
If it doesn't exist try to re-do the following steps

Code: Select all

wget https://www.dropbox.com/s/npjc52s2z6ifk55/pitft35r-overlay.dtb?dl=0 -O pitft35r-overlay.dtb
sudo mv pitft35r-overlay.dtb /boot/overlays/
and check carefully for any error messages (you can ignore the msg 'mv: failed to preserve ownership')

If it exists then check the output of

Code: Select all

file /boot/overlays/pitft35r-overlay.dtbb
Output should look like this:

Code: Select all

/boot/overlays/pitft35r-overlay.dtb: Device Tree Blob version 17, size=2658, boot CPU=0, string block size=458, DT structure block size=2144

rvajf00
Posts: 4
Joined: Wed Mar 23, 2016 11:43 pm

Re: raspbery pi 3 PITFT PLUS

Tue Mar 29, 2016 1:45 pm

I was able to get it working with a fresh Jessie and then following the "Detailed Install" on the adafruit site. They must have updated their kernel. Thanks all!

Return to “General discussion”