please choosego to mobile | Continue to access the PC version
View: 31227|Reply: 15

Orangepi zero + TFT LCD + GUI Desktop

[Copy link]

1

threads

9

posts

81

credits

Registered member

Rank: 2

credits
81
Published in 2017-7-24 13:34:32 | Show all floors |Read mode
Hi,

I want to enable GUI desktop on Waveshare 3.2 TFT LCD with orangepi zero using Lubuntu or debian desktop images available at the website.
How to configure the LCD for GUI view.

Am able to drive LCD with armbian ubuntu server image in CLI mode as mentioned in the following bog:
https://kaspars.net/blog/linux/spi-display-orange-pi-zero

9

threads

634

posts

4398

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
4398
Published in 2017-7-25 04:47:42 | Show all floors
Try with Ubuntu desktop for Orange Pi One and use OrangePi Zero fex file (/boot/script.bin). It should work.

1

threads

9

posts

81

credits

Registered member

Rank: 2

credits
81
 Author| Published in 2017-7-25 14:53:18 | Show all floors
Hi,

As suggested I have followed the following steps:

1.  Flashed Armbian_5.30_Orangepione_Ubuntu_xenial_default_3.4.113_desktop.img in sd card and removed the /boot/script.bin.
2. I have created another script.bin with symbolic link to /boot/bin/orangepizero.bin
3. Reboot
4. sudo modprobe fbtft_device custom name=fb_ili9340 gpios=dc:3,reset:0 speed=16000000 busnum=1 rotate=90
5. con2fbmap 1 8
Post this my LCD turns out to be black screen but no GUI.
Kindly suggest further

10

threads

218

posts

2040

credits

Gold member

Rank: 6Rank: 6

credits
2040
Published in 2017-7-25 20:15:45 | Show all floors
Edited by nopnop2002 at 2017-7-25 22:12
karthik replied at 2017-7-25 14:53
Hi,

As suggested I have followed the following steps:

I use Armbian_5.30_Orangepizero_Debian_jessie_default_3.4.113

Try this
dc->GPIO3(Pin#15)
reset->GPIO0(Pin#13)
SCK->CLK(Pin#23)
MOSI->MOSI(Pin#19)
CS->CS(Pin#24)
GND->GND
VCC->3.3V


horizontal
  1. sudo modprobe fbtft_device name=flexfb gpios=dc:3,reset:0 speed=3200000 busnum=1

  2. sudo modprobe flexfb width=320 height=240 buswidth=8 init=\
  3. -1,0x01,-2,5,\
  4. -1,0x28,\
  5. -1,0x36,0x38,\
  6. -1,0x3A,0x55,\
  7. -1,0x11,-2,100,\
  8. -1,0x29,-2,20,\
  9. -3

  10. con2fbmap 1 8
Copy code
vertical
  1. sudo modprobe fbtft_device name=flexfb gpios=dc:3,reset:0 speed=3200000 busnum=1 rotate=90

  2. sudo modprobe flexfb width=320 height=240 buswidth=8 init=\
  3. -1,0x01,-2,5,\
  4. -1,0x28,\
  5. -1,0x36,0x58,\
  6. -1,0x3A,0x55,\
  7. -1,0x11,-2,100,\
  8. -1,0x29,-2,20,\
  9. -3

  10. con2fbmap 1 8
Copy code

EDIT:Even this works.
  1. sudo modprobe fbtft_device custom name=fb_ili9340 gpios=dc:3,reset:0 speed=16000000 busnum=1 rotate=90

  2. con2fbmap 1 8
Copy code



1

threads

9

posts

81

credits

Registered member

Rank: 2

credits
81
 Author| Published in 2017-7-25 22:26:05 | Show all floors
Thank you all, appreciate your support !!   I can see armbian desktop in my LCD.

I am trying to enable the touch on my waveshare 3.2 LCD with Armbian OS.  It seems like LCD supports ads7846_device.
How to configure and enable the touch drivers in Armbian OS?

10

threads

218

posts

2040

credits

Gold member

Rank: 6Rank: 6

credits
2040
Published in 2017-7-25 23:08:16 | Show all floors
karthik replied at 2017-7-25 22:26
Thank you all, appreciate your support !!   I can see armbian desktop in my LCD.

I am trying to ena ...

Check this.

https://forum.armbian.com/index. ... how-enable-ads7846/

But... I think it's hard work to enable ads7846.


1

threads

9

posts

81

credits

Registered member

Rank: 2

credits
81
 Author| Published in 2017-7-27 20:43:32 | Show all floors
Hi,

I am trying to enable same LCD with Orange Pi one using Armbian_5.30_Ubuntu_Xenial_3.4.113_desktop image.Following commands are not working:

    sudo modprobe fbtft_device custom name=fb_ili9340 gpios=dc:3,reset:0 speed=16000000 busnum=1 rotate=90

    con2fbmap 1 8

Above command gives error "modprobe: ERROR: could not insert 'fbtft_device': Invalid argument" but it works with OPI zero.
Kindly share the working command for OPI one

10

threads

218

posts

2040

credits

Gold member

Rank: 6Rank: 6

credits
2040
Published in 2017-7-27 21:21:48 | Show all floors
Edited by nopnop2002 at 2017-7-27 21:40
karthik replied at 2017-7-27 20:43
Hi,

I am trying to enable same LCD with Orange Pi one using Armbian_5.30_Ubuntu_Xenial_3.4.113_desk ...

Pin#24 of ZERO is SPI1_CS.
Pin#24 of ONE is SPI0_CS.

So in case of ONE(except for ZERO),use busnum=0 or omit busnum.

1

threads

9

posts

81

credits

Registered member

Rank: 2

credits
81
 Author| Published in 2017-7-28 17:22:01 | Show all floors
Thanks!
Waveshare 3.2 LCD is now working fine with OPI one but :
ls /dev/spi*  outputs "no such file or directory"

I am trying to enable touch for 3.2 tft LCD with ads7846 for OPI one using https://github.com/Tomasz-Mankowski/ADS7846-X11-daemon , but the command ./ADS7846-X11 fails with following output
"./ADS7846-X11: Error connecting to SPI dev: /dev/spidev0.0"

10

threads

218

posts

2040

credits

Gold member

Rank: 6Rank: 6

credits
2040
Published in 2017-7-28 21:47:47 | Show all floors
Edited by nopnop2002 at 2017-7-28 21:49
karthik replied at 2017-7-28 17:22
Thanks!
Waveshare 3.2 LCD is now working fine with OPI one but :
ls /dev/spi*  outputs "no such fil ...

/dev/spidev0.0 is used in TFT.

OPI is different from RPI, and there is only 1 of SPI.



You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list