Author: DigitalToys

Orange Pi 7'' LCD Module and 7'' Capacitive touch screen

[Copy link]
Published in 2015-5-11 22:43:12 | Show all floors
In two days.
Reply

Use magic report

6

threads

57

posts

324

credits

Intermediate member

Rank: 3Rank: 3

credits
324
 Author| Published in 2015-5-12 15:39:56 | Show all floors
Cool. As said, it would be great if you could explain a little bit more about the adjustments that heve to be done in order to get the screen running...
www.DigitalToys.info - News, tutorials and tests for SBCs

1

threads

46

posts

583

credits

Senior member

Rank: 4

credits
583
Published in 2015-5-12 21:40:48 | Show all floors

Hi Steven,

I've also bought one of these screens and have connected it as per the illustrations on the Aliexpress page.  But I can't get any display from it.  Do you have a sample script.fex that shows the required values for the [disp_init] and [lcd0_para] sections ?

Thanks,
Steven

Published in 2015-5-12 22:58:59 | Show all floors
I have uploaded android OS image with 7 inch LCD module support for Orange pi. Please download.

6

threads

57

posts

324

credits

Intermediate member

Rank: 3Rank: 3

credits
324
 Author| Published in 2015-5-13 04:26:25 | Show all floors
Edited by DigitalToys at 2015-5-12 21:35

Just downloaded the image and flashed it. OPi booted immediately afterwards, first impression of the image is very good. Performance seems to be ok, WIFI works fine, I will play around with it now to see how it goes.

Thanks a lot for the image, this is definitely a big step forward!

www.DigitalToys.info - News, tutorials and tests for SBCs

1

threads

46

posts

583

credits

Senior member

Rank: 4

credits
583
Published in 2015-5-13 12:36:56 | Show all floors
zhao_steven replied at 2015-5-12 22:58
I have uploaded android OS image with 7 inch LCD module support for Orange pi. Please download.

Hi Steven,
I extracted details from the sys_config.fex file in your image and after changing my script.fex I now have the LCD display working with Linux 3.4.103.  I didn't try the Android system because I didn't want to wipe my NAND.

Thanks for the upload; it contained the critical details for me.

Cheers,
Steven


6

threads

57

posts

324

credits

Intermediate member

Rank: 3Rank: 3

credits
324
 Author| Published in 2015-5-13 13:22:29 | Show all floors
Hi Steven (phelum),

could you share the steps you took to get it running under Linux?

Thanks in advance!
www.DigitalToys.info - News, tutorials and tests for SBCs

1

threads

46

posts

583

credits

Senior member

Rank: 4

credits
583
Published in 2015-5-13 16:01:31 | Show all floors
DigitalToys replied at 2015-5-13 13:22
Hi Steven (phelum),

could you share the steps you took to get it running under Linux?

I think the first thing is to get the script.fex file correct.  Here are the two relevant sections from my file :

  1. [disp_init]
  2. disp_init_enable = 1
  3. disp_mode = 0

  4. screen0_output_type = 1
  5. screen0_output_mode = 4

  6. screen1_output_type = 1
  7. screen1_output_mode = 4

  8. fb0_framebuffer_num = 2
  9. fb0_format = 10
  10. fb0_pixel_sequence = 0
  11. fb0_scaler_mode_enable = 0
  12. fb0_width = 0
  13. fb0_height = 0

  14. fb1_framebuffer_num = 2
  15. fb1_format = 10
  16. fb1_pixel_sequence = 0
  17. fb1_scaler_mode_enable = 0
  18. fb1_width = 0
  19. fb1_height = 0

  20. lcd0_backlight = 197
  21. lcd1_backlight = 197

  22. lcd0_bright = 50
  23. lcd0_contrast = 50
  24. lcd0_saturation = 57
  25. lcd0_hue = 50

  26. lcd1_bright = 50
  27. lcd1_contrast = 50
  28. lcd1_saturation = 57
  29. lcd1_hue = 50

  30. [lcd0_para]
  31. lcd_used = 1
  32. lcd_x = 1024
  33. lcd_y = 600
  34. lcd_width = 155
  35. lcd_height = 85
  36. lcd_dclk_freq = 51
  37. lcd_pwm_not_used = 0
  38. lcd_pwm_ch = 0
  39. lcd_pwm_freq = 10000
  40. lcd_pwm_pol = 1
  41. lcd_max_bright = 240
  42. lcd_min_bright = 64
  43. lcd_if = 0
  44. lcd_hbp = 158
  45. lcd_ht = 1344
  46. lcd_vbp = 25
  47. lcd_vt = 1270
  48. lcd_vspw = 3
  49. lcd_hspw = 20
  50. lcd_hv_if = 0
  51. lcd_hv_smode = 0
  52. lcd_hv_s888_if = 0
  53. lcd_hv_syuv_if = 0
  54. lcd_lvds_ch = 0
  55. lcd_lvds_mode = 0
  56. lcd_lvds_bitwidth = 0
  57. lcd_lvds_io_cross = 0
  58. lcd_cpu_if = 0
  59. lcd_frm = 1
  60. lcd_io_cfg0 = 0x00000000
  61. lcd_gamma_correction_en = 0
  62. lcd_gamma_tbl_0 = 0x00000000
  63. lcd_gamma_tbl_1 = 0x00010101
  64. lcd_gamma_tbl_255 = 0xffffff

  65. lcd_bl_en_used = 1
  66. lcd_bl_en = port:PH09<1><0><default><1>

  67. lcd_power_used = 1
  68. lcd_power = port:PH03<1><0><default><1>

  69. lcd_pwm_used = 1
  70. lcd_pwm = port:PB02<2><0><default><default>

  71. lcdd0 = port:PD00<2><0><default><default>
  72. lcdd1 = port:PD01<2><0><default><default>
  73. lcdd2 = port:PD02<2><0><default><default>
  74. lcdd3 = port:PD03<2><0><default><default>
  75. lcdd4 = port:PD04<2><0><default><default>
  76. lcdd5 = port:PD05<2><0><default><default>
  77. lcdd6 = port:PD06<2><0><default><default>
  78. lcdd7 = port:PD07<2><0><default><default>
  79. lcdd8 = port:PD08<2><0><default><default>
  80. lcdd9 = port:PD09<2><0><default><default>
  81. lcdd10 = port:PD10<2><0><default><default>
  82. lcdd11 = port:PD11<2><0><default><default>
  83. lcdd12 = port:PD12<2><0><default><default>
  84. lcdd13 = port:PD13<2><0><default><default>
  85. lcdd14 = port:PD14<2><0><default><default>
  86. lcdd15 = port:PD15<2><0><default><default>
  87. lcdd16 = port:PD16<2><0><default><default>
  88. lcdd17 = port:PD17<2><0><default><default>
  89. lcdd18 = port:PD18<2><0><default><default>
  90. lcdd19 = port:PD19<2><0><default><default>
  91. lcdd20 = port:PD20<2><0><default><default>
  92. lcdd21 = port:PD21<2><0><default><default>
  93. lcdd22 = port:PD22<2><0><default><default>
  94. lcdd23 = port:PD23<2><0><default><default>
  95. lcdclk = port:PD24<2><0><default><default>
  96. lcdde = port:PD25<2><0><default><default>
  97. lcdhsync = port:PD26<2><0><3><default>
  98. lcdvsync = port:PD27<2><0><3><default>

Copy code

After changing the fex file and regenerating script.bin I'd remove any monitor from the HDMI and VGA sockets, attach the LCD screen to Con2 and boot the Orange Pi.  If the LCD display doesn't work my next step would be to make sure the lcd module (sunxi-lcd I believe) is either in the kernel or loaded if it's a module.

This is all it took to get the screen working here.  If it doesn't work for you I can upload my script fex and bin files and maybe even my kernel and modules.  The kernel is what I run in my CubieTrucks.  I haven't tested the screen with the Rasbian kernel but it should work if it has the lcd module.

Cheers,
Steven


6

threads

57

posts

324

credits

Intermediate member

Rank: 3Rank: 3

credits
324
 Author| Published in 2015-5-13 16:10:50 | Show all floors
Great, thanks! I will give it a try tonight. Long weekend to come, so enough time for playing around with it...
www.DigitalToys.info - News, tutorials and tests for SBCs

1

threads

46

posts

583

credits

Senior member

Rank: 4

credits
583
Published in 2015-5-13 16:59:16 | Show all floors
DigitalToys replied at 2015-5-13 16:10
Great, thanks! I will give it a try tonight. Long weekend to come, so enough time for playing around ...

If you get stuck and want to try with my kernel I've uploaded it and the modules to http://phelum.net/temp/OP

The script fex and bin files are also there.

Cheers,
Steven


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

Points Rule

Quick reply Top Return list