Collie714
Posts: 21
Joined: Thu Nov 22, 2012 2:07 pm

Re: 2.8" TFT + Touch Shield Board

Mon Nov 04, 2013 9:53 am

texy wrote:Hi,
that is strange - are there no error messages when running the program? How are you running it exactly?
Texy
No errors, I did notice that on the odd occasion there is a single line of pixels in multiple colours at the top of the display. I checked the code and it seems fine.

Just run it as

Code: Select all

sudo ./screentest.py
have the script saved in /home/pi

oh and I ran chmod +x and chmod 755 on the python script too so it was executable and anybody could run it.

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

Re: 2.8" TFT + Touch Shield Board

Mon Nov 04, 2013 10:43 am

I don't usually bother with that but use

Code: Select all

sudo python test.py
Incidently, please see the first post if you haven't already, where notro has introduced dma which can improve performance.
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

Collie714
Posts: 21
Joined: Thu Nov 22, 2012 2:07 pm

Re: 2.8" TFT + Touch Shield Board

Mon Nov 04, 2013 2:14 pm

still no joy. Tried that update (thanks for that, didnt spot that this morning). Retyped the code and went through it with a fine tooth comb. Still just a blank screen, it will read the touch positions and print them, but the screen is blank. Would it make a difference if I set up rasbian to boot to desktop or not?

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

Re: 2.8" TFT + Touch Shield Board

Mon Nov 04, 2013 2:47 pm

Hi,
no - incidently are you manually booting to desktop now, ie are you running the test program via XTerminal?
Have you tried just booting the Pi and NOT going into X11 ?
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

Collie714
Posts: 21
Joined: Thu Nov 22, 2012 2:07 pm

Re: 2.8" TFT + Touch Shield Board

Mon Nov 04, 2013 3:04 pm

I boot up without a display (only the TFT) and SSH onto the Pi and run it that way. Had to start off with a screen to enable SSH but once that was done I've been using SSH to make all the changes and run all the scripts. Most of the time with something like this it's something small and silly that I've missed, though I've ran through it a good few times. I'll give it another whack and follow each of the instructions carefully again.

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

Re: 2.8" TFT + Touch Shield Board

Mon Nov 04, 2013 3:49 pm

Did you make the changes to divert console to the TFT? So when the Pi is booted it would (normally) output the console to the hdmi screen, then it changes to the TFT part way through the boot . And if so are you seeing boot up console text on the TFT?
Incidently SSH is enabled by default on raspbian, or did you mean set up your wifi network. Thats the only thing I usually need to do in X11 on a fresh system install.
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

overkillah
Posts: 9
Joined: Tue Sep 24, 2013 8:48 am

Re: 2.8" TFT + Touch Shield Board

Mon Nov 04, 2013 10:10 pm

pi@raspbmc:~$ sudo wget https://raw.github.com/Hexxeh/rpi-updat ... rpi-update -O /usr/bin/rpi-update && sudo chmod +x /usr/bin/rpi-update
--2013-11-04 23:00:15-- https://raw.github.com/Hexxeh/rpi-updat ... rpi-update
Resolving raw.github.com (raw.github.com)... 185.31.16.133
Connecting to raw.github.com (raw.github.com)|185.31.16.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6782 (6.6K) [text/plain]
Saving to: `/usr/bin/rpi-update'

100%[============================================================================================================>] 6,782 --.-K/s in 0.002s

2013-11-04 23:00:24 (3.99 MB/s) - `/usr/bin/rpi-update' saved [6782/6782]

pi@raspbmc:~$ sudo mv /lib/modules/$(uname -r) /lib/modules/$(uname -r).bak
pi@raspbmc:~$ sudo uname -a
Linux raspbmc 3.10.17 #2 PREEMPT Mon Nov 4 03:32:53 UTC 2013 armv6l GNU/Linux
pi@raspbmc:~$ sudo -E RPI_UPDATE_UNSUPPORTED=0 REPO_URI=https://github.com/notro/rpi-firmware BRANCH=next rpi-update sudo reboot
*** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS
*** Performing self-update
--2013-11-04 23:04:45-- https://github.com/Hexxeh/rpi-update/ra ... rpi-update
Resolving github.com (github.com)... 192.30.252.128
Connecting to github.com (github.com)|192.30.252.128|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.github.com/Hexxeh/rpi-updat ... rpi-update [following]
--2013-11-04 23:04:55-- https://raw.github.com/Hexxeh/rpi-updat ... rpi-update
Resolving raw.github.com (raw.github.com)... 185.31.16.133
Connecting to raw.github.com (raw.github.com)|185.31.16.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6782 (6.6K) [text/plain]
Saving to: `/usr/bin/rpi-update.tmp'

100%[============================================================================================================>] 6,782 --.-K/s in 0.001s

2013-11-04 23:05:04 (4.75 MB/s) - `/usr/bin/rpi-update.tmp' saved [6782/6782]

*** Relaunching after update
*** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS
*** ARM/GPU split is now defined in /boot/config.txt using the gpu_mem option!
*** Downloading specific firmware revision (this will take a few minutes)
*** Decompressing downloaded firmware archive
--2013-11-04 23:05:04-- https://github.com/notro/rpi-firmware/tarball/sudo
Resolving github.com (github.com)... 192.30.252.131
Connecting to github.com (github.com)|192.30.252.131|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/notro/rpi-f ... ar.gz/sudo [following]
--2013-11-04 23:05:14-- https://codeload.github.com/notro/rpi-f ... ar.gz/sudo
Resolving codeload.github.com (codeload.github.com)... 192.30.252.146
Connecting to codeload.github.com (codeload.github.com)|192.30.252.146|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-11-04 23:05:24 ERROR 404: Not Found.

pi@raspbmc:~$

any idea why it not found

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

Re: 2.8" TFT + Touch Shield Board

Mon Nov 04, 2013 10:22 pm

Code: Select all

pi@raspbmc:~$ sudo -E RPI_UPDATE_UNSUPPORTED=0 REPO_URI=https://github.com/notro/rpi-firmware BRANCH=next rpi-update sudo reboot
The above is wrong - it should be :

Code: Select all

pi@raspbmc:~$ sudo -E RPI_UPDATE_UNSUPPORTED=0 REPO_URI=https://github.com/notro/rpi-firmware BRANCH=next rpi-update

Code: Select all

sudo reboot
Incidentally, those instructions are for raspbmc. I haven't tried them on anything else (ie raspbian)......
Hope this helps,
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

Collie714
Posts: 21
Joined: Thu Nov 22, 2012 2:07 pm

Re: 2.8" TFT + Touch Shield Board

Tue Nov 05, 2013 8:57 am

Just got it working there. Different memory card and no overclocking. Same setup as always though, maybe it was the overclocking settings!? I'm going to go back and check the old memory card I was using and see if disabling the overclock works. Thanks again for your help.

User avatar
paddyg
Posts: 2394
Joined: Sat Jan 28, 2012 11:57 am
Location: UK

Re: 2.8" TFT + Touch Shield Board

Tue Nov 05, 2013 4:06 pm

I've also just got round to sorting this out. I wanted to see what it would be like running pi3d with fbcp, and it actually turns out to be very good.
see this crappy video filmed with my phone
It's a lot clearer than that in real life, though obviously some of the fine detail gets a bit hard to see!
(I've not changed the input to use the touchscreen yet.)

When setting the touch shield board up initially I used a noobs card I've had for a month or so, right up to date with only a couple of other things installed. When I got to the instruction that said "the screen will now go black" it didn't, and nothing subsequently worked. Attempting to redo the steps from the beginning made matters worse as /lib/modules/3.6.11+ got moved over 3.6.11+.bak then not reproduced because everything was up to date! I started again with a fresh raspbian image and everything worked fine. I don't know what the issue was, everything I typed in seemed to run ok and I looked very carefully for typos.
also https://groups.google.com/forum/?hl=en-GB&fromgroups=#!forum/pi3d

overkillah
Posts: 9
Joined: Tue Sep 24, 2013 8:48 am

Re: 2.8" TFT + Touch Shield Board

Mon Nov 11, 2013 6:17 pm

It works now

thanks texy


for those who want to see the result

https://www.youtube.com/watch?v=MdqXjlpdEss

now i need to search how i can make it show after every boot

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

Re: 2.8" TFT + Touch Shield Board

Mon Nov 11, 2013 7:11 pm

Of course it works :lol:

Thanks for sharing, BTW I never got menu sounds to work in raspbmc (well not for a very long time) - is that the knocking sound I can hear in the youtube video?

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

overkillah
Posts: 9
Joined: Tue Sep 24, 2013 8:48 am

Re: 2.8" TFT + Touch Shield Board

Mon Nov 11, 2013 10:40 pm

texy wrote:Of course it works :lol:

Thanks for sharing, BTW I never got menu sounds to work in raspbmc (well not for a very long time) - is that the knocking sound I can hear in the youtube video?

Texy
in the beginning no that was my wireless rapoo keyboard its a bit slightly bend so it wiggle on a flat surface i was taping with one hand and using arrow keys to start the video

steezeburger
Posts: 2
Joined: Wed Nov 13, 2013 6:28 pm

Re: 2.8" TFT + Touch Shield Board

Wed Nov 13, 2013 6:39 pm

I searched the forums and web as best I could for an answer, but could not find what I was looking for.

I'm using the Adafruit 2.8" TFT Touch Shield, and I was wondering if anyone has any idea what the pinouts are? The pins are labeled according to the Arduino libraries, and Adafruit does not seem to have any documentation about the physical pinouts. The datasheet for the ILI9325 is also of no help, because it only shows block diagrams and not the physical layout.

I'm sure I could get this screen to work with my RPi, I'm just not sure how to wire it correctly.

User avatar
paddyg
Posts: 2394
Joined: Sat Jan 28, 2012 11:57 am
Location: UK

Re: 2.8" TFT + Touch Shield Board

Wed Nov 13, 2013 11:51 pm

Here's some good stuff about reverse engineering a tft. It's an ILI9163, don't know how much that differs. ps @Antares seems to have taught himself to program, from scratch, by converting the C code to python! see here
also https://groups.google.com/forum/?hl=en-GB&fromgroups=#!forum/pi3d

steezeburger
Posts: 2
Joined: Wed Nov 13, 2013 6:28 pm

Re: 2.8" TFT + Touch Shield Board

Thu Nov 14, 2013 12:53 pm

Thank you. That is a very good starting point and seems to have some very good information. At this point, though, I have decided to purchase a screen with a breakout board made for the Pi. I did not want to separate the screen from the breakout for fear that I would not be able to properly reconnect the very small ribbon cables. I also need to finish a prototype of my product soon, so time is important. And, I don't mind having more than one screen laying around for projects (it was only 17 USD).

At some point though, I would not mind also getting the Adafruit screen working with the RPi. I will post then if I get anything working. If I can find what pins from the ILI9325 go to the breakout and their proper labels, I should most likely be able to get the screen to work.

Chanakan Jumnongwit
Posts: 5
Joined: Sun Oct 20, 2013 5:39 am
Location: Thailand

Re: 2.8" TFT + Touch Shield Board

Fri Nov 15, 2013 10:52 am

Hi texy
I have problem

sudo mv /lib/modules/$(uname -r) /lib/modules/$(uname -r).bak
mv :cannot stat \lib\module\3.6.11+ No usch file directory

# Install and restart the pi
CODE: SELECT ALL
sudo REPO_URI=https://github.com/notro/rpi-firmware rpi-update
failed to download
help me pls
thank
gun

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

Re: 2.8" TFT + Touch Shield Board

Fri Nov 15, 2013 11:09 am

Chanakan Jumnongwit wrote:Hi texy
I have problem

sudo mv /lib/modules/$(uname -r) /lib/modules/$(uname -r).bak
mv :cannot stat \lib\module\3.6.11+ No usch file directory
You can ignore that.
Chanakan Jumnongwit wrote: # Install and restart the pi
sudo REPO_URI=https://github.com/notro/rpi-firmware rpi-update
failed to download
help me pls
thank
gun
? bad internet connection?
Try again ;)

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

Chanakan Jumnongwit
Posts: 5
Joined: Sun Oct 20, 2013 5:39 am
Location: Thailand

Re: 2.8" TFT + Touch Shield Board

Fri Nov 15, 2013 11:25 am

texy wrote:
Chanakan Jumnongwit wrote:Hi texy
I have problem

sudo mv /lib/modules/$(uname -r) /lib/modules/$(uname -r).bak
mv :cannot stat \lib\module\3.6.11+ No usch file directory
You can ignore that.
Chanakan Jumnongwit wrote: # Install and restart the pi
sudo REPO_URI=https://github.com/notro/rpi-firmware rpi-update
failed to download
help me pls
thank
gun
? bad internet connection?
Try again ;)

Texy
Hi texy

I'm try for 4-5 time but it's have same problem.
Resolving github.com (github.com) ... failed: Name or service not known
wget: unable to resolv host address
!!! failed to download update for rpi-update
!!! Make sure you have ca-certificates installed and that the time is set correctly

i don't know how to
thank you
gun

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

Re: 2.8" TFT + Touch Shield Board

Fri Nov 15, 2013 11:40 am

Which raspberry pi os are you using (exactly) ?
Looks like you have a problem with your internet...............
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

Chanakan Jumnongwit
Posts: 5
Joined: Sun Oct 20, 2013 5:39 am
Location: Thailand

Re: 2.8" TFT + Touch Shield Board

Fri Nov 15, 2013 11:45 am

texy wrote:Which raspberry pi os are you using (exactly) ?
Looks like you have a problem with your internet...............
Texy

Hi texy

it's have other method to install it i'm try again but it can't install :cry: :cry: :cry:

thank gun

webdirector
Posts: 18
Joined: Wed Jan 02, 2013 1:35 am

Re: 2.8" TFT + Touch Shield Board

Sat Nov 16, 2013 7:34 pm

Hello Texy,

just a quick question.

I want my screnn to be turned on at boot.

I know when i input " con2fbmap 1 1 " i get the console. But can I set it up so it boots right away into the screen ?

Thanks

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

Re: 2.8" TFT + Touch Shield Board

Sat Nov 16, 2013 8:48 pm

Hi,
this part of the setup instructions :
Finally, to allow the console to be shown on the display from boot-up modify /boot/cmdline.txt :

Code: Select all

sudo nano /boot/cmdline.txt
and add the following TO THE END OF THE LINE :

Code: Select all

 fbcon=map:10 fbcon=font:VGA8x8
directs the output console to the TFT display, but anything prior to that will be directed to the main output (if one is connected) - the system doesn't know to redirect the output until is gets reads that command in the boot-up process.
Hope this helps,
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

webdirector
Posts: 18
Joined: Wed Jan 02, 2013 1:35 am

Re: 2.8" TFT + Touch Shield Board

Sun Nov 17, 2013 10:57 am

Hello,

I have this in the cmdline.txt :

dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
fbcon=map:10 fbcon=font:VGA8x8

but I i boot it up it still does not start into screen.

I always need to type into terminal "con2fbmap 1 1"

then I get the screen

Rgds

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

Re: 2.8" TFT + Touch Shield Board

Sun Nov 17, 2013 11:25 am

Do you have an hdmi device connected?

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

Return to “HATs and other add-ons”