tiagojanz
Posts: 3
Joined: Thu Dec 12, 2013 11:12 am

Re: 2.8" TFT + Touch Shield Board v2

Wed Apr 30, 2014 4:53 pm

Hi,

Is it compatible with piface?

thank you

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

Re: 2.8" TFT + Touch Shield Board v2

Wed Apr 30, 2014 5:00 pm

This is what the TFT Shield boards uses :
"hardware SPI ( SLCK, MOSI, MISO, CE0 & CE1 ) plus 3 additional GPIO lines ( GPIO17, GPIO18 & GPIO25 )"

So as long as the piface doesn't clash with those pins then yes. You'll need to make a suitable cable to join the 2 boards together though.
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

James21170
Posts: 8
Joined: Wed Apr 30, 2014 10:41 pm

2.8" TFT reversed display issue.

Wed Apr 30, 2014 10:58 pm

Hello Texy, I received your TFT via eBay but have an issue with it.

The display is reversed some how. I've been reading and trying all sorts to get it to work but to no avail..

When I say the display is reversed I mean all the writing is backwards..!!!!
The icons are reversed too..!!!

Is there a setting in a conf file I need to change etc..????

Can anyone assist in getting the display the correct way around.. Has anyone else had this.

Kind regards, James.
image.jpg
image.jpg (26.73 KiB) Viewed 5332 times
Attachments
image.jpg
image.jpg (26.73 KiB) Viewed 5332 times

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

Re: 2.8" TFT reversed display issue.

Thu May 01, 2014 6:34 am

Hi James,
please look at the instructions again and tell me which image you have downloaded?
Rgds,
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

shane11
Posts: 1
Joined: Thu May 01, 2014 7:48 am

Re: 2.8" TFT + Touch Shield Board v2

Thu May 01, 2014 8:03 am

Hi Texy, I received my 2.8in touch screen a few weeks ago. I just wanted to say how good it is!
I followed your instructions and it all worked fine.
One question - is it possible to switch it back to HDMI output temporarily?
I am running an application that needs to be set up but I can't get at the set up commands/buttons!
I'm still trying to work out how it all works - it's an uphill struggle.
Regards Shane.

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

Re: 2.8" TFT + Touch Shield Board v2

Thu May 01, 2014 9:52 am

Thank you Shane.
For switching between screens, see the fbtft wiki page -
https://github.com/notro/fbtft-spindle/wiki/FBTFT-image

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

JettaGLI
Posts: 3
Joined: Mon Apr 07, 2014 3:58 am

Re: 2.8" TFT + Touch Shield Board v2

Mon May 12, 2014 4:31 pm

Hi Texy
Now I am having a problem with nano /etc/rc.local for Standalone mode, with your system image, it says no such file, so which means I can't entry the Standalone mode, could you please help me with it?
Best Regard!

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

Re: 2.8" TFT + Touch Shield Board v2

Mon May 12, 2014 4:40 pm

Hmm. Perhaps you deleted it by mistake? I can find it on my system OK. :

Code: Select all

[email protected] ~ $ sudo find / -name rc.local
/etc/rc.local
/etc/init.d/rc.local
[email protected] ~ $
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

Julian
Posts: 15
Joined: Fri Jun 29, 2012 9:24 am

Re: 2.8" TFT + Touch Shield Board v2

Sat May 24, 2014 5:15 pm

I got your display in the mail today. Sadly I can't get it to work properly (I tried it on the old and the new model B RPi). It worked once
at the first boot but after the card resize and the automatic reboot the display goes black for a brief second and then white again. Dmesg shows the correct command line argument and output from fbtft that says a device was attached (with debug and verbose set to 1). Loading the module by hand does nothing. lsmod does not show the fbtft module. A fb1 device is created but the display stays white. Since it worked once I am pretty sure that it is no hardware problem. I checked various cards and psus but no luck. I also tried to reduce the SPI clock rate but no luck either. Any ideas?

//edit: Alright, seems to be some kind of timing issue. When I set debug=3 and verbose=2 the display works.

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

Re: 2.8" TFT + Touch Shield Board v2

Mon May 26, 2014 8:36 am

Well that is strange - adding debug and/or verbose shouldn't affect the timings, and it should 'just work' with notro's image. Maybe changing those parameters is a red herring - have you tried to undo those changes and see if it 'breaks' 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

markyp
Posts: 5
Joined: Mon May 26, 2014 10:21 am

Re: 2.8" TFT + Touch Shield Board v2

Mon May 26, 2014 10:31 am

Hi,

2.8" TFT + Touch Shield Display Board for Raspberry Pi fully assembled

very interested in the above.....What do you have available?
best to go through fleabay?

Mark

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

Re: 2.8" TFT + Touch Shield Board v2

Mon May 26, 2014 10:50 am

Hi,
plenty of stock! I will PM you,
regards,
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

Julian
Posts: 15
Joined: Fri Jun 29, 2012 9:24 am

Re: 2.8" TFT + Touch Shield Board v2

Mon May 26, 2014 8:19 pm

texy wrote:Well that is strange - adding debug and/or verbose shouldn't affect the timings, and it should 'just work' with notro's image. Maybe changing those parameters is a red herring - have you tried to undo those changes and see if it 'breaks' again?
Texy
Yes I did. Removing the parameters 'breaks' the screen. Also when I change them back I have to power off the pi and the screen before it works again, a reboot does not help (not 100% sure on that but seems to be the case). I also added some new flux and resoldered the 2mm screen headers but no luck either.
I will investigate this again on the weekend when I hopefully have more time.

markyp
Posts: 5
Joined: Mon May 26, 2014 10:21 am

Re: 2.8" TFT + Touch Shield Board v2

Fri May 30, 2014 2:53 pm

Hi Texy,

Received the TFT...thanks!

Having a couple of issues unfortunately.
Can't seem to get anything other than a white screen!
used notro's image....
2014-01-07-wheezy-raspbian-2014-03-12-fbtft-hy28b.img
accessing via tightvncserver shows that the distro is running fine, etc....
Am I missing anything obvious?


dmesg give the following....
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.10.33+ ([email protected]) (gcc version 4.7.1 20120402 (prerelease) (crosstool-NG 1.15.2) ) #1 PREEMPT Sat Mar 8 18:51:35 CET 2014
[ 0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[ 0.000000] Machine: BCM2708
[ 0.000000] cma: CMA: reserved 16 MiB at 1b000000
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] On node 0 totalpages: 114688
[ 0.000000] free_area_init_node: node 0, pgdat c06075f4, node_mem_map c06b8000
[ 0.000000] Normal zone: 896 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 114688 pages, LIFO batch:31
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 113792
[ 0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708.boardrev=0xe bcm2708.serial=0xb0031dbd smsc95xx.macaddr=B8:27:EB:03:1D:BD sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 448MB = 448MB total
[ 0.000000] Memory: 431416k/431416k available, 27336k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xdc800000 - 0xff000000 ( 552 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xdc000000 ( 448 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc05a0568 (5730 kB)
[ 0.000000] .init : 0xc05a1000 - 0xc05c62e4 ( 149 kB)
[ 0.000000] .data : 0xc05c8000 - 0xc06080f0 ( 257 kB)
[ 0.000000] .bss : 0xc06080f0 - 0xc06b7620 ( 702 kB)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] NR_IRQS:394
[ 0.000000] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 4294967ms
[ 0.000000] Switching to timer-based delay loop
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] console [tty1] enabled
[ 0.001141] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000)
[ 0.001204] pid_max: default: 32768 minimum: 301
[ 0.001696] Mount-cache hash table entries: 512
[ 0.002509] Initializing cgroup subsys memory
[ 0.002615] Initializing cgroup subsys devices
[ 0.002653] Initializing cgroup subsys freezer
[ 0.002684] Initializing cgroup subsys blkio
[ 0.002847] CPU: Testing write buffer coherency: ok
[ 0.003303] Setting up static identity map for 0xc0421010 - 0xc042106c
[ 0.005083] devtmpfs: initialized
[ 0.023726] NET: Registered protocol family 16
[ 0.029770] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[ 0.031081] bcm2708.uart_clock = 0
[ 0.032840] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[ 0.032897] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.032934] mailbox: Broadcom VideoCore Mailbox driver
[ 0.033034] bcm2708_vcio: mailbox at f200b880
[ 0.033141] bcm_power: Broadcom power driver
[ 0.033179] bcm_power_open() -> 0
[ 0.033205] bcm_power_request(0, 8)
[ 0.533923] bcm_mailbox_read -> 00000080, 0
[ 0.533964] bcm_power_request -> 0
[ 0.534212] Serial: AMBA PL011 UART driver
[ 0.534356] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83) is a PL011 rev3
[ 0.872763] console [ttyAMA0] enabled
[ 0.898869] bio: create slab <bio-0> at 0
[ 0.904360] SCSI subsystem initialized
[ 0.908330] usbcore: registered new interface driver usbfs
[ 0.914035] usbcore: registered new interface driver hub
[ 0.919599] usbcore: registered new device driver usb
[ 0.926286] Switching to clocksource stc
[ 0.930633] FS-Cache: Loaded
[ 0.933817] CacheFiles: Loaded
[ 0.949323] NET: Registered protocol family 2
[ 0.954728] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.961996] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.968520] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.975008] TCP: reno registered
[ 0.978266] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.984174] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.990917] NET: Registered protocol family 1
[ 0.995842] RPC: Registered named UNIX socket transport module.
[ 1.001904] RPC: Registered udp transport module.
[ 1.006630] RPC: Registered tcp transport module.
[ 1.011380] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 1.018858] bcm2708_dma: DMA manager at f2007000
[ 1.023680] bcm2708_gpio: bcm2708_gpio_probe c05d5f10
[ 1.029147] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[ 1.038568] audit: initializing netlink socket (disabled)
[ 1.044239] type=2000 audit(0.900:1): initialized
[ 1.210135] VFS: Disk quotas dquot_6.5.2
[ 1.214506] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 1.223364] FS-Cache: Netfs 'nfs' registered for caching
[ 1.230031] NFS: Registering the id_resolver key type
[ 1.235337] Key type id_resolver registered
[ 1.239546] Key type id_legacy registered
[ 1.244332] msgmni has been set to 874
[ 1.250225] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[ 1.258090] io scheduler noop registered
[ 1.262172] io scheduler deadline registered (default)
[ 1.267657] io scheduler cfq registered
[ 1.273059] BCM2708FB: allocated DMA memory 5b400000
[ 1.278111] BCM2708FB: allocated DMA channel 0 @ f2007000
[ 1.291311] Console: switching to colour frame buffer device 82x26
[ 1.303055] uart-pl011 dev:f1: no DMA platform data
[ 1.309388] kgdb: Registered I/O driver kgdboc.
[ 1.316019] vc-cma: Videocore CMA driver
[ 1.321352] vc-cma: vc_cma_base = 0x00000000
[ 1.327318] vc-cma: vc_cma_size = 0x00000000 (0 MiB)
[ 1.334034] vc-cma: vc_cma_initial = 0x00000000 (0 MiB)
[ 1.349725] brd: module loaded
[ 1.359128] loop: module loaded
[ 1.363840] vchiq: vchiq_init_state: slot_zero = 0xdb000000, is_master = 0
[ 1.372928] Loading iSCSI transport class v2.0-870.
[ 1.380730] bcm2708_spi bcm2708_spi.0: DMA channel 2 at address 0xf2007200 with irq 77
[ 1.391652] bcm2708_spi bcm2708_spi.0: DMA channel 4 at address 0xf2007400 with irq 20
[ 1.402613] bcm2708_spi bcm2708_spi.0: SPI Controller at 0x20204000 (irq 80)
[ 1.411174] bcm2708_spi bcm2708_spi.0: SPI Controller running in dma mode
[ 1.419416] CAN device driver interface
[ 1.424779] usbcore: registered new interface driver smsc95xx
[ 1.432015] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 1.639486] Core Release: 2.80a
[ 1.644145] Setting default values for core params
[ 1.650398] Finished setting default values for core params
[ 1.857414] Using Buffer DMA mode
[ 1.862183] Periodic Transfer Interrupt Enhancement - disabled
[ 1.869452] Multiprocessor Interrupt Enhancement - disabled
[ 1.876519] OTG VER PARAM: 0, OTG VER FLAG: 0
[ 1.882458] Dedicated Tx FIFOs mode
[ 1.888004] dwc_otg: Microframe scheduler enabled
[ 1.888252] dwc_otg bcm2708_usb: DWC OTG Controller
[ 1.894791] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[ 1.903650] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[ 1.910704] Init: Port Power? op_state=1
[ 1.916079] Init: Power Port (0)
[ 1.920804] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.929013] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.937641] usb usb1: Product: DWC OTG Controller
[ 1.943702] usb usb1: Manufacturer: Linux 3.10.33+ dwc_otg_hcd
[ 1.950930] usb usb1: SerialNumber: bcm2708_usb
[ 1.957589] hub 1-0:1.0: USB hub found
[ 1.962778] hub 1-0:1.0: 1 port detected
[ 1.968340] dwc_otg: FIQ enabled
[ 1.968359] dwc_otg: NAK holdoff enabled
[ 1.968369] dwc_otg: FIQ split fix enabled
[ 1.968387] Module dwc_common_port init
[ 1.968851] usbcore: registered new interface driver usb-storage
[ 1.976694] mousedev: PS/2 mouse device common for all mice
[ 1.984381] bcm2835-cpufreq: min=700000 max=700000 cur=700000
[ 1.991664] bcm2835-cpufreq: switching to governor powersave
[ 1.998616] bcm2835-cpufreq: switching to governor powersave
[ 2.005544] cpuidle: using governor ladder
[ 2.010881] cpuidle: using governor menu
[ 2.016040] sdhci: Secure Digital Host Controller Interface driver
[ 2.023479] sdhci: Copyright(c) Pierre Ossman
[ 2.029117] sdhci: Enable low-latency mode
[ 2.080387] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's DMA
[ 2.090841] mmc0: BCM2708 SDHC host at 0x20300000 DMA 5 IRQ 21
[ 2.098057] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.105185] ledtrig-cpu: registered to indicate activity on CPUs
[ 2.114802] hidraw: raw HID events driver (C) Jiri Kosina
[ 2.129100] usbcore: registered new interface driver usbhid
[ 2.136137] usbhid: USB HID core driver
[ 2.145986] TCP: cubic registered
[ 2.152748] Initializing XFRM netlink socket
[ 2.160559] Indeed it is in host mode hprt0 = 00021501
[ 2.167146] NET: Registered protocol family 17
[ 2.183450] can: controller area network core (rev 20120528 abi 9)
[ 2.200434] NET: Registered protocol family 29
[ 2.206221] can: netlink gateway (rev 20130117) max_hops=1
[ 2.240521] Key type dns_resolver registered
[ 2.246738] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[ 2.259464] mmc0: read SD Status register (SSR) after 3 attempts
[ 2.281193] registered taskstats version 1
[ 2.291072] mmc0: new high speed SDHC card at address b368
[ 2.309242] mmcblk0: mmc0:b368 SDC 7.51 GiB
[ 2.317054] mmcblk0: p1 p2
[ 2.339967] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 2.351200] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 2.361872] devtmpfs: mounted
[ 2.366840] Freeing unused kernel memory: 148K (c05a1000 - c05c6000)
[ 2.420514] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 2.428775] Indeed it is in host mode hprt0 = 00001101
[ 2.640940] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[ 2.649360] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 2.662997] hub 1-1:1.0: USB hub found
[ 2.669598] hub 1-1:1.0: 5 ports detected
[ 2.960615] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[ 3.091159] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[ 3.099685] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 3.129605] smsc95xx v1.0.4
[ 3.195855] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:03:1d:bd
[ 3.875389] udevd[157]: starting version 175
[ 5.678472] bcm2708-i2s bcm2708-i2s.0: Failed to create debugfs directory
[ 9.295591] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 9.747116] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 17.098452] EXT4-fs (mmcblk0p2): resizing filesystem from 707840 to 1954560 blocks
[ 17.520702] EXT4-fs (mmcblk0p2): resized filesystem to 1954560
[ 20.816774] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[ 22.358732] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[ 25.452203] Adding 102396k swap on /var/swap. Priority:-1 extents:2 across:2723836k SSFS

appreciate any help,

Mark

markyp
Posts: 5
Joined: Mon May 26, 2014 10:21 am

Re: 2.8" TFT + Touch Shield Board v2

Fri May 30, 2014 3:42 pm

as a follow on to my previous post, using the "manual route", i.e.

sudo modprobe fbtft dma
sudo modprobe fbtft_device name=hy28b rotate=90
fbtft dma
fbtft_device name=hy28b rotate=90
ads7846_device pressure_max=255 y_min=190 y_max=3850 gpio_pendown=17 x_max=3850 x_min=230 x_plate_ohms=100 swap_xy=1 verbose=3


results in the addition of the following at the end of the dmesg output

9.786601] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 10.702486]
[ 10.702486]
[ 10.702486] ads7846_device: ads7846_device_init()
[ 10.713875] ads7846_device: SPI devices registered:
[ 10.719905] ads7846_device:
[ 10.723827] ads7846_device: Settings:
[ 10.728549] ads7846_device: model = 7846
[ 10.733704] ads7846_device: gpio_pendown = 17
[ 10.739245] ads7846_device: swap_xy = 1
[ 10.744299] ads7846_device: x_min = 230
[ 10.749290] ads7846_device: x_max = 3850
[ 10.754339] ads7846_device: y_min = 190
[ 10.759237] ads7846_device: y_max = 3850
[ 10.764196] ads7846_device: x_plate_ohms = 100
[ 10.769615] ads7846_device: pressure_min = 0
[ 10.774850] ads7846_device: pressure_max = 255
[ 10.780185] ads7846_device: keep_vref_on = 1
[ 10.785350] ads7846_device: vref_delay_usecs = 0
[ 10.790894] ads7846_device: vref_mv = 0
[ 10.795628] ads7846_device: settle_delay_usecs = 0
[ 10.801368] ads7846_device: penirq_recheck_delay_usecs = 0
[ 10.807779] ads7846_device: y_plate_ohms = 0
[ 10.813025] ads7846_device: debounce_max = 0
[ 10.818227] ads7846_device: debounce_tol = 0
[ 10.823433] ads7846_device: debounce_rep = 0
[ 10.840498] ads7846_device: SPI devices registered:
[ 10.846231] ads7846_device: ads7846 spi0.1 2000kHz 8 bits mode=0x00
[ 10.857288] ads7846_device:
[ 10.880611] ads7846 spi0.1: touchscreen, irq 187
[ 10.891421] input: ADS7846 Touchscreen as /devices/platform/bcm2708_spi.0/spi_master/spi0/spi0.1/input/input0
[ 18.744319] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[ 20.374271] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[ 23.139404] Adding 102396k swap on /var/swap. Priority:-1 extents:2 across:2723836k SSFS


however, the line
[ 14.567335] graphics fb1: fb_ili9325 frame buffer, 320x240, 150 KiB video memory, 4 KiB DMA buffer memory, fps=50, spi0.0 at 48 MHz
is missing!!!

trying to run the test python program than uses pygame gives the output;
screen = pygame.display.set_mode((320, 240), 0, 32)
pygame.error: Unable to open /dev/fb1


looking in /dev/ there is no fb1 (but there is fb0 and fd)

is this the issue?

Mark

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

Re: 2.8" TFT + Touch Shield Board v2

Fri May 30, 2014 5:07 pm

Hi Mark,
sorry you are having problems. It would appear that the problem is software/image related. The Pi does NOT need to have a display connected in order to produce /dev/fb1.
I get this when I boot an a fbtft os (http://tronnes.org/downloads/2014-01-07 ... -hy28b.zip), but no TFT connected :

Code: Select all

[email protected] ~ $ dmesg | grep fb1
[    2.057860] graphics fb1: fb_ili9325 frame buffer, 320x240, 150 KiB video memory, 4 KiB DMA buffer memory, fps=50, spi0.0 at 48 MHz
[email protected] ~ $
I would suggest downloading again and/or format/re-write SD card.
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

markyp
Posts: 5
Joined: Mon May 26, 2014 10:21 am

Re: 2.8" TFT + Touch Shield Board v2

Fri May 30, 2014 5:27 pm

Thanks, I'll give it a go!
texy wrote:Hi Mark,
sorry you are having problems. It would appear that the problem is software/image related. The Pi does NOT need to have a display connected in order to produce /dev/fb1.
I get this when I boot an a fbtft os (http://tronnes.org/downloads/2014-01-07 ... -hy28b.zip), but no TFT connected :

Code: Select all

[email protected] ~ $ dmesg | grep fb1
[    2.057860] graphics fb1: fb_ili9325 frame buffer, 320x240, 150 KiB video memory, 4 KiB DMA buffer memory, fps=50, spi0.0 at 48 MHz
[email protected] ~ $
I would suggest downloading again and/or format/re-write SD card.
Texy

cuscus60
Posts: 8
Joined: Mon Jan 07, 2013 10:29 am

Re: 2.8" TFT + Touch Shield Board v2

Sat May 31, 2014 12:39 pm

I don't understand if i have a defect display or i made some mistake... i followed the instruction the easy way and the manual way, but in both cases the screen remains white, the touchscreen works. If i load the fbtft modules manually i have no errors on dmesg, the screen becomes black for one second, then stays white. If i run the python script touchv6.py i get no images, only white screen flickering, i run it from ssh and on the ssh console i read pos: xy scrolling many times.
In the attached image there is a screennshot of the display during boot time, i can see just a pale shade of the console messages on the lcd screen, nothing more and even worst now it is always white, also the shade disappeared. I have tried loading module with verbose=2 and debug=3 but i see no changes. I double checked the connection to the screen and the raspberry, everything seems correct, following this schema
HY28B LCD GPIO name RPi Pin
3V3_in————–3.3V—————-1
GND—————-GND—————-6
LCD_SCK———-SCLK—————23
LCD_SDO———MISO—————21
LCD_SDI———–MOSI—————19
LCD_CS————CE0—————–24
LCD_RST———-GPIO25————22
TP_SCK————SCLK—————-23
TP_SDO———–MISO—————-21
TP_SDI————-MOSI—————19
TP_CS————–CE1——————26
TP_IRQ————GPIO17————-11
BL_CTRL———-GPIO18————-12

What is your opinion?
Attachments
2014-05-032.jpg
terminal console screen
2014-05-032.jpg (43.72 KiB) Viewed 4664 times

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

Re: 2.8" TFT + Touch Shield Board v2

Sat May 31, 2014 1:22 pm

Hi,
Did you buy one of my kits?
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

cuscus60
Posts: 8
Joined: Mon Jan 07, 2013 10:29 am

Re: 2.8" TFT + Touch Shield Board v2

Sun Jun 01, 2014 8:42 am

No Texy i've bought it directly from hotmcu and connected to the raspi with 2mm connector taken from an old decoder. I'm using a 'slice of pi/o' extender so i cant use your board directly attached to the raspi. But in my tests i also tried to connect the display directly to the raspi without the extender, but the result is the same.

markyp
Posts: 5
Joined: Mon May 26, 2014 10:21 am

Re: 2.8" TFT + Touch Shield Board v2

Sun Jun 01, 2014 3:37 pm

used this image
2014-01-07-wheezy-raspbian-2014-03-12-fbtft-master-firmware.zip
and it now works!
Don't know why??

Mark

markyp wrote:Thanks, I'll give it a go!
texy wrote:Hi Mark,
sorry you are having problems. It would appear that the problem is software/image related. The Pi does NOT need to have a display connected in order to produce /dev/fb1.
I get this when I boot an a fbtft os (http://tronnes.org/downloads/2014-01-07 ... -hy28b.zip), but no TFT connected :

Code: Select all

[email protected] ~ $ dmesg | grep fb1
[    2.057860] graphics fb1: fb_ili9325 frame buffer, 320x240, 150 KiB video memory, 4 KiB DMA buffer memory, fps=50, spi0.0 at 48 MHz
[email protected] ~ $
I would suggest downloading again and/or format/re-write SD card.
Texy

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

Re: 2.8" TFT + Touch Shield Board v2

Sun Jun 01, 2014 3:42 pm

cuscus60 wrote:No Texy i've bought it directly from hotmcu and connected to the raspi with 2mm connector taken from an old decoder. I'm using a 'slice of pi/o' extender so i cant use your board directly attached to the raspi. But in my tests i also tried to connect the display directly to the raspi without the extender, but the result is the same.
I,m not sure. A small percentage of the displays I buy do not work at 48mhz, which they are not spec'ed to anyway. You could try 32mhz or lower. Also how long are the wires you are using? Too long and signal loss could be a factor.
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

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

Re: 2.8" TFT + Touch Shield Board v2

Sun Jun 01, 2014 3:43 pm

markyp wrote:used this image
2014-01-07-wheezy-raspbian-2014-03-12-fbtft-master-firmware.zip
and it now works!
Don't know why??

Mark

markyp wrote:Thanks, I'll give it a go!
texy wrote:Hi Mark,
sorry you are having problems. It would appear that the problem is software/image related. The Pi does NOT need to have a display connected in order to produce /dev/fb1.
I get this when I boot an a fbtft os (http://tronnes.org/downloads/2014-01-07 ... -hy28b.zip), but no TFT connected :

Code: Select all

[email protected] ~ $ dmesg | grep fb1
[    2.057860] graphics fb1: fb_ili9325 frame buffer, 320x240, 150 KiB video memory, 4 KiB DMA buffer memory, fps=50, spi0.0 at 48 MHz
[email protected] ~ $
I would suggest downloading again and/or format/re-write SD card.
Texy
Did you re-try the HY28B image as well ?
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

fredaunger
Posts: 20
Joined: Wed May 14, 2014 6:24 pm

Re: 2.8" TFT + Touch Shield Board v2

Wed Jun 04, 2014 11:48 am

Hi Texy
Got your. Board kit built it and it works perfectly. Got any ideas for a enclosure.
Regards
Fred Aunger

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

Re: 2.8" TFT + Touch Shield Board v2

Wed Jun 04, 2014 5:16 pm

fredaunger wrote:Hi Texy
Got your. Board kit built it and it works perfectly. Got any ideas for a enclosure.
Regards
Fred Aunger
Hi,
Glad you like it ;-)
Look at the 1st post for the cases I sell. I am now out of stock but will be getting clear cases in shortly.
Thanks
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”