anlumo
Posts: 7
Joined: Wed Jul 03, 2013 11:59 pm

Re: 2.8" TFT + Touch Shield Board

Tue Jul 16, 2013 4:05 pm

bob_binz wrote:can you post your entire dmesg?

Code: Select all

[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.6.11+ (pi@raspberrypi) (gcc version 4.6.3 (Debian 4.6.3-14+rpi1) ) #1 PREEMPT Sun Jul 7 18:07:30 UTC 2013
[    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 17000000
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] On node 0 totalpages: 98304
[    0.000000] free_area_init_node: node 0, pgdat c0555b6c, node_mem_map c05ff000
[    0.000000]   Normal zone: 768 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 97536 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: 97536
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708.boardrev=0xd bcm2708.serial=0xc80097e7 smsc95xx.macaddr=B8:27:EB:00:97:E7 sdhci-bcm2708.emmc_clock_freq=100000000 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: 384MB = 384MB total
[    0.000000] Memory: 367136k/367136k available, 26080k 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 : 0xd8800000 - 0xff000000   ( 616 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd8000000   ( 384 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0500578   (5090 kB)
[    0.000000]       .init : 0xc0501000 - 0xc0521dd0   ( 132 kB)
[    0.000000]       .data : 0xc0522000 - 0xc0556380   ( 209 kB)
[    0.000000]        .bss : 0xc05563a4 - 0xc05feff8   ( 676 kB)
[    0.000000] NR_IRQS:330
[    0.000000] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 4294967ms
[    0.000000] Console: colour dummy device 80x30
[    0.000000] console [tty1] enabled
[    0.000998] Calibrating delay loop... 697.95 BogoMIPS (lpj=3489792)
[    0.060129] pid_max: default: 32768 minimum: 301
[    0.060464] Mount-cache hash table entries: 512
[    0.061203] Initializing cgroup subsys cpuacct
[    0.061258] Initializing cgroup subsys devices
[    0.061291] Initializing cgroup subsys freezer
[    0.061322] Initializing cgroup subsys blkio
[    0.061410] CPU: Testing write buffer coherency: ok
[    0.061739] hw perfevents: enabled with v6 PMU driver, 3 counters available
[    0.061881] Setting up static identity map for 0x3ab688 - 0x3ab6e4
[    0.063387] devtmpfs: initialized
[    0.073869] NET: Registered protocol family 16
[    0.080256] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.081339] bcm2708.uart_clock = 0
[    0.082684] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.082738] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.082775] mailbox: Broadcom VideoCore Mailbox driver
[    0.082865] bcm2708_vcio: mailbox at f200b880
[    0.082965] bcm_power: Broadcom power driver
[    0.083003] bcm_power_open() -> 0
[    0.083029] bcm_power_request(0, 8)
[    0.583719] bcm_mailbox_read -> 00000080, 0
[    0.583760] bcm_power_request -> 0
[    0.583787] Serial: AMBA PL011 UART driver
[    0.583928] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83) is a PL011 rev3
[    0.902466] console [ttyAMA0] enabled
[    0.926063] bio: create slab <bio-0> at 0
[    0.930945] SCSI subsystem initialized
[    0.935025] usbcore: registered new interface driver usbfs
[    0.940607] usbcore: registered new interface driver hub
[    0.946194] usbcore: registered new device driver usb
[    0.952575] Switching to clocksource stc
[    0.956819] FS-Cache: Loaded
[    0.959952] CacheFiles: Loaded
[    0.974754] NET: Registered protocol family 2
[    0.980023] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[    0.987760] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
[    0.994550] TCP: Hash tables configured (established 16384 bind 16384)
[    1.001156] TCP: reno registered
[    1.004412] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    1.010311] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    1.016904] NET: Registered protocol family 1
[    1.021775] RPC: Registered named UNIX socket transport module.
[    1.027821] RPC: Registered udp transport module.
[    1.032544] RPC: Registered tcp transport module.
[    1.037291] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.044372] bcm2708_dma: DMA manager at f2007000
[    1.049179] bcm2708_gpio: bcm2708_gpio_probe c052fdb8
[    1.054620] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[    1.063805] audit: initializing netlink socket (disabled)
[    1.069407] type=2000 audit(0.930:1): initialized
[    1.194790] VFS: Disk quotas dquot_6.5.2
[    1.198929] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.205897] FS-Cache: Netfs 'nfs' registered for caching
[    1.211641] NFS: Registering the id_resolver key type
[    1.216903] Key type id_resolver registered
[    1.221111] Key type id_legacy registered
[    1.225461] msgmni has been set to 749
[    1.230976] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    1.238778] io scheduler noop registered
[    1.242731] io scheduler deadline registered (default)
[    1.248009] io scheduler cfq registered
[    1.273476] Console: switching to colour frame buffer device 82x26
[    1.283262] kgdb: Registered I/O driver kgdboc.
[    1.289846] vc-cma: Videocore CMA driver
[    1.295058] vc-cma: vc_cma_base      = 0x00000000
[    1.301055] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)
[    1.307699] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)
[    1.323301] brd: module loaded
[    1.332572] loop: module loaded
[    1.337337] vchiq: vchiq_init_state: slot_zero = 0xd7000000, is_master = 0
[    1.346118] Loading iSCSI transport class v2.0-870.
[    1.353263] usbcore: registered new interface driver smsc95xx
[    1.360697] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.572892] Core Release: 2.80a
[    1.577300] Setting default values for core params
[    1.583287] Finished setting default values for core params
[    1.795210] Using Buffer DMA mode
[    1.799756] Periodic Transfer Interrupt Enhancement - disabled
[    1.806765] Multiprocessor Interrupt Enhancement - disabled
[    1.813474] OTG VER PARAM: 0, OTG VER FLAG: 0
[    1.819001] Dedicated Tx FIFOs mode
[    1.824607] dwc_otg: Microframe scheduler enabled
[    1.825023] dwc_otg bcm2708_usb: DWC OTG Controller
[    1.831246] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[    1.839777] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[    1.846485] Init: Port Power? op_state=1
[    1.851658] Init: Power Port (0)
[    1.856161] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.864238] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.872748] usb usb1: Product: DWC OTG Controller
[    1.878725] usb usb1: Manufacturer: Linux 3.6.11+ dwc_otg_hcd
[    1.885711] usb usb1: SerialNumber: bcm2708_usb
[    1.892266] hub 1-0:1.0: USB hub found
[    1.897348] hub 1-0:1.0: 1 port detected
[    1.902764] dwc_otg: FIQ enabled
[    1.902780] dwc_otg: NAK holdoff enabled
[    1.902788] dwc_otg: FIQ split fix enabled
[    1.902809] Module dwc_common_port init
[    1.903041] Initializing USB Mass Storage driver...
[    1.909403] usbcore: registered new interface driver usb-storage
[    1.916619] USB Mass Storage support registered.
[    1.922588] usbcore: registered new interface driver libusual
[    1.929872] mousedev: PS/2 mouse device common for all mice
[    1.937557] bcm2835-cpufreq: min=700000 max=700000 cur=700000
[    1.944638] bcm2835-cpufreq: switching to governor powersave
[    1.951510] bcm2835-cpufreq: switching to governor powersave
[    1.958376] cpuidle: using governor ladder
[    1.963598] cpuidle: using governor menu
[    1.968687] sdhci: Secure Digital Host Controller Interface driver
[    1.975975] sdhci: Copyright(c) Pierre Ossman
[    1.981520] sdhci: Enable low-latency mode
[    2.026871] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's DMA
[    2.037131] mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77
[    2.046364] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.059119] usbcore: registered new interface driver usbhid
[    2.065927] usbhid: USB HID core driver
[    2.073665] TCP: cubic registered
[    2.080379] Initializing XFRM netlink socket
[    2.088018] NET: Registered protocol family 17
[    2.095963] Key type dns_resolver registered
[    2.101679] Indeed it is in host mode hprt0 = 00021501
[    2.111674] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    2.137634] registered taskstats version 1
[    2.144811] Waiting for root device /dev/mmcblk0p2...
[    2.158866] mmc0: read SD Status register (SSR) after 2 attempts
[    2.180005] mmc0: new high speed SDHC card at address e624
[    2.197278] mmcblk0: mmc0:e624 SU04G 3.69 GiB 
[    2.207968]  mmcblk0: p1 p2
[    2.282302] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.293244] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.308948] devtmpfs: mounted
[    2.313717] Freeing init memory: 128K
[    2.336748] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.344763] Indeed it is in host mode hprt0 = 00001101
[    2.557504] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[    2.565701] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.576755] hub 1-1:1.0: USB hub found
[    2.582583] hub 1-1:1.0: 3 ports detected
[    2.867096] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    2.977349] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    2.985710] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.998876] smsc95xx v1.0.4
[    3.061676] smsc95xx 1-1.1:1.0: eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:00:97:e7
[    3.698002] udevd[154]: starting version 175
[    4.617023] bcm2708_spi bcm2708_spi.0: master is unqueued, this is deprecated
[    4.786858] spi spi0.0: setup: want 500000 Hz; bus_hz=250000000 / cdiv=500 == 500000 Hz; mode 0: cs 0x00000000
[    4.786893] spi spi0.0: setup: cd 0: 500000 Hz, bpw 8, mode 0x0 -> CS=00000000 CDIV=01f4
[    4.787072] spi spi0.1: setup: want 500000 Hz; bus_hz=250000000 / cdiv=500 == 500000 Hz; mode 0: cs 0x00000001
[    4.787098] spi spi0.1: setup: cd 1: 500000 Hz, bpw 8, mode 0x0 -> CS=00000001 CDIV=01f4
[    4.787203] bcm2708_spi bcm2708_spi.0: SPI Controller at 0x20204000 (irq 80)
[    4.869937] Registered led device: led0
[    8.495165] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    8.916598] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[   18.723897] smsc95xx 1-1.1:1.0: eth0: link up, 100Mbps, full-duplex, lpa 0xC1E1
[   20.664568] Adding 102396k swap on /var/swap.  Priority:-1 extents:2 across:510032k SS
[   50.627400] fbtft_device:  SPI devices registered:
[   50.627447] fbtft_device:      spidev spi0.0 500kHz 8 bits mode=0x00
[   50.627463] fbtft_device:      spidev spi0.1 500kHz 8 bits mode=0x00
[   50.627472] fbtft_device:  'fb' Platform devices registered:
[   50.627491] fbtft_device:      bcm2708_fb id=-1 pdata? no
[   50.627536] fbtft_device: Deleting spi0.0
[   50.630313] spi spi0.0: setup: want 32000000 Hz; bus_hz=250000000 / cdiv=8 == 31250000 Hz; mode 3: cs 0x0000000C
[   50.630346] spi spi0.0: setup: cd 0: 32000000 Hz, bpw 8, mode 0x3 -> CS=0000000c CDIV=0008
[   50.630473] fbtft_device:  GPIOS used by 'hy28afb':
[   50.630491] fbtft_device:    'reset' = GPIO25
[   50.630501] fbtft_device:    'led' = GPIO18
[   50.630509] fbtft_device:  SPI devices registered:
[   50.630522] fbtft_device:      spidev spi0.1 500kHz 8 bits mode=0x00
[   50.630534] fbtft_device:      hy28afb spi0.0 32000kHz 8 bits mode=0x03
[   57.465618] hy28afb spi0.0: setup: want 2000000 Hz; bus_hz=250000000 / cdiv=125 == 2000000 Hz; mode 3: cs 0x0000000C
[   57.884798] graphics fb1: hy28afb frame buffer, 320x240, 150 KiB video memory, 4 KiB buffer memory, fps=20, spi0.0 at 32 MHz
[   66.036596] 
[   66.036596] 
[   66.036596] ads7846_device: ads7846_device_init()
[   66.037744] ads7846_device: SPI devices registered:
[   66.037816] ads7846_device:    spidev spi0.1 500kHz 8 bits mode=0x00
[   66.037833] ads7846_device:    hy28afb spi0.0 32000kHz 8 bits mode=0x03
[   66.037842] ads7846_device:
[   66.037850] ads7846_device: Settings:
[   66.037858] ads7846_device:   model = 7846
[   66.037866] ads7846_device:   gpio_pendown = 17
[   66.037874] ads7846_device:   swap_xy = 1
[   66.037881] ads7846_device:   x_min = 230
[   66.037890] ads7846_device:   x_max = 3850
[   66.037898] ads7846_device:   y_min = 190
[   66.037905] ads7846_device:   y_max = 3850
[   66.037913] ads7846_device:   x_plate_ohms = 100
[   66.037920] ads7846_device:   pressure_min = 0
[   66.037927] ads7846_device:   pressure_max = 255
[   66.037935] ads7846_device:   keep_vref_on = 1
[   66.037942] ads7846_device:   vref_delay_usecs = 0
[   66.037950] ads7846_device:   vref_mv = 0
[   66.037957] ads7846_device:   settle_delay_usecs = 0
[   66.037965] ads7846_device:   penirq_recheck_delay_usecs = 0
[   66.037972] ads7846_device:   y_plate_ohms = 0
[   66.037979] ads7846_device:   debounce_max = 0
[   66.037986] ads7846_device:   debounce_tol = 0
[   66.037994] ads7846_device:   debounce_rep = 0
[   66.038011] ads7846_device: Deleting spi0.1
[   66.040602] spi spi0.1: setup: want 2000000 Hz; bus_hz=250000000 / cdiv=125 == 2000000 Hz; mode 0: cs 0x00000001
[   66.040636] spi spi0.1: setup: cd 1: 2000000 Hz, bpw 8, mode 0x0 -> CS=00000001 CDIV=007d
[   66.040766] ads7846_device: SPI devices registered:
[   66.040786] ads7846_device:    hy28afb spi0.0 32000kHz 8 bits mode=0x03
[   66.040800] ads7846_device:    ads7846 spi0.1 2000kHz 8 bits mode=0x00
[   66.040807] ads7846_device:
[   66.074619] ads7846 spi0.1: setup: want 2000000 Hz; bus_hz=250000000 / cdiv=125 == 2000000 Hz; mode 0: cs 0x00000001
[   66.074655] ads7846 spi0.1: setup: cd 1: 2000000 Hz, bpw 8, mode 0x0 -> CS=00000001 CDIV=007d
[   66.074955] ads7846 spi0.1: touchscreen, irq 187
[   66.075889] input: ADS7846 Touchscreen as /devices/platform/bcm2708_spi.0/spi_master/spi0/spi0.1/input/input0
also, you definitely haven't got anything else running thats using the gpio at the same time?
Nope, it's just the plain disk image.

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

Tue Jul 16, 2013 5:54 pm

That looks fine to me. I've built a fair few of these without issue. We can't rule out a faulty display, but it's unlikely. I'd be more inclined to think it's a soldering issue, but I'd need to see it to be sure.
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

anlumo
Posts: 7
Joined: Wed Jul 03, 2013 11:59 pm

Re: 2.8" TFT + Touch Shield Board

Tue Jul 16, 2013 7:07 pm

texy wrote:I'd be more inclined to think it's a soldering issue.
For the others, we solved the issue via PM, and he was right. The chip select pin wasn't soldered in correctly, which was easy to identify once I knew which pin on the display it should connect to.

aldomontoya
Posts: 11
Joined: Tue Jun 04, 2013 11:46 am

Re: 2.8" TFT + Touch Shield Board

Tue Jul 16, 2013 8:15 pm

aldomontoya wrote:This gets a bit more interesting! ts_calibrate and ts_test both work, but the python script still displays on my usual monitor (and if i mouse-click in the window the co-ordinates are printed), but nothing on the tft.

At the start of the script it shows the correct event id (in this case event3, which i use for the two ts_x tests).
Just in case anyone has the same problem i describe above, I can confirm (thanks to Texy's help) that it was due to the HDMI being connected. Finally got round to trying it out at home via ssh and all is good!

haincha
Posts: 16
Joined: Tue Sep 25, 2012 11:53 pm

Re: 2.8" TFT + Touch Shield Board

Wed Jul 17, 2013 6:42 am

Two issues popping up. With a beginning question that could fix half of it.

If I set it to boot to desktop in raspi-config will the screen boot to desktop? Or will it load an occurrence of X that is simply not being used? If that does not fix the problem, is there a way to get it to load the "FRAMEBUFFER=/dev/fb1 startx -- -dpi 60" command on boot to get it straight to the desktop? Kind of new to this whole aspect of things.

Secondly, if I have it connected directly to the GPIO on the Pi, it works fine. If I use a GPIO extender, because I am going to get it hooked into a breadboard down the line. How can I make it work? Using just a standard GPIO cable female/female with a male/male on the other side to plug in the screen, it makes my Pi not boot. Since there are only two orientations it can go, and having tried them both, does that reverse the wire location? The screen loads up white, but my Pi fails to boot.

I have a Cobler T without a board at the moment. But, it isn't quite set up yet. Do I need a breadboard to get the GPIO pins in the right order, or is there something else weird going on?

Image
or here for bigger.

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

Wed Jul 17, 2013 7:21 am

Hi,
not sure about booting straight to X from boot-up with appropriate FRAMEBUFFER options, but I,m sure it is possible. Someone will come up with a solution, or try searching.
Secondly, using just a pin to pin ribbon cable WILL NOT WORK because the 2 rows are effectively swapped over - you are joining pin 1 on the Pi to pin 2 on the shield board, etc all the way along the line, effectively reverse powering it :oops:

This is an option I am looking into for revision 2 of the board. Also extending the SPI bus cable/tracking length may also have an adverse effect on signalling, yet to be determined.

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

haincha
Posts: 16
Joined: Tue Sep 25, 2012 11:53 pm

Re: 2.8" TFT + Touch Shield Board

Wed Jul 17, 2013 3:49 pm

Okay, that means I need to get a breadboard ordered. Thanks for the help. This is a pretty awesome screen, I am glad to have been able to get one from the first set made.

anlumo
Posts: 7
Joined: Wed Jul 03, 2013 11:59 pm

Re: 2.8" TFT + Touch Shield Board

Wed Jul 17, 2013 3:52 pm

haincha wrote:Okay, that means I need to get a breadboard ordered. Thanks for the help. This is a pretty awesome screen, I am glad to have been able to get one from the first set made.
You could also etch a pin swapping board yourself :)

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

Wed Jul 17, 2013 9:38 pm

Breaking news - tasanakorn has developed an app that copies the main output to fb1 - this means that any display (including this one) that makes the use of fb1 can now be used for the preview of the PiCam - see the thread from this point : viewtopic.php?f=43&t=45059#p388743 for installation.
Also it can be used for improved framerates for playing video because instead of using mplayer which uses the main CPU, you can now use omxplayer which uses the power of the GPU to play 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

User avatar
meltwater
Posts: 1015
Joined: Tue Oct 18, 2011 11:38 am

Re: 2.8" TFT + Touch Shield Board

Thu Jul 18, 2013 1:24 pm

texy wrote:Breaking news - tasanakorn has developed an app that copies the main output to fb1 - this means that any display (including this one) that makes the use of fb1 can now be used for the preview of the PiCam - see the thread from this point : viewtopic.php?f=43&t=45059#p388743 for installation.
Also it can be used for improved framerates for playing video because instead of using mplayer which uses the main CPU, you can now use omxplayer which uses the power of the GPU to play video ;)

Texy
Excellent! :)
______________
http://www.themagpi.com/
A Magazine for Raspberry Pi Users
Read Online or Download for Free.

My new book: goo.gl/dmVtsc

Meltwater's Pi Hardware - pihardware.com

Like the MagPi? @TheMagP1 @TheMagPiTeam

Aikidokajeff
Posts: 68
Joined: Fri May 25, 2012 3:31 pm

Re: 2.8" TFT + Touch Shield Board

Sat Jul 20, 2013 1:49 pm

I've finally got a couple of hours to myself.
I knocked together a very rough interface for the camera, Pi and Texy's screen.
Basic and very cobbled but I'm happy at the moment.

I'll try to take a video soon and post a link.

Jeff

Aikidokajeff
Posts: 68
Joined: Fri May 25, 2012 3:31 pm

Re: 2.8" TFT + Touch Shield Board

Sat Jul 20, 2013 4:21 pm

I can't see how to embed videos from YouTube in here so here is the link: http://youtu.be/zxX9cYJKHtM

A quick write up of the UI written in python and pygame:http://www.aikitek.org/wordpress/?p=117

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 Jul 20, 2013 4:41 pm

Brilliant!
Looking forward to seeing the code - I like the way you overlay the 'control' panel - that's what I plan to do with my current project.
Not sure if you can embed video's......

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

Aikidokajeff
Posts: 68
Joined: Fri May 25, 2012 3:31 pm

Re: 2.8" TFT + Touch Shield Board

Sat Jul 20, 2013 7:47 pm

Hmm I don't know it I dare show my code...
A bit cobbled together.

I'll see if there anything I want to do to tidy it up and maybe find time tomorrow to post it.

Raspberry Paul
Posts: 87
Joined: Mon Jun 10, 2013 3:40 pm
Contact: Website

Re: 2.8" TFT + Touch Shield Board

Sat Jul 20, 2013 11:08 pm

Got my pre-assembled board this morning and have it working. I'm using it to display my twitter feed.

Does it use all the GPIO pins? Ideally I'd like to add a push button to one of the GPIO's to allow me to shutdown the pi. It auto runs the twitter python script on bootup but I want a safe way to shutdown the pi.

Many thanks for this texy for your work on this.

p.s. - how can I get windows 7 running on this? :D
http://www.raspberrypaul.co.uk

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 Jul 21, 2013 9:55 am

Raspberry Paul wrote:Got my pre-assembled board this morning and have it working. I'm using it to display my twitter feed.

Does it use all the GPIO pins? Ideally I'd like to add a push button to one of the GPIO's to allow me to shutdown the pi. It auto runs the twitter python script on bootup but I want a safe way to shutdown the pi.

Many thanks for this texy for your work on this.

p.s. - how can I get windows 7 running on this? :D
Hi,
Screen and TP use hardware SPI ( SLCK, MOSI, MISO, CE0 & CE1 ) plus 3 additional GPIO lines ( GPIO0, GPIO1 & GPIO6 ), keeping the other GPIO lines free for other uses.

Good luck with windos ;)
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

Aikidokajeff
Posts: 68
Joined: Fri May 25, 2012 3:31 pm

Re: 2.8" TFT + Touch Shield Board

Sun Jul 21, 2013 10:21 am

texy wrote:Brilliant!
Looking forward to seeing the code - I like the way you overlay the 'control' panel - that's what I plan to do with my current project.
Not sure if you can embed video's......

Texy
Code posted here: http://www.aikitek.org/wordpress/?p=135

Jeff

earthchill
Posts: 2
Joined: Thu Jul 04, 2013 12:33 pm

Re: 2.8" TFT + Touch Shield Board

Mon Jul 22, 2013 6:53 pm

Received the screen today. Followed your instructions and everything except the python script worked at the first try. Got the python script running a few minutes later (forgot pip install evdev) :)

I'm assuming the holes on the back-side is for a 26-pin header? Any suggestions on a connector that I can solder without accessing the "screen side" of the board?

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 Jul 22, 2013 7:03 pm

Glad you got it working ok ;-)
That port is for soldering individual wires - you are not going to easily solder a connector without access to the other side of the pcb.
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
jbeale
Posts: 3716
Joined: Tue Nov 22, 2011 11:51 pm
Contact: Website

Re: 2.8" TFT + Touch Shield Board

Tue Jul 23, 2013 5:15 am

Just got my assembled 2.8" TFT board today, nicely packaged. I'm looking forward to getting a chance to play with 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

Wed Jul 24, 2013 6:31 pm

The case sample has arrived - looking good :D
Image
Image
Image

The first batch should arrive this week also. Cost is £12 plus postage.

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

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

Re: 2.8" TFT + Touch Shield Board

Wed Jul 24, 2013 7:48 pm

Hello

TFT Shield arrived yesterday and order was placed on 17/07 so that is pretty good delivery times to Europe including the weekend. :)

Install works fine as per the instructions.

One issue I am currently looking at is streaming music quality with mplayer to USB speakers compared to lastest NOOBS download. CPU performance is about 30% for both NOOBS and tft OS. The sound is clearly washed and distorted with the tft framebuffer os .

Music quality with the audio-out jack is the same (good) comparted to NOOBS.

I've run the updates/upgrades as noted in the thread to the tft framebuffer os from Notro's github.

any clues would be appreciated.

cdlt,

User avatar
jbeale
Posts: 3716
Joined: Tue Nov 22, 2011 11:51 pm
Contact: Website

Re: 2.8" TFT + Touch Shield Board

Thu Jul 25, 2013 1:06 am

USB audio is particularly demanding on the USB timing. That is an area where the R-Pi has had problems in the past, due to its USB hardware design. There have been some recent patches (just within the past few weeks) to address this, and it may be that the framebuffer kernel does not include them? (I don't know; just speculating)

See for example: http://www.raspberrypi.org/phpBB3/viewt ... 25#p389281

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

Re: 2.8" TFT + Touch Shield Board

Thu Jul 25, 2013 6:42 am

Post by jbeale » Thu Jul 25, 2013 2:06 am
USB audio is particularly demanding on the USB timing. That is an area where the R-Pi has had problems in the past, due to its USB hardware design. There have been some recent patches (just within the past few weeks) to address this, and it may be that the framebuffer kernel does not include them? (I don't know; just speculating)

See for example: viewtopic.php?f=28&t=39175&start=125#p389281
Bravo jbeale,
I read the thread you noted and ended up setting dwc_otg.fiq_split_enable=0 as per the instructions.

BTW, a friendly hat tip to Texy & Notro for the excellent work on the board and the framebuffer. :)

cdlt,

Edit: While dwc_otg.fiq_split_enable=0 does improve things, it is not as good as the NOOBS version #474 from July 13. I can still hear distortions, crackles and pops after the dwc_otg.fiq_split_enable=0 is updated in cmdline.txt.

gu3st
Posts: 3
Joined: Thu Jul 04, 2013 9:39 am

Re: 2.8" TFT + Touch Shield Board

Mon Jul 29, 2013 7:32 am

Hi Texy:

I've recieved my board and been playing around with it. I've gotten omxplayer to be able to play videos successfully to it (with that fb copy util you linked somewhere).

I have ran into some strangeness though. After (roughly) 30 minutes, the display appears to sleep. I still have audio, but no video. When running X, I'm able to touch the screen to wake it, and when running the SDL/pygame test app.. this never happens (it never goes to sleep).. but in console land.. it does!

What can I do to prevent sleep, or at the very least.. wake it up.

Return to “HATs and other add-ons”