reeza
Posts: 2
Joined: Tue Mar 03, 2015 12:42 am
Location: Melbourne, Australia

Re: Waveshare spotpear 3.5 inch touch screen help!

Tue Mar 03, 2015 5:10 am

Thank you AndyD.

I've run sudo rpi-update and it's updated to the latest firmware.

I still can't get the display to work, it's just white. I've tried doing all the parts of the post (excluding the downloading of the firmware as thats what rpi-update should provide)

I'll keep fighting with it and see how I go.

User avatar
AndyD
Posts: 2337
Joined: Sat Jan 21, 2012 8:13 am
Location: Melbourne, Australia

Re: Waveshare spotpear 3.5 inch touch screen help!

Tue Mar 03, 2015 8:49 am

reeza wrote:Thank you AndyD.

I've run sudo rpi-update and it's updated to the latest firmware.

I still can't get the display to work, it's just white. I've tried doing all the parts of the post (excluding the downloading of the firmware as thats what rpi-update should provide)

I'll keep fighting with it and see how I go.
One thing that isn't mentioned in that tutorial is that you need to explicitly turn spi on in config.txt. If you don't already have it, add the following to /boot/config.txt

Code: Select all

dtparam=spi=on

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

Re: Waveshare spotpear 3.5 inch touch screen help!

Tue Mar 03, 2015 9:50 am

AndyD wrote:
reeza wrote:Can @r3dsm0k3 or anyone please provide a link to an updated image for the RP2 that works.
The fbtft modules are now part of the Raspberry Pi Foundations kernel. It is not in the Raspbian repository as yet (as far as I know). Simply use:-

Code: Select all

sudo rpi-update
to get the updated image.
Correct, but not all the overlays that are available in notro's repository have made it to the RPF repo.
I assume that more will be added later.

User avatar
AndyD
Posts: 2337
Joined: Sat Jan 21, 2012 8:13 am
Location: Melbourne, Australia

Re: Waveshare spotpear 3.5 inch touch screen help!

Tue Mar 03, 2015 11:10 am

DirkS wrote:Correct, but not all the overlays that are available in notro's repository have made it to the RPF repo.
I assume that more will be added later.
The Device Tree Overlays produced by Notro and Notro's fbtft drivers are completely separate. The Device Tree Overlays that have been added to the repository used by rpi-update have come from Notro's fork of the firmware repository. The fbtft drivers have come from the Linux Kernel Staging Tree. Development of fbtft has now moved to the Linux Kernel Staging Tree.

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

Re: Waveshare spotpear 3.5 inch touch screen help!

Tue Mar 03, 2015 11:50 am

AndyD wrote:The Device Tree Overlays produced by Notro and Notro's fbtft drivers are completely separate.
Where do I mention Notro's fbtft drivers? In the context of rpi-update you're either using hexxeh's or notro's 'rpi-firmware' repos.
What I was trying to get across that *not* all of the display overlays from notro's repo (https://github.com/notro/rpi-firmware to be precise) have been copied to hexxeh's firmware repo (for example pitft).

mm67
Posts: 2
Joined: Fri Feb 20, 2015 11:56 pm

Re: Waveshare spotpear 3.5 inch touch screen help!

Tue Mar 03, 2015 7:12 pm

AndyD wrote:
moak wrote:7) get notres kernel by running the following command: sudo REPO_URI=https://github.com/notro/rpi-firmware rpi-update
The latest firmware/kernel in the Foundations repository now has Notro's fbtft. So change this to

Code: Select all

sudo rpi-update. 
Once this kernel is part Raspbian repository you will no longer need to use rpi-update to use fbtft.
Making this stopped Jivelite working on both Waveshare Spotpear 3.2 and 3.5 inch displays. had to go back to old kernel

achatz91
Posts: 2
Joined: Tue Mar 03, 2015 11:00 pm

Re: Waveshare spotpear 3.5 inch touch screen help!

Tue Mar 03, 2015 11:04 pm

by r3dsm0k3 » Thu Feb 26, 2015 8:16 am
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 can you please send me the image?

tweedie
Posts: 19
Joined: Wed Mar 04, 2015 11:32 am

Re: Waveshare spotpear 3.5 inch touch screen help!

Wed Mar 04, 2015 11:35 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.
Would appreciate an image too. Any chance you can let me have a copy to try out?
(ps, are you using pi2 and/or latest wheezy?)

achatz91
Posts: 2
Joined: Tue Mar 03, 2015 11:00 pm

Re: Waveshare spotpear 3.5 inch touch screen help!

Wed Mar 04, 2015 12:31 pm

So after some research i was able to run the screen.
New problem:
How can i display emulationstation on lcd screen? If i start ES i can see that is starting but the interface doesnt show up. If i put a hdmi cabel in i can se the interface on my tv. How can i change this?

Orion4874
Posts: 8
Joined: Sun Jul 31, 2011 10:28 pm

Re: Waveshare spotpear 3.5 inch touch screen help!

Fri Mar 06, 2015 1:08 am

Does anyone happen to have a working .img for the 3.5in display? This is my first time with one of these screens and an Rpi so I'm pretty lost trying to get this to work with my pi2.

Thanks in advance guys!

T3CHK1W1
Posts: 1
Joined: Sat Mar 07, 2015 4:55 am

Re: Waveshare spotpear 3.5 inch touch screen help!

Sat Mar 07, 2015 5:10 am

I've managed to get the LCD working in a basic fashion on an RPI2.

Install and configure latest Wheezy (I'm using 2015-02-16)
Enable SPI and I2C (not sure if I2C was requried but saw other posts mention it) from the Advanced section of raspi-config and then reboot.
Now do some other updates

Code: Select all

sudo apt-get update
sudo apt-get upgrade
sudo reboot
Then

Code: Select all

sudo rpi-update
I then added the following to /etc/modules

Code: Select all

spi-bcm2708
fbtft_device name=waveshare32b gpios=dc:22,reset:27 speed=48000000
And finally replaced my /boot/cmdline.txt file with the following line

Code: Select all

dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait fbtft_device.custom fbtft_device.name=waveshare32b fbtft_device.gpios=dc:22,reset:27 fbtft_device.bgr=1 fbtft_device.speed=48000000 fbcon=map:10 fbcon=font:ProFont6x11 logo.nologo dma.dmachans=0x7f35 console=tty1 consoleblank=0 fbtft_device.fps=50 fbtft_device.rotate=0
After rbooting I started seeing the boot screen appear on the LCD once the fbtft module had loaded, this is as far as I've gotten so far though. Hopefully it might get someone else started down the right path.
Last edited by T3CHK1W1 on Sat Mar 07, 2015 9:39 am, edited 2 times in total.

thebag5
Posts: 7
Joined: Sun Feb 08, 2015 9:17 am
Location: Melbourne, Australia.

Re: Waveshare spotpear 3.5 inch touch screen help!

Sat Mar 07, 2015 9:06 am

Has anyone got this working yet? No joy here.

garybrigden
Posts: 4
Joined: Sat Mar 07, 2015 10:15 am

Re: Waveshare spotpear 3.5 inch touch screen help!

Sat Mar 07, 2015 10:21 am

Hi,
I have eagerly waiting the arrival of both my Pi2 and a wave shape 3.5 screen. I have followed each instruction and download IMG after img. Configured configs etc and still a white screen.

Most of the instruction I have found, codes to paste refer to the 32b. I have found just now that it just won't work with my 3.5 and has left with me with a fatal error on reboot.

So I guess I will need to adjust another config with a range of settings for the 3.5 but I am at a loss to find them. Anybody know what they should be please?

User avatar
ragnarjensen
Posts: 332
Joined: Wed May 15, 2013 6:13 pm
Location: Stockholm, Sweden

Re: Waveshare spotpear 3.5 inch touch screen help!

Sat Mar 07, 2015 1:08 pm

I've got the 3.5" WaveShare SpotPear working on a RPi2B with a kernel I built myself.
http://www.raspberrypi.org/forums/viewt ... 58#p712958
--
Ragnar

garybrigden
Posts: 4
Joined: Sat Mar 07, 2015 10:15 am

Re: Waveshare spotpear 3.5 inch touch screen help!

Sun Mar 08, 2015 11:07 am

Thank s ragnarjensen

This works great - I need to now be able to switch between HDMI and LCD easily and calibrate the touchscreen but it was great to see my startx appear on such a small screen.....

Am nearly portable :)

NooshaSheep
Posts: 1
Joined: Sun Mar 08, 2015 3:33 pm

Re: Waveshare spotpear 3.5 inch touch screen help!

Sun Mar 08, 2015 3:44 pm

Anyone had any luck getting this thing working on the Raspberry Pi Model B? :)

- N!

garybrigden
Posts: 4
Joined: Sat Mar 07, 2015 10:15 am

Re: Waveshare spotpear 3.5 inch touch screen help!

Sun Mar 08, 2015 10:59 pm

Finally got the screen to work, with the correct rotation and although the touchscreen is working, the strangest of things is that the touch is reversed...as i move the stylus down the pointer moves up, and vice versa.....

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

Re: Waveshare spotpear 3.5 inch touch screen help!

Sun Mar 08, 2015 11:18 pm

garybrigden wrote:Finally got the screen to work, with the correct rotation and although the touchscreen is working, the strangest of things is that the touch is reversed...as i move the stylus down the pointer moves up, and vice versa.....
You have to set the rotation for screen and touch panel separately.
See e.g. https://learn.adafruit.com/adafruit-pit ... -calibrate for some more info.
(it's for a different screen, but that should not make a difference)

garybrigden
Posts: 4
Joined: Sat Mar 07, 2015 10:15 am

Re: Waveshare spotpear 3.5 inch touch screen help!

Mon Mar 09, 2015 9:33 pm

Thank you....That was the one....

I started from the Manual Calibration and swapped the /touchscreen references to /event2 and all seems great

thank you for your help.

andress
Posts: 1
Joined: Thu Mar 26, 2015 8:54 pm

Re: Waveshare spotpear 3.5 inch touch screen help!

Thu Mar 26, 2015 8:57 pm

Hey :) have you manged to get it working on raspi 2? I also always end up on kernel panic. Is there any already made image i could download?

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

Re: Waveshare spotpear 3.5 inch touch screen help!

Fri Mar 27, 2015 9:48 am

andress wrote:Hey :) have you manged to get it working on raspi 2? I also always end up on kernel panic. Is there any already made image i could download?
See http://www.raspberrypi.org/forums/viewt ... ad#p713399

User avatar
RandomOutput
Posts: 1
Joined: Fri Apr 10, 2015 8:54 pm
Location: Canada

Re: Waveshare spotpear 3.5 inch touch screen help!

Fri Apr 10, 2015 9:20 pm

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.

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

Re: Waveshare spotpear 3.5 inch touch screen help!

Sat Apr 11, 2015 9:31 am

RandomOutput wrote:

Code: Select all

$ sudo SKIP_KERNAL=1 rpi-update
That should be

Code: Select all

$ sudo SKIP_KERNEL=1 rpi-update
(see https://github.com/Hexxeh/rpi-update)

chrisj9898
Posts: 1
Joined: Wed Apr 08, 2015 10:15 pm

Re: Waveshare spotpear 3.5 inch touch screen help!

Sun Apr 12, 2015 1:16 am

https://www.dropbox.com/s/uenmpb522xbf0 ... CD.7z?dl=0

Image works for spotpear 3.5 on RPi2 up until you update

bramaz
Posts: 1
Joined: Thu Apr 30, 2015 10:13 pm

Re: Waveshare spotpear 3.5 inch touch screen help!

Thu Apr 30, 2015 10:21 pm

Good day,

I also had problems along with all of you but just now I can confirm that the disc received from the 3.2" screen purchased on ebay does work. You first have to ensure when you format the SD card you do a complete erase within the options of the SD format software, once complete continue to carry out the .img write to SD and all should work.

enjoy.

Return to “HATs and other add-ons”