Awooga
Posts: 11
Joined: Sun Mar 13, 2016 6:45 am

Installing a 3.5 inch Waveshare LCD with Raspberry Pi3

Sun Mar 13, 2016 7:27 am

Hi there,
I struggled for many hours to get this installed and working on my Raspberry Pi3 so I thought that I should share how I managed to get it to work:

LCD Screen For Raspberry Pi 3

My screen Waveshare 3.5 Inch LCD (A) with Raspberry Pi3 with an unclean Raspian Jessie install (ie my normal working version with my aliases etc configured)


Command line

Code: Select all

sudo raspi-config
select Advanced
select A5 Device Tree. Enable
Select A6 SPI. Enable.
Exit and Reboot automatically
Command line

Just for good practice

Code: Select all

sudo apt-get update && sudo apt-get upgrade
Then we use wget to take the drivers from the manufacturer

Code: Select all

wget http://www.waveshare.com/w/upload/9/9d/LCD-show-151020.tar.gz
Now we need to extract that file as it is compressed currently

Code: Select all

tar xvf LCD-show-151020.tar.gz
Then we need to go to the directory

Code: Select all

cd LCD-show 
Finally we need to run the driver

Code: Select all

sudo ./LCD35-show

This solution worked for me after trying many permutations of the manufacturers instructions found at http://www.waveshare.com/wiki/3.5inch_RPi_LCD_%28A%29

It took me over 6 hours so I decided to write my first tutorial to ensure I don't forget the pain that went with the installation.


I hope that it helps you.

dharmocracy
Posts: 1
Joined: Sun Mar 13, 2016 3:09 pm

Re: Installing a 3.5 inch Waveshare LCD with Raspberry Pi3

Sun Mar 13, 2016 3:20 pm

Thank you so much for sharing, I had been struggling for a week ( though some of that was down to me using wrong IMG file). The above instructions are very simple, easy to follow and I know from internet searches that there are plenty more out there who need this info.

lashturner
Posts: 29
Joined: Wed Dec 23, 2015 3:52 pm

Re: Installing a 3.5 inch Waveshare LCD with Raspberry Pi3

Mon Mar 14, 2016 4:04 pm

I am going to try this later today and see if I can get my 3.5" lcd working. Took me some time to get my 5" lcd with hdmi working and I had to do video on how I got it working so I could remember how.

Ross Clark
Posts: 1
Joined: Sat Mar 26, 2016 10:09 pm

Re: Installing a 3.5 inch Waveshare LCD with Raspberry Pi3

Sat Mar 26, 2016 10:14 pm

Many! Many! thanks Awooga ,I am a Pi noob and spent 3 days following every other procedure I could find , it took a whole ten minutes once I found your post so had to join forum to say thnx.

Awooga
Posts: 11
Joined: Sun Mar 13, 2016 6:45 am

Re: Installing a 3.5 inch Waveshare LCD with Raspberry Pi3

Tue Mar 29, 2016 2:39 am

Ross Clark wrote:Many! Many! thanks Awooga ,I am a Pi noob and spent 3 days following every other procedure I could find , it took a whole ten minutes once I found your post so had to join forum to say thnx.
Cheers Ross, glad to have been of help!!

EB2AQH
Posts: 2
Joined: Tue Mar 29, 2016 1:02 pm

Re: Installing a 3.5 inch Waveshare LCD with Raspberry Pi3

Tue Mar 29, 2016 1:32 pm

Thanks for sharing your experience.
I've tried with 4 inch Waveshare LCD in Raspberry PI3 but it doesn't work.
I've followed all the steps, changing only the last command to 4" screen model

sudo ./LCD4-show

The Raspberry re-start and keeps on HDI mode until it hang-up (do not reach graphic interface).
Waveshare LCD becomes white al the time.

I supposed that the procedure will be the same for the 4 inch model but I'm wrong.
Any idea?

Regards,
Inigo EB2AQH

RetMan
Posts: 28
Joined: Fri Jan 01, 2016 4:17 pm

Re: Installing a 3.5 inch Waveshare LCD with Raspberry Pi3

Wed Mar 30, 2016 4:41 pm

Moin,

great description, works also for RasPi Model B+ 512MB.

Have a nice day.

Awooga
Posts: 11
Joined: Sun Mar 13, 2016 6:45 am

Re: Installing a 3.5 inch Waveshare LCD with Raspberry Pi3

Fri Apr 01, 2016 3:34 am

EB2AQH wrote:Thanks for sharing your experience.
I've tried with 4 inch Waveshare LCD in Raspberry PI3 but it doesn't work.
I've followed all the steps, changing only the last command to 4" screen model

sudo ./LCD4-show

The Raspberry re-start and keeps on HDI mode until it hang-up (do not reach graphic interface).
Waveshare LCD becomes white al the time.

I supposed that the procedure will be the same for the 4 inch model but I'm wrong.
Any idea?

Regards,
Inigo EB2AQH
Hi there,
I think you will have to go to the manufacturers website where the drivers may be different. It may be more than you supposed for the 4 inch.

Let me know how you get on!

EB2AQH
Posts: 2
Joined: Tue Mar 29, 2016 1:02 pm

Re: Installing a 3.5 inch Waveshare LCD with Raspberry Pi3

Fri Apr 01, 2016 10:17 am

Hello,
Drivers from manufacturer web site are included in the same tar file.
There are few differences betwen 3 inches and 4 inches LCD.
For me the main problem is related with the change from HDI to SPI LCD output but i'm Not Linux expert at all.
I sent an email to waveshare technical suport center for this issue with no answer at the moment.
Could be that the LCD screen is damaged?
Thanks.

Awooga
Posts: 11
Joined: Sun Mar 13, 2016 6:45 am

Re: Installing a 3.5 inch Waveshare LCD with Raspberry Pi3

Fri Apr 01, 2016 10:49 am

EB2AQH wrote:Hello,
Drivers from manufacturer web site are included in the same tar file.
There are few differences betwen 3 inches and 4 inches LCD.
For me the main problem is related with the change from HDI to SPI LCD output but i'm Not Linux expert at all.
I sent an email to waveshare technical suport center for this issue with no answer at the moment.
Could be that the LCD screen is damaged?
Thanks.
Hi there,
Yes it could be damaged but I would first make sure the drivers are the same. The manufacturer's site is not updated properly and sometimes things are in the wrong place.

There is (or was) different drivers for 3.5 inch.

Sorry I can't be more helpful but I haven't got a 4 inch to test it.

Aristocles
Posts: 2
Joined: Tue Apr 26, 2016 8:46 am

Re: Installing a 3.5 inch Waveshare LCD with Raspberry Pi3

Tue Apr 26, 2016 11:30 am

This didn't work for me. Tried it twice with vanilla install of Raspbian Jessie on a Raspberry Pi 3. The LCD screen I got from eBay and it is a generic one with "3.5 inch RPi LCD v3.0" written on the back of the PCB. Also says "HVGA 480x320" on the PCB. It is a 3.5" one with a touchscreen.
Any one else had issues with this fix? I seem to have the same hardware as OP but not getting the same result.

Awooga
Posts: 11
Joined: Sun Mar 13, 2016 6:45 am

Re: Installing a 3.5 inch Waveshare LCD with Raspberry Pi3

Wed Apr 27, 2016 1:06 am

Aristocles wrote:This didn't work for me. Tried it twice with vanilla install of Raspbian Jessie on a Raspberry Pi 3. The LCD screen I got from eBay and it is a generic one with "3.5 inch RPi LCD v3.0" written on the back of the PCB. Also says "HVGA 480x320" on the PCB. It is a 3.5" one with a touchscreen.
Any one else had issues with this fix? I seem to have the same hardware as OP but not getting the same result.
Your hardware is different. Sadly it is very specific. Sorry that I can't help more.

Aristocles
Posts: 2
Joined: Tue Apr 26, 2016 8:46 am

Re: Installing a 3.5 inch Waveshare LCD with Raspberry Pi3

Wed Apr 27, 2016 2:18 am

WOO! I got it working. It is such a simple fix too.
OK, turns out the newer Kernel (4.4+) causes the above configuration to break. The fix is simple. After following all the instructions provided by OP, run the command:

Code: Select all

sudo cp /boot/overlays/waveshare35a-overlay.dtb /boot/overlays/waveshare35a.dtbo
Then reboot.

VIOLA!

For posterity, some more info:

I am running Raspberry Pi 3
Vanilla Jessie installed with rpi-update and apt-get update/upgrade
I have a 3.5" LCD with touchscreen. On the back of the LCD is says "3.5 inch RPi LCD v3.0. HVGA 480x320".
After the above fix, I see:

Code: Select all

root@testpi:/home/pi# dmesg | grep -i graphics
[    7.793623] graphics fb1: fb_ili9486 frame buffer, 480x320, 300 KiB video memory, 4 KiB DMA buffer memory, fps=33, spi0.0 at 16 MHz

Awooga
Posts: 11
Joined: Sun Mar 13, 2016 6:45 am

Re: Installing a 3.5 inch Waveshare LCD with Raspberry Pi3

Wed Apr 27, 2016 2:20 am

Aristocles wrote:WOO! I got it working. It is such a simple fix too.
OK, turns out the newer Kernel (4.4+) causes the above configuration to break. The fix is simple. After following all the instructions provided by OP, run the command:

Code: Select all

sudo cp /boot/overlays/waveshare35a-overlay.dtb /boot/overlays/waveshare35a.dtbo
Then reboot.

VIOLA!

For posterity, some more info:

I am running Raspberry Pi 3
Vanilla Jessie installed with rpi-update and apt-get update/upgrade
I have a 3.5" LCD with touchscreen. On the back of the LCD is says "3.5 inch RPi LCD v3.0. HVGA 480x320".
After the above fix, I see:

Code: Select all

root@testpi:/home/pi# dmesg | grep -i graphics
[    7.793623] graphics fb1: fb_ili9486 frame buffer, 480x320, 300 KiB video memory, 4 KiB DMA buffer memory, fps=33, spi0.0 at 16 MHz
Great news indeed!!

HildeB
Posts: 1
Joined: Thu Apr 28, 2016 11:24 pm

Re: Installing a 3.5 inch Waveshare LCD with Raspberry Pi3

Fri Apr 29, 2016 2:25 am

Success!! Thanks folks. I have a RPi 2 and had no luck following the instructions. I was running NOOBS but changed to Raspbian Jessie after reading another thread. So here's how it worked for me: After a brand new install of Raspbian jessie, I followed the OP's instructions on configuring SPI, I2C, etc. I copied the overlay file as instructed by another poster and then ran LCD35-show. Now, on to calibration.

Awooga
Posts: 11
Joined: Sun Mar 13, 2016 6:45 am

Re: Installing a 3.5 inch Waveshare LCD with Raspberry Pi3

Fri Apr 29, 2016 4:03 am

Wonderful to hear!

bluesoup
Posts: 1
Joined: Mon May 16, 2016 3:24 pm

Re: Installing a 3.5 inch Waveshare LCD with Raspberry Pi3

Mon May 16, 2016 3:27 pm

Awooga wrote:
EB2AQH wrote:Hello,
Drivers from manufacturer web site are included in the same tar file.
There are few differences betwen 3 inches and 4 inches LCD.
For me the main problem is related with the change from HDI to SPI LCD output but i'm Not Linux expert at all.
I sent an email to waveshare technical suport center for this issue with no answer at the moment.
Could be that the LCD screen is damaged?
Thanks.
Hi there,
Yes it could be damaged but I would first make sure the drivers are the same. The manufacturer's site is not updated properly and sometimes things are in the wrong place.

There is (or was) different drivers for 3.5 inch.

Sorry I can't be more helpful but I haven't got a 4 inch to test it.
Did you manage to get it working?
I am having the exact same issue. My LCD display is just white after reboot and I cant even SSH into it. Any help would be greatly apprececiated

Awooga
Posts: 11
Joined: Sun Mar 13, 2016 6:45 am

Re: Installing a 3.5 inch Waveshare LCD with Raspberry Pi3

Tue May 17, 2016 3:14 am

Hi there,
Have you got EXACTLY the same screen device as stated on the tutorial?
A

drushtx
Posts: 25
Joined: Wed Mar 21, 2012 6:16 pm
Location: Houston, Texas
Contact: Website

Re: Installing a 3.5 inch Waveshare LCD with Raspberry Pi3

Mon Jun 06, 2016 9:42 pm

Way to go Awooga! I marked this post for future reference the day you posted it. At the end of April, I ordered my 3.5" RPi LCD (A) V3 from ali and it has been sitting in my "projects to do" pile since it arrived in early May.

So today was the big day. I pulled out an original Model A with 256MB of RAM. I burned a fresh copy of Jessie (18.03.16) and did a basic setup - expand the file system, enable Device Tree and SPI. I presume that the update/upgrade brought Jessie up to 27.05.16. Then I followed your recipe and 10 minutes later, whoosh! Your instructions were clear a perfect and I am now totally stoked to fire up some projects that can be self-contained and operated on this compact little system.

Well done and many thanks!

For those who had issues ordering the one that Awooga (and I/others used with his recipe), here is the link:

http://www.aliexpress.com/item/Raspberr ... 88672.html

$24 USD shipped to US.

Awooga
Posts: 11
Joined: Sun Mar 13, 2016 6:45 am

Re: Installing a 3.5 inch Waveshare LCD with Raspberry Pi3

Mon Jun 06, 2016 10:45 pm

Great news indeed. Glad to have been of help.

LifeHacker42
Posts: 1
Joined: Tue Jun 07, 2016 4:31 pm

Re: Installing a 3.5 inch Waveshare LCD with Raspberry Pi3

Tue Jun 07, 2016 4:33 pm

So does this only work with the raspbian OS? I'm still a bit of a noob and was wondering if the driver could still work on retropie

Thanks in advance

Awooga
Posts: 11
Joined: Sun Mar 13, 2016 6:45 am

Re: Installing a 3.5 inch Waveshare LCD with Raspberry Pi3

Thu Jun 09, 2016 9:17 am

Hi there,
Sorry I have no clue at all.

mthomason
Posts: 113
Joined: Sun Apr 24, 2016 12:28 pm

Re: Installing a 3.5 inch Waveshare LCD with Raspberry Pi3

Thu Jun 09, 2016 11:08 am

LifeHacker42 wrote:So does this only work with the raspbian OS? I'm still a bit of a noob and was wondering if the driver could still work on retropie

Thanks in advance
Retropie appears to be "Raspbian plus a bunch of extra software on top", so I would imagine it's worth a try (just make sure you're prepared to reformat the card if it all goes wrong, backing it up to an image on a PC wouldn't be a bad idea if you've got things on there you don't want to have to reinstall from scratch.)

Mr David
Posts: 1
Joined: Thu Jun 16, 2016 6:01 am

Re: Installing a 3.5 inch Waveshare LCD with Raspberry Pi3

Thu Jun 16, 2016 6:16 am

Followed instruction, from log, found "/dev/fb1" doesn't exist so LCD won't work.
Took me two nights to find out the issue and here is the solution:
Modify the following line in the file LCD35-show:
sudo cp ./waveshare35a-overlay.dtb /boot/overlays/
to be:
sudo cp ./waveshare35a-overlay.dtb /boot/overlays/waveshare35a.dtbo
Then run it:
sudo ./LCD35-show

Hope it helps someone later,
David J

4711engel
Posts: 10
Joined: Wed Jun 01, 2016 12:03 pm

Re: Installing a 3.5 inch Waveshare LCD with Raspberry Pi3

Fri Jun 24, 2016 2:08 pm

I have one problem:
after sudo ./LCD35-show the raspi 3 reboot and then the HDMI-Monitor turns to black (without boot-info) and the LCD 3.5 remains white and nothing happens.

Return to “Beginners”

Who is online

Users browsing this forum: No registered users and 40 guests