Big11
Posts: 2
Joined: Sat May 16, 2015 10:15 am

Re: Waveshare spotpear 3.5 inch touch screen help!

Wed May 20, 2015 5:06 am

r3dsm0k3 wrote:I've got WaveShare 3.2 v4 working with notro drivers and instructions from
http://www.circuitbasics.com/setup-lcd- ... i/#content
Let me know if anyone need the image. I confirm everything works.
Hi,
Is it possible to send me this Image ?
I had no luck to get the Waveshare SpotPear V4 Display get running on my
Raspberry B (not B2 oder B+) with any of this solutions...


Thanks
Big11

Big11
Posts: 2
Joined: Sat May 16, 2015 10:15 am

Re: Waveshare spotpear 3.5 inch touch screen help!

Wed May 20, 2015 6:14 am

RandomOutput wrote:Hope I can add some useful information here.
This is how I got a WaveShare SpotPear 4 inch screen running on a pi 2 with the latest Raspbian image.
The values were taken from the image that came on a DVD when I recieved the screen.
This is just the basic setup without any extra touch calibration, bells or whistles.

Code: Select all

WaveShare SpotPear 4 inch TFT LCD

Basic setup for Pi2 running Raspbian 2015-02-16 
# make spi enabled in raspi-config!!
$ sudo apt-get update
$ sudo apt-get upgrade

# get the fbtft drivers with spi dma support
$ sudo REPO_URI=https://github.com/notro/rpi-firmware rpi-update
$ sudo reboot
-------------
# Load the drivers at boot
$ sudo nano /etc/modules

flexfb  width=320  height=480  regwidth=16 init=-1,0xb0,0x0,-1,0x11,-2,250,-1,0x3A,0x55,-1,0xC2,0x44,-1,0xC5,0x00,0x00,0x00,0x00,-1,0xE0,0x0F,0x1F,0x1C,0x0C,0x0F,0x08,0x48,0x98,0x37,0x0A,0x13,0x04,0x11,0x0D,0x00,-1,0xE1,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0xE2,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0x36,0xF8,-1,0x11,-1,0x29,-3

fbtft_device debug=3 rotate=90 name=flexfb speed=16000000 gpios=reset:25,dc:24

#note: test each line with sudo modprobe to see if they work first! 
#note: to flip display, find register 0x36 above and change 0xF8 to 0x28
---
# put the shell on tft screen
$ sudo nano /boot/cmdline.txt

# add to end of existing line in file
fbcon=map:10 fbcon=font:ProFont6x11 logo.nologo
---
# put the desktop on the tft screen
$ sudo nano /usr/share/X11/xorg.conf.d/99-fbturbo.conf

#find fb0 and change it to fb1
---
--- get touchscreen working ---
# use device tree overlay for ads7846
$ sudo nano /boot/config.txt

dtoverlay=ads7846,cs=1,penirq=17,swapxy=1,xmin=200,xmax=3900,ymin=200,ymax=3900,pmax=255,xohms=60
-----------------------------------
# use caution with apt-get upgrade!
# if the bootloader get updated the drivers no longer work!!!
# update all except bootloader
$ sudo apt-get mark hold raspberrypi-bootloader
$ sudo apt-get update
$ sudo apt-get upgrade

# update bootloader but not kernal and modules
$ sudo SKIP_KERNAL=1 rpi-update
I'm a noob at Linux and I never even heard of a device tree before I tried this, so there may be some things I could do better.
But this seems to be working alright.
I did all the steps above but "sudo apt-get mark hold raspberrypi-bootloader" which means taht the Option "mark" is unknown...

But i can't get it running booting ends with:

[ 15.451793] flexfb spi0.0: Display update: 1717 kB/s (174.599 ms), fps=0 (0.000 ms)
[ 15.470761] flexfb spi0.0: fbtft_register_backlight()
[ 15.484466] flexfb spi0.0: fbtft_register_backlight(): led pin not set, exiting.

What does this mean ??

Using a Rapberry Pi B, with Raspian-Image from 5.5.2015

Thanks for any help..

taox
Posts: 1
Joined: Tue Mar 03, 2015 12:57 pm

Re: Waveshare spotpear 3.5 inch touch screen help!

Thu May 21, 2015 11:16 pm

Hi,
Using the 3.5 inch on a Raspberry Pi B+, I got everything working perfectly on Raspbian using the TL;DR configuration here:
http://futurice.com/blog/id-like-to-hav ... d-on-my-pi

Simple process, it seems, after spending hours reading other pages trying to figure it out.
Hope this helps someone.

PS: Does anyone know if it's possible to enhance the framerate?

AdiNi
Posts: 1
Joined: Fri May 22, 2015 3:15 pm

Re: Waveshare spotpear 3.5 inch touch screen help!

Fri May 22, 2015 3:21 pm

Hi Taox,


Thank you very much for sharing this.
I can confirm this method is working also for this display :
http://www.ebay.de/itm/SainSmart-3-5-TF ... 58c5440a76

blavery
Posts: 95
Joined: Sun Jul 01, 2012 2:57 am
Location: QLD. Australia

Re: Waveshare spotpear 3.5 inch touch screen help!

Mon Jun 29, 2015 3:19 am

Taox (for finding), and Juho at the futureice.com blog, thank you.

Why did I not find this "recipe" earlier? Works a treat. (Just didn't need to do any special updates from github at start, now that fb code is in current Raspbian.)

There seems to be on the net a large and frustrating quantity of obsolete "help" or "tutorial" information on getting these things going. I guess the whole fbtft development has been fast and furious, and "today's" way to implement a working device has kept changing too fast. Juho's method works. (Well, "today" it works!)

My device was advertised (AUD$29.95) on eBay as 3.5inch 320*480 LCD(A) and the image they used showed a silkscreen with "Waveshare Softpear" and logo. Hmmm? What arrived was a differently laid out PCB with the silkscreening having generic description and no "Waveshare" branding. But it seems to be the same chipset/architecture fortunately.

The quality is "I got what I paid for". The 26-pin connector, and the gluing between LCD panel and its PCB, are both misaligned by a few degrees (compounding!) so the whole thing sits on my RPI at a visibly wrong angle.

Software: I'm happy. The default landscape orientation is fine, and the calibration figures are accurate enough to be left as is.

And I'm getting used to needing ALT-WINDOW DRAG a fair bit for common apps that won't resize small enough to fit the APPLY or OK button on that tiny screen. It confirms for me that 320*480 is the absolute smallest pixel pattern I could tolerate. 240*320 is just not workable for regular desktop software. Do we have any app launchers (eg like android) that could handle that small screen better?
Attachments
DSCN6051.JPG
DSCN6051.JPG (20.08 KiB) Viewed 11182 times

blavery
Posts: 95
Joined: Sun Jul 01, 2012 2:57 am
Location: QLD. Australia

Re: Waveshare spotpear 3.5 inch touch screen help!

Wed Jul 01, 2015 11:01 pm

It gets easier.
1. From "/etc/modules"I removed both the flexfb and the fbft_device entries.
2. In "/boot/config.txt" I removed the ads7846 overlay line.
3. I replaced all that with a piscreen overlay in config.txt:

Code: Select all

 dtoverlay=piscreen,rotate=90,speed=32000000
4. In "/boot/cmdline.txt" as per Juho. (But not sure if font option does anything)
5. In "/usr/share/X11/xorg.conf.d/99-fbturbo.conf" as per Juho.
6. In "/usr/share/X11/xorg.conf.d/99-calibration.conf" as per Juho.

And that's it. The piscreen code seems to include all the same functionality (ILI9486 LCD with initialisation, plus ADS7846/TSC2046 touch, default GPIO usage etc). The LCD shows boot sequence and the desktop just as before.

monty_burns_007
Posts: 7
Joined: Sun Dec 08, 2013 6:44 pm

Re: Waveshare spotpear 3.5 inch touch screen help!

Wed Jul 29, 2015 7:29 am

thanks, will try the shorter "piscreen" overlay tonight.

Just got it running last night thanks to Juho's blog.

I've got 2 more questions :

1. Is it possible to have a on-screen keyboard to use with the stylo ? Otherwise I still need a external keyboard.
2. Is there a setting where the screen dims (backlight off OR even completely dimmed) after a certain time of inactivity ?
For power saving and touchscreen lifetime, it is preferred to have the screen dimmed completely and wake up again after touching the screen. Is that possible with some setting somewhere ?

blavery
Posts: 95
Joined: Sun Jul 01, 2012 2:57 am
Location: QLD. Australia

Re: Waveshare spotpear 3.5 inch touch screen help!

Wed Jul 29, 2015 10:52 am

Onscreen virtual keyboard? You could try matchbox-keyboard or more probably florence. I found them fiddly, and a real keyboard is easier.

Backlite / dimming? My setup is dismantled, so I can't try, but I thought it blanked just as the regular screen would. But there is no provision I can see for full backlight turnoff.

tritron
Posts: 5
Joined: Wed Aug 19, 2015 9:18 pm

Re: Waveshare spotpear 3.5 inch touch screen help!

Sun Aug 30, 2015 2:31 am

I setup my screen but cursor is on opposite side of the display from where I touch.

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

Re: Waveshare spotpear 3.5 inch touch screen help!

Sun Aug 30, 2015 9:31 am

tritron wrote:I setup my screen but cursor is on opposite side of the display from where I touch.
Create a file in /usr/share/X11/xorg.conf.d

Code: Select all

Section "InputDevice"
  Identifier "devname"
  Driver "evdev"
  Option "Device"   "devpath"
EndSection
for your mouse driver device.

Then try adding

Code: Select all

Option "InvertX" "1"
or

Code: Select all

Option "InvertY" "1" 
or

Code: Select all

Option "SwapAxes" "1"
to get the cursor to follow your touch.

http://www.x.org/archive/X11R7.5/doc/ma ... dev.4.html
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

Axy
Posts: 25
Joined: Tue Sep 29, 2015 1:52 pm

Re: Waveshare spotpear 3.5 inch touch screen help!

Tue Sep 29, 2015 1:53 pm

I got the screen working with the provided "recipe" however it only works when the desktop is loaded. I normally do not use desktop, so this makes no sense for me.

Is this normally how it's supposedt to be? How can I make the screen work also in cmd line, like a regular hdmi-connected screen?

Thank you.

DRAgon715205
Posts: 53
Joined: Wed Apr 02, 2014 11:46 am

Re: Waveshare spotpear 3.5 inch touch screen help!

Mon Jan 18, 2016 2:10 am

You mean the LCD cann't display OK?

Try this:
http://www.spotpear.com/index.php/tutorials

DRAgon715205
Posts: 53
Joined: Wed Apr 02, 2014 11:46 am

Re: Waveshare spotpear 3.5 inch touch screen help!

Mon Jan 18, 2016 2:26 am

otherwise ,this weblink'driver maybe not be work well

http://futurice.com/blog/id-like-to-hav ... d-on-my-pi

because it's drver cann't work at the newest officail Raspbian,You need do as this web say

http://www.spotpear.com/learn/EN/raspbe ... e-LCD.html

ruyam18
Posts: 1
Joined: Fri Mar 04, 2016 12:19 am

Re: Waveshare spotpear 3.5 inch touch screen help!

Fri Mar 04, 2016 12:40 am

I am using 'qtterm' to monitor data, however the program when run on LCD does not allow for me to change the parameters or monitor the input. The screen is too small to accomodate the entire program. Is there any way to customise programs on Pi to fit the screen resolution 320X280.

Dannyb1977
Posts: 2
Joined: Tue Mar 01, 2016 10:50 pm
Location: Huntington, WV

Re: 3.5 inch RPi LCD V3.0touch screen help!

Mon Mar 07, 2016 5:22 pm

I am stupid when it comes to programming now with that said i have had my RPi2 for several months and have used it mainly as a medi player with openelec. I just purchased a 3.5 inch RPi LCD V3.0 to be abale to take this backpacking, I have tried every lcd driver that is built into the program and none work. can some one please point me in the right direction, before I microwave this thing!

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

Re: 3.5 inch RPi LCD V3.0touch screen help!

Tue Mar 08, 2016 12:08 am

Dannyb1977 wrote:I am stupid when it comes to programming now with that said i have had my RPi2 for several months and have used it mainly as a medi player with openelec. I just purchased a 3.5 inch RPi LCD V3.0 to be abale to take this backpacking, I have tried every lcd driver that is built into the program and none work. can some one please point me in the right direction, before I microwave this thing!
Is it the same one as discussed here? If so then try viewtopic.php?f=45&t=137149&hilit=+waveshare#p913157
If not, then post a link to the screen you have (or a link to a photo image of the back of the screen)

Banjankri
Posts: 5
Joined: Mon Aug 11, 2014 12:23 am

Re: Waveshare spotpear 3.5 inch touch screen help!

Mon Jul 04, 2016 9:29 pm

RandomOutput wrote:Hope I can add some useful information here.
This is how I got a WaveShare SpotPear 4 inch screen running on a pi 2 with the latest Raspbian image.
The values were taken from the image that came on a DVD when I recieved the screen.
This is just the basic setup without any extra touch calibration, bells or whistles.

Code: Select all

WaveShare SpotPear 4 inch TFT LCD

Basic setup for Pi2 running Raspbian 2015-02-16 
# make spi enabled in raspi-config!!
$ sudo apt-get update
$ sudo apt-get upgrade

# get the fbtft drivers with spi dma support
$ sudo REPO_URI=https://github.com/notro/rpi-firmware rpi-update
$ sudo reboot
-------------
# Load the drivers at boot
$ sudo nano /etc/modules

flexfb  width=320  height=480  regwidth=16 init=-1,0xb0,0x0,-1,0x11,-2,250,-1,0x3A,0x55,-1,0xC2,0x44,-1,0xC5,0x00,0x00,0x00,0x00,-1,0xE0,0x0F,0x1F,0x1C,0x0C,0x0F,0x08,0x48,0x98,0x37,0x0A,0x13,0x04,0x11,0x0D,0x00,-1,0xE1,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0xE2,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0x36,0xF8,-1,0x11,-1,0x29,-3

fbtft_device debug=3 rotate=90 name=flexfb speed=16000000 gpios=reset:25,dc:24

#note: test each line with sudo modprobe to see if they work first! 
#note: to flip display, find register 0x36 above and change 0xF8 to 0x28
---
# put the shell on tft screen
$ sudo nano /boot/cmdline.txt

# add to end of existing line in file
fbcon=map:10 fbcon=font:ProFont6x11 logo.nologo
---
# put the desktop on the tft screen
$ sudo nano /usr/share/X11/xorg.conf.d/99-fbturbo.conf

#find fb0 and change it to fb1
---
--- get touchscreen working ---
# use device tree overlay for ads7846
$ sudo nano /boot/config.txt

dtoverlay=ads7846,cs=1,penirq=17,swapxy=1,xmin=200,xmax=3900,ymin=200,ymax=3900,pmax=255,xohms=60
-----------------------------------
# use caution with apt-get upgrade!
# if the bootloader get updated the drivers no longer work!!!
# update all except bootloader
$ sudo apt-get mark hold raspberrypi-bootloader
$ sudo apt-get update
$ sudo apt-get upgrade

# update bootloader but not kernal and modules
$ sudo SKIP_KERNAL=1 rpi-update
I'm a noob at Linux and I never even heard of a device tree before I tried this, so there may be some things I could do better.
But this seems to be working alright.
Thanks for wasting 5 hours of my time with this non-working "fix"

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

Re: Waveshare spotpear 3.5 inch touch screen help!

Mon Jul 04, 2016 9:34 pm

Banjankri wrote:Thanks for wasting 5 hours of my time with this non-working "fix"
Well, those instructions are over a year old.
And it was a year with quite a few changes...

Return to “HATs and other add-ons”