Hg
Posts: 8
Joined: Tue Jan 24, 2012 2:53 pm
Contact: Website

Waveshare 3.2" LCD V4 and Raspberry pi 2

Wed Feb 18, 2015 12:17 pm

Hi all,
I recently purchases the new Raspberry Pi 2 and a Waveshare 3.2" LCD (V4).
I purchased the LCD from ebay and it arrived today.

I am having issues getting it to do anything, it powers on but the screen only stays white.
I have used the Custom OS which came with the screen and also found on these forums a previous version of the OS for V3 which i downloaded and tried but still with no Joy.
I was wondering if anyone has actually got one of the V4 screens to work with the new pi and if so how?
I believe the Install maybe corrupt (as others with older screens say the OS on the discs are corrupt) but i can't find any V4 downloads on the net, only ones i can find are for the older V3 screen.

Thanks in advance

fruitoftheloom
Posts: 20172
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Waveshare 3.2" LCD V4 and Raspberry pi 2

Wed Feb 18, 2015 12:54 pm

Hg wrote:Hi all,
I recently purchases the new Raspberry Pi 2 and a Waveshare 3.2" LCD (V4).
I purchased the LCD from ebay and it arrived today.

I am having issues getting it to do anything, it powers on but the screen only stays white.
I have used the Custom OS which came with the screen and also found on these forums a previous version of the OS for V3 which i downloaded and tried but still with no Joy.
I was wondering if anyone has actually got one of the V4 screens to work with the new pi and if so how?
I believe the Install maybe corrupt (as others with older screens say the OS on the discs are corrupt) but i can't find any V4 downloads on the net, only ones i can find are for the older V3 screen.

Thanks in advance
Did you see this recent post regards Waveshare ? http://www.raspberrypi.org/forums/viewt ... 00&t=98069
adieu

Asus CS10 Chromebit / HP Envy 4500 Wireless Printer / Raspberry Pi Model 2B v1.1 / RealVNC Software...

tesseuno
Posts: 4
Joined: Mon Mar 02, 2015 6:19 pm

Re: Waveshare 3.2" LCD V4 and Raspberry pi 2

Fri Mar 06, 2015 2:40 pm

Hello , you have news? I bought the same product and I have the same problem . I asked for assistance to the manufacturer , but I was just plain replied that lcd is not compatible with rasp2

fruitoftheloom
Posts: 20172
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Waveshare 3.2" LCD V4 and Raspberry pi 2

Fri Mar 06, 2015 2:43 pm

tesseuno wrote:Hello , you have news? I bought the same product and I have the same problem . I asked for assistance to the manufacturer , but I was just plain replied that lcd is not compatible with rasp2
...try the link posted in previous post, if you have a fully updated Raspbian, should not be an issue :!:
adieu

Asus CS10 Chromebit / HP Envy 4500 Wireless Printer / Raspberry Pi Model 2B v1.1 / RealVNC Software...

DrJonSmith
Posts: 6
Joined: Sun Jan 04, 2015 12:39 am

Re: Waveshare 3.2" LCD V4 and Raspberry pi 2

Fri Mar 06, 2015 7:01 pm

I have one too and how I go my one working is installing this software on a SD card (min space needed is 8GB).

http://diyhacking.com/raspberry-pi-touc ... -tutorial/

The tutorial says to use Win32DiskImager for Windows computers but if you are using Mac then try applepi baker (These apps are for putting the image file on the SD card).

Applepi baker: http://www.tweaking4all.com/hardware/ra ... -pi-baker/
Win32DiskImager: http://sourceforge.net/projects/win32diskimager/
Image file download: https://drive.google.com/file/d/0B0nujp ... dETzg/view

I hope this helps
DrJonSmith

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

Re: Waveshare 3.2" LCD V4 and Raspberry pi 2

Fri Mar 06, 2015 7:24 pm

DrJonSmith wrote:I have one too and how I go my one working is installing this software on a SD card (min space needed is 8GB).

http://diyhacking.com/raspberry-pi-touc ... -tutorial/

The tutorial says to use Win32DiskImager for Windows computers but if you are using Mac then try applepi baker (These apps are for putting the image file on the SD card).

Applepi baker: http://www.tweaking4all.com/hardware/ra ... -pi-baker/
Win32DiskImager: http://sourceforge.net/projects/win32diskimager/
Image file download: https://drive.google.com/file/d/0B0nujp ... dETzg/view
I had a quick look at the tutorial and I can only see B/B+ mentioned.
Does it work on a Pi2B?

DrJonSmith
Posts: 6
Joined: Sun Jan 04, 2015 12:39 am

Re: Waveshare 3.2" LCD V4 and Raspberry pi 2

Mon Mar 09, 2015 8:56 pm

Sorry I don't know but it is not hard to get file on to SD card so give it a try.

Thanks
DrJonSmith

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

Re: Waveshare 3.2" LCD V4 and Raspberry pi 2

Mon Mar 09, 2015 10:14 pm

DrJonSmith wrote:Sorry I don't know but it is not hard to get file on to SD card so give it a try.
My question was a roundabout way of saying that this topic was specifically about getting the screen to work on a Pi2B.
The page you link to dates from 2014 and I can see not changes / updates that suggest it could work on the Pi2.
Actually, in the comments it is mentioned that it does not work on the Pi2B and the writer links back to a topic here on the forum...

Lumpi
Posts: 8
Joined: Tue Jun 02, 2015 1:28 pm

Re: Waveshare 3.2" LCD V4 and Raspberry pi 2

Tue Jun 02, 2015 1:38 pm

Setup a Waveshare 3.2 with Raspberry Pi 2 B

I have a raspberry Pi 2 B,
a monitor Wasveshare Spotpear 3.2 inch LCD v4
OS is Raspberry, Wheezy with NOOBS_v1_4.1

USE PASTE AND COPY

1) sudo nano /usr/share/X11/xorg.conf.d/99-fbturbo.conf
Option “fbdev” “/dev/fb0″ and change the fb0 to fb1

2) Download the driver for the LCD
sudo REPO_URI=https://github.com/notro/rpi-firmware rpi-update
sudo reboot

3) Enable SPI via raspi-config
sudo raspi-config
find the “Advanced Options” line
find the line that says “SPI ENABLE/DISABLE AUTOMATIC LOADING“
Click enter here
Enter yes and reboot sudo reboot

4) Edit the /etc/modules
sudo nano /etc/modules

Add the following code below the snd-bcm2835 line

spi-bcm2708
ads7846

fbtft_device rotate=270 name=waveshare32b gpios=dc:22,reset:27 speed=48000000

fb_ili9340 width=320 height=240
buswidth=8init=-1,0xCB,0x39,0x2C,0x00,0x34,0x02,-1,0xCF,0x00,0XC1,0X30,
-1,0xE8,0x85,0x00,0x78,-1,0xEA,0x00,0x00,-1,0xED,0x64,0x03,0X12,0X81,
-1,0xF7,0x20,-1,0xC0,0x23,-1,0xC1,0x10,-1,0xC5,0x3e,0x28,-1,0xC7,0x86,
-1,0x36,0x28,-1,0x3A,0x55,-1,0xB1,0x00,0x18,-1,0xB6,0x08,0x82,0x27,
-1,0xF2,0x00,-1,0x26,0x01,-1,0xE0,0x0F,0x31,0x2B,0x0C,0x0E,0x08,0x4E,0xF1,
0x37,0x07,0x10,0x03,0x0E,0x09,0x00,-1,0XE1,0x00,0x0E,0x14,0x03,0x11,0x07,
0x31,0xC1,0x48,0x08,0x0F,0x0C,0x31,0x36,0x0F,-1,0x11,-2,120,-1,0x29,-1,0x2c,-3
"FROM fb_ili9340 UNTIL -3 ALL IN ONE LINE !!!"
Remark: rotate in the line fbtft_device rotates your desktop,
you can change this (90, 180, 270)

5) Edit /boot/cmdline.txt: sudo nano /boot/cmdline.txt
ENTER ALL BELOW IN ONE LINE!

dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p6 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

6) sudo reboot

7) Activating the touchscreen
sudo nano /boot/config.txt
"Insert this line on the end of config.txt"
dtoverlay=ads7846,speed=500000,penirq=17,swapxy=1

8) Calibation Entry, keeps the monitor steady or install xinput_calibrator

sudo nano /usr/share/X11/xorg.conf.d/99-calibration.conf

Section "InputClass"
Identifier "calibration"
MatchProduct "ADS7846 Touchscreen"
Option "Calibration" "3900 240 3900 240"
EndSection

sudo reboot

9) Gimmick :-)

sudo apt-get install mplayer
wget http://download.blender.org/peach/bigbu ... 20x180.mp4

DON'T START THE GUI WITH STARTX, STAY IN THE CONSOLE!
Enter in the console
mplayer -vo fbdev2:/dev/fb1 -vf scale=320:-3 BigBuckBunny_320x180.mp4

Have a nice day

Lumpi
Posts: 8
Joined: Tue Jun 02, 2015 1:28 pm

Re: Waveshare 3.2" LCD V4 and Raspberry pi 2

Tue Jun 02, 2015 2:40 pm

Waveshare 3.2 and Raspberry Pi 2 remote control of the GUI

Remark: It works also with other LCD's

Take Control of your Pi Desktop GUI with your PC or Laptop

1) Install on your Pi
sudo apt-get install tightvncserver,
you will be asked for password !Remember it! Don't use the Pi password!

2) Install on your PC (Linux)
sudo apt-get install xtightvncviewer
For Windows install tightVNC (http://www.tightvnc.com/)

On your Pi start the Gui with startx, open XTerminal enter tightvncserver, answer the password at the first time.

On your PC open a terminal enter tightvncviwer, than enter the ip from your raspberry and raspberrypi:1 (Looks like 192.168.2.xxx raspberrypi:1)

Enter the tightvncserver-password and you will see the Pi Desktop on your Pc.

Lumpi
Posts: 8
Joined: Tue Jun 02, 2015 1:28 pm

Re: Waveshare 3.2" LCD V4 and Raspberry pi 2

Thu Jun 11, 2015 11:22 pm

CORRECTION !

for Waveshare 3.2 and Raspberry Pi 2 remote control of the GUI

go to the line before the last one.

"On your PC open a terminal enter tightvncviwer..." this is wrong !
On your PC open a terminal enter xtightvncviwer... this is correct !

If the monitor is jamming your raspberry, shutdown the PI, disconnect the monitor.
Start the raspberry new, wait until the Pi has booted. Than open a terminal on your Linux Pc,
and start a ssh connection, write in the terminal, ssh [email protected] (the ip from your raspberry). and enter the password. Now you are connected with your Pi.
Than write, tightvncserver, ENTER.
Open a second Terminal on vour PC and write xtightvncviwer ENTER, write 192.168.2.xxx raspberrypi:1, after the password entry you will have the raspberry GUI on your PC.

In Windows use PuTTY for a ssh connection.

I hope this will help you.

ericnoel
Posts: 1
Joined: Tue Jun 23, 2015 1:45 am

Re: Waveshare 3.2" LCD V4 and Raspberry pi 2

Tue Jun 23, 2015 3:18 am

Lumpi wrote:Setup a Waveshare 3.2 with Raspberry Pi 2 B

I have a raspberry Pi 2 B,
a monitor Wasveshare Spotpear 3.2 inch LCD v4
OS is Raspberry, Wheezy with NOOBS_v1_4.1

USE PASTE AND COPY

1) sudo nano /usr/share/X11/xorg.conf.d/99-fbturbo.conf
Option “fbdev” “/dev/fb0″ and change the fb0 to fb1

2) Download the driver for the LCD
sudo REPO_URI=https://github.com/notro/rpi-firmware rpi-update
sudo reboot

3) Enable SPI via raspi-config
sudo raspi-config
find the “Advanced Options” line
find the line that says “SPI ENABLE/DISABLE AUTOMATIC LOADING“
Click enter here
Enter yes and reboot sudo reboot

4) Edit the /etc/modules
sudo nano /etc/modules

Add the following code below the snd-bcm2835 line

spi-bcm2708
ads7846

fbtft_device rotate=270 name=waveshare32b gpios=dc:22,reset:27 speed=48000000

fb_ili9340 width=320 height=240
buswidth=8init=-1,0xCB,0x39,0x2C,0x00,0x34,0x02,-1,0xCF,0x00,0XC1,0X30,
-1,0xE8,0x85,0x00,0x78,-1,0xEA,0x00,0x00,-1,0xED,0x64,0x03,0X12,0X81,
-1,0xF7,0x20,-1,0xC0,0x23,-1,0xC1,0x10,-1,0xC5,0x3e,0x28,-1,0xC7,0x86,
-1,0x36,0x28,-1,0x3A,0x55,-1,0xB1,0x00,0x18,-1,0xB6,0x08,0x82,0x27,
-1,0xF2,0x00,-1,0x26,0x01,-1,0xE0,0x0F,0x31,0x2B,0x0C,0x0E,0x08,0x4E,0xF1,
0x37,0x07,0x10,0x03,0x0E,0x09,0x00,-1,0XE1,0x00,0x0E,0x14,0x03,0x11,0x07,
0x31,0xC1,0x48,0x08,0x0F,0x0C,0x31,0x36,0x0F,-1,0x11,-2,120,-1,0x29,-1,0x2c,-3
"FROM fb_ili9340 UNTIL -3 ALL IN ONE LINE !!!"
Remark: rotate in the line fbtft_device rotates your desktop,
you can change this (90, 180, 270)

5) Edit /boot/cmdline.txt: sudo nano /boot/cmdline.txt
ENTER ALL BELOW IN ONE LINE!

dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p6 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

6) sudo reboot

7) Activating the touchscreen
sudo nano /boot/config.txt
"Insert this line on the end of config.txt"
dtoverlay=ads7846,speed=500000,penirq=17,swapxy=1

8) Calibation Entry, keeps the monitor steady or install xinput_calibrator

sudo nano /usr/share/X11/xorg.conf.d/99-calibration.conf

Section "InputClass"
Identifier "calibration"
MatchProduct "ADS7846 Touchscreen"
Option "Calibration" "3900 240 3900 240"
EndSection

sudo reboot

9) Gimmick :-)

sudo apt-get install mplayer
wget http://download.blender.org/peach/bigbu ... 20x180.mp4

DON'T START THE GUI WITH STARTX, STAY IN THE CONSOLE!
Enter in the console
mplayer -vo fbdev2:/dev/fb1 -vf scale=320:-3 BigBuckBunny_320x180.mp4

Have a nice day
I can confirm this is WORKING. Just one question though using the pen the pointer seems to move on the opposite vertical side

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

Re: Waveshare 3.2" LCD V4 and Raspberry pi 2

Mon Jul 06, 2015 1:22 pm

On a current Raspbian,
why won't simply fetching waveshare32b-overlay.dtb from
https://github.com/swkim01/waveshare-dtoverlays
into /boot/overlays,
followed by adding its "dtoverlay" reference into /boot/config.txt,
be enough to fire up a waveshare32 hardware as /dev/fb1?

Sami91
Posts: 8
Joined: Tue Dec 08, 2015 7:11 pm

Re: Waveshare 3.2" LCD V4 and Raspberry pi 2

Sun Jan 17, 2016 6:26 pm

Hello to all
after step 6 I can not restart.
I have this error:
I'm no expert, I ask your help.
  thank you all
Attachments
DSC_0002_risultato_risultato.JPG
DSC_0002_risultato_risultato.JPG (44.03 KiB) Viewed 13015 times

Sami91
Posts: 8
Joined: Tue Dec 08, 2015 7:11 pm

Re: Waveshare 3.2" LCD V4 and Raspberry pi 2

Sun Jan 17, 2016 7:42 pm

Lumpi wrote:Setup a Waveshare 3.2 with Raspberry Pi 2 B

I have a raspberry Pi 2 B,
a monitor Wasveshare Spotpear 3.2 inch LCD v4
OS is Raspberry, Wheezy with NOOBS_v1_4.1

USE PASTE AND COPY

1) sudo nano /usr/share/X11/xorg.conf.d/99-fbturbo.conf
Option “fbdev” “/dev/fb0″ and change the fb0 to fb1

2) Download the driver for the LCD
sudo REPO_URI=https://github.com/notro/rpi-firmware rpi-update
sudo reboot

3) Enable SPI via raspi-config
sudo raspi-config
find the “Advanced Options” line
find the line that says “SPI ENABLE/DISABLE AUTOMATIC LOADING“
Click enter here
Enter yes and reboot sudo reboot

4) Edit the /etc/modules
sudo nano /etc/modules

Add the following code below the snd-bcm2835 line

spi-bcm2708
ads7846

fbtft_device rotate=270 name=waveshare32b gpios=dc:22,reset:27 speed=48000000

fb_ili9340 width=320 height=240
buswidth=8init=-1,0xCB,0x39,0x2C,0x00,0x34,0x02,-1,0xCF,0x00,0XC1,0X30,
-1,0xE8,0x85,0x00,0x78,-1,0xEA,0x00,0x00,-1,0xED,0x64,0x03,0X12,0X81,
-1,0xF7,0x20,-1,0xC0,0x23,-1,0xC1,0x10,-1,0xC5,0x3e,0x28,-1,0xC7,0x86,
-1,0x36,0x28,-1,0x3A,0x55,-1,0xB1,0x00,0x18,-1,0xB6,0x08,0x82,0x27,
-1,0xF2,0x00,-1,0x26,0x01,-1,0xE0,0x0F,0x31,0x2B,0x0C,0x0E,0x08,0x4E,0xF1,
0x37,0x07,0x10,0x03,0x0E,0x09,0x00,-1,0XE1,0x00,0x0E,0x14,0x03,0x11,0x07,
0x31,0xC1,0x48,0x08,0x0F,0x0C,0x31,0x36,0x0F,-1,0x11,-2,120,-1,0x29,-1,0x2c,-3
"FROM fb_ili9340 UNTIL -3 ALL IN ONE LINE !!!"
Remark: rotate in the line fbtft_device rotates your desktop,
you can change this (90, 180, 270)

5) Edit /boot/cmdline.txt: sudo nano /boot/cmdline.txt
ENTER ALL BELOW IN ONE LINE!

dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p6 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

6) sudo reboot

7) Activating the touchscreen
sudo nano /boot/config.txt
"Insert this line on the end of config.txt"
dtoverlay=ads7846,speed=500000,penirq=17,swapxy=1

8) Calibation Entry, keeps the monitor steady or install xinput_calibrator

sudo nano /usr/share/X11/xorg.conf.d/99-calibration.conf

Section "InputClass"
Identifier "calibration"
MatchProduct "ADS7846 Touchscreen"
Option "Calibration" "3900 240 3900 240"
EndSection

sudo reboot

9) Gimmick :-)

sudo apt-get install mplayer
wget http://download.blender.org/peach/bigbu ... 20x180.mp4

DON'T START THE GUI WITH STARTX, STAY IN THE CONSOLE!
Enter in the console
mplayer -vo fbdev2:/dev/fb1 -vf scale=320:-3 BigBuckBunny_320x180.mp4

Have a nice day
Hello to all
after step 6 I can not restart.
I have this error:
I'm no expert, I ask your help.
thank you all
Attachments
DSC_0002_risultato_risultato.JPG
DSC_0002_risultato_risultato.JPG (44.03 KiB) Viewed 12981 times

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

Re: Waveshare 3.2" LCD V4 and Raspberry pi 2

Sun Jan 17, 2016 7:56 pm

Your root filesystem isn't mountable. It needs a fsck.
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.

Sami91
Posts: 8
Joined: Tue Dec 08, 2015 7:11 pm

Re: Waveshare 3.2" LCD V4 and Raspberry pi 2

Wed Jan 20, 2016 4:51 pm

DougieLawson wrote:Your root filesystem isn't mountable. It needs a fsck.

can u help me pleaseee :)

Celly
Posts: 1
Joined: Wed Jan 20, 2016 9:28 pm

Re: Waveshare 3.2" LCD V4 and Raspberry pi 2

Wed Jan 20, 2016 9:31 pm

Sami91 wrote:
DougieLawson wrote:Your root filesystem isn't mountable. It needs a fsck.

can u help me pleaseee :)
If you followed Step 5 and C&P'd exactly as it is, chances are your root partition is wrong..
5) Edit /boot/cmdline.txt: sudo nano /boot/cmdline.txt
ENTER ALL BELOW IN ONE LINE!

dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p6 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
Make sure that "root=/dev/mmcblk0p6" is pointing to the right root partition.

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

Re: Waveshare 3.2" LCD V4 and Raspberry pi 2

Wed Jan 20, 2016 9:40 pm

Get a new SDCard and a USB SDcard reader.

Build a fresh copy of Raspbian on the new card.

Boot the new card in your RPi.

Mount the damaged card in the reader, mount the reader in your RPi.

Open a terminal
for i in 1 2 3 5 6; do sudo fsck -f -y /dev/sda$i; done

Ignore any errors.

sudo poweroff

Swap cards, reboot and grab a beer to celebrate a job well done.
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.

Sami91
Posts: 8
Joined: Tue Dec 08, 2015 7:11 pm

Re: Waveshare 3.2" LCD V4 and Raspberry pi 2

Thu Jan 21, 2016 5:07 pm

i fixed by changing this line: root = / dev / mmcblk0p6.
I tried to put 2 instead of 6, and it worked.
thank you guys for help and I toast to you.

how can I see the gui on screen?
if I try with: startx he tells me:
fatal error no screens found
sorry guys but i can't download the lcd's driver because i have a problem with this....damnnnn
DSC_0004_risultato.JPG
DSC_0004_risultato.JPG (45.37 KiB) Viewed 12718 times
how i can resolve??
thx u again

Sami91
Posts: 8
Joined: Tue Dec 08, 2015 7:11 pm

Re: Waveshare 3.2" LCD V4 and Raspberry pi 2

Fri Jan 22, 2016 4:52 pm

Sami91 wrote:i fixed by changing this line: root = / dev / mmcblk0p6.
I tried to put 2 instead of 6, and it worked.
thank you guys for help and I toast to you.

how can I see the gui on screen?
if I try with: startx he tells me:
fatal error no screens found
sorry guys but i can't download the lcd's driver because i have a problem with this....damnnnn
DSC_0004_risultato.JPG
how i can resolve??
thx u again
i need help guyzz pleaseeeeee

thgun
Posts: 1
Joined: Sun Feb 12, 2017 12:34 am

Re: Waveshare 3.2" LCD V4 and Raspberry pi 2

Sun Feb 12, 2017 1:02 am

Hi all, I am noob to the Rasperry pi and I do not yet fully understand the programming language. I have purchased a Pi 3 Model B kit and a Waveshare 3.2" LCD screen and case. I purchased the LCD screen from SB components through Amazon. The reason i bought it was because I saw it advertised in a Raspberry Pi mag, and it said it would work with pi 3. and the all the drivers etc was pre-installed on an sd card so it would work straight out the box. Well this is not the case for me. I am running Raspian on my pi. I fitted the screen inserted the sd card and powered up, nothing just a white screen. No green light the pi was not reading the card, I checked the software disc that came with the screen and it said for the pi model B/B+ well i have a pi 3 model B so in theory it should work and is not. Can anyone help or advise me with this, I have contacted SB components and explained it to them it did not work out the box as discribed. :geek:

ravenousld3341
Posts: 13
Joined: Tue Feb 21, 2017 3:59 pm

Re: Waveshare 3.2" LCD V4 and Raspberry pi 2

Tue Feb 28, 2017 2:42 am

Lumpi wrote:Setup a Waveshare 3.2 with Raspberry Pi 2 B

I have a raspberry Pi 2 B,
a monitor Wasveshare Spotpear 3.2 inch LCD v4
OS is Raspberry, Wheezy with NOOBS_v1_4.1

USE PASTE AND COPY

1) sudo nano /usr/share/X11/xorg.conf.d/99-fbturbo.conf
Option “fbdev” “/dev/fb0″ and change the fb0 to fb1

2) Download the driver for the LCD
sudo REPO_URI=https://github.com/notro/rpi-firmware rpi-update
sudo reboot

3) Enable SPI via raspi-config
sudo raspi-config
find the “Advanced Options” line
find the line that says “SPI ENABLE/DISABLE AUTOMATIC LOADING“
Click enter here
Enter yes and reboot sudo reboot

4) Edit the /etc/modules
sudo nano /etc/modules

Add the following code below the snd-bcm2835 line

spi-bcm2708
ads7846

fbtft_device rotate=270 name=waveshare32b gpios=dc:22,reset:27 speed=48000000

fb_ili9340 width=320 height=240
buswidth=8init=-1,0xCB,0x39,0x2C,0x00,0x34,0x02,-1,0xCF,0x00,0XC1,0X30,
-1,0xE8,0x85,0x00,0x78,-1,0xEA,0x00,0x00,-1,0xED,0x64,0x03,0X12,0X81,
-1,0xF7,0x20,-1,0xC0,0x23,-1,0xC1,0x10,-1,0xC5,0x3e,0x28,-1,0xC7,0x86,
-1,0x36,0x28,-1,0x3A,0x55,-1,0xB1,0x00,0x18,-1,0xB6,0x08,0x82,0x27,
-1,0xF2,0x00,-1,0x26,0x01,-1,0xE0,0x0F,0x31,0x2B,0x0C,0x0E,0x08,0x4E,0xF1,
0x37,0x07,0x10,0x03,0x0E,0x09,0x00,-1,0XE1,0x00,0x0E,0x14,0x03,0x11,0x07,
0x31,0xC1,0x48,0x08,0x0F,0x0C,0x31,0x36,0x0F,-1,0x11,-2,120,-1,0x29,-1,0x2c,-3
"FROM fb_ili9340 UNTIL -3 ALL IN ONE LINE !!!"
Remark: rotate in the line fbtft_device rotates your desktop,
you can change this (90, 180, 270)

5) Edit /boot/cmdline.txt: sudo nano /boot/cmdline.txt
ENTER ALL BELOW IN ONE LINE!

dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p6 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

6) sudo reboot

7) Activating the touchscreen
sudo nano /boot/config.txt
"Insert this line on the end of config.txt"
dtoverlay=ads7846,speed=500000,penirq=17,swapxy=1

8) Calibation Entry, keeps the monitor steady or install xinput_calibrator

sudo nano /usr/share/X11/xorg.conf.d/99-calibration.conf

Section "InputClass"
Identifier "calibration"
MatchProduct "ADS7846 Touchscreen"
Option "Calibration" "3900 240 3900 240"
EndSection

sudo reboot

9) Gimmick :-)

sudo apt-get install mplayer
wget http://download.blender.org/peach/bigbu ... 20x180.mp4

DON'T START THE GUI WITH STARTX, STAY IN THE CONSOLE!
Enter in the console
mplayer -vo fbdev2:/dev/fb1 -vf scale=320:-3 BigBuckBunny_320x180.mp4

Have a nice day
I followed these directions and My screen is still all white. I've been stuck on this for 3 days.

Code: Select all

dmesg | grep spi
[    0.000000] Linux version 4.0.7-v7+ ([email protected]) (gcc version 4.8.3 20140106 (prerelease) (crosstool-NG linaro-1.13.1-4.8-2014.01 - Linaro GCC 2013.11) ) #1 SMP PREEMPT Sat Jul 11 20:44:05 CEST 2015
[    2.602162] bcm2708_spi 3f204000.spi: DMA channel 2 at address 0xf3007200 with irq 77
[    2.606758] bcm2708_spi 3f204000.spi: DMA channel 4 at address 0xf3007400 with irq 20
[    2.628669] ads7846 spi0.1: touchscreen, irq 497
[    2.631815] input: ADS7846 Touchscreen as /devices/platform/soc/3f204000.spi/spi_master/spi0/spi0.1/input/input0
[    2.637409] bcm2708_spi 3f204000.spi: SPI Controller at 0x3f204000 (irq 80)
[    2.639905] bcm2708_spi 3f204000.spi: SPI Controller running in dma mode
This looks OK, however my /dev/fb1 never appeared

Code: Select all

[email protected]:~ $ ls /dev/fb*
/dev/fb0
And I have a single error

Code: Select all

[    2.631815] input: ADS7846 Touchscreen as /devices/platform/soc/3f204000.spi/spi_master/spi0/spi0.1/input/input0
[    2.637409] bcm2708_spi 3f204000.spi: SPI Controller at 0x3f204000 (irq 80)
[    2.639905] bcm2708_spi 3f204000.spi: SPI Controller running in dma mode
[    2.647491] systemd[1]: Started udev Coldplug all Devices.
[    2.651554] systemd[1]: systemd-modules-load.service: main process exited, code=exited, status=1/FAILURE
[    2.665024] systemd[1]: Failed to start Load Kernel Modules.
[    2.668028] systemd[1]: Unit systemd-modules-load.service entered failed state.
[    2.675272] systemd[1]: Started File System Check on Root Device.
[    2.828345] systemd[1]: Starting Apply Kernel Variables...
[    2.838029] systemd[1]: Mounting Configuration File System...
[    2.847129] systemd[1]: Mounting FUSE Control File System...
[    2.857699] systemd[1]: Starting Create Static Device Nodes in /dev...
[    2.866258] systemd[1]: Starting Syslog Socket.
[    2.870529] systemd[1]: Listening on Syslog Socket.
[    2.870810] systemd[1]: Starting Journal Service...
[    2.881850] systemd[1]: Started Journal Service.

Found the source of the issue

Code: Select all

Feb 28 02:47:09 raspberrypi systemd-modules-load[807]: Failed to find module 'fbtft_device rotate=270 name=waveshar
Feb 28 02:47:09 raspberrypi systemd-modules-load[807]: Failed to find module 'fb_ili9340 width=320 height=240 buswi
Feb 28 02:47:09 raspberrypi systemd[1]: systemd-modules-load.service: main process exited, code=exited, status=1/FA
Feb 28 02:47:09 raspberrypi systemd[1]: Failed to start Load Kernel Modules.
Who do i fix this?

OK... So i corrected the error by commenting out the config lines for my screen

Code: Select all

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

i2c-dev
spi-bcm2708
ads7846

#fbtft_device name=waveshare32b gpios=dc:22,reset:27 speed=48000000

#fb_ili9340 width=320 height=240 buswidth=8 init=-1,0xCB,0x39,0x2C,0x00,0x34,0x02,-1,0xCF,0x00,0XC1,0X30,-1,0xE8,0$
I'll just wait for some pointers. It appears that I'm missing a module for my touch screen or the config line is wrong in /etc/modules

Return to “General discussion”