Page 1 of 2

Sharp LQ092B5DW01 (960x160pixel TFT module) meets RPi3

Posted: Thu Nov 24, 2016 7:58 pm
by aBUGSworstnightmare
Hey there,
here's another special aspect ratio display connected to the RPi:
Sharp LQ092B5DW01.jpg
Sharp LQ092B5DW01.jpg (12.67 KiB) Viewed 8955 times
https://youtu.be/isqD8UGTBB0
Will post config settings later here (although part of the story is in this thread viewtopic.php?p=1010869#p1010869 )

Re: Sharp LQ092B5DW01 (960x160pixel TFT module) meets RPi3

Posted: Fri Nov 25, 2016 8:20 am
by Project XXX
Nice to see that you find the right timing settings, looking forward to recieve the PCB and play with it.

Re: Sharp LQ092B5DW01 (960x160pixel TFT module) meets RPi3

Posted: Fri Nov 25, 2016 4:24 pm
by aBUGSworstnightmare
So, here's the timing used for the demo video:

Code: Select all

# ---------------------------------------------
# For use with Sharp LQ092B5DW01 module only
# rev. 16/11/2016
# ---------------------------------------------

# For more options and information see
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
# Some settings may impact device functionality. See link above for details
# enable 24-bit DPI interface
dtoverlay=dpi24

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
disable_overscan=1

# ---------------------------------------------
# Overscan Information
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
# --------------------------------------------- 
#overscan_left=0
#overscan_right=0
#overscan_top=0
#overscan_bottom=0

# uncomment to force a console size. By default it will be display's size minus
# overscan.
# Portrait or Landscape Setting - only uncomment one block at a time
# Portrait-1 ( normal )
display_rotate=0
framebuffer_width=960
framebuffer_height=160

# Landscape-2 ( upside down )
#display_rotate=2
#framebuffer_width=960
#framebuffer_height=160

#Portrait-1 ( right side up )
#display_rotate=1
#framebuffer_width=160
#framebuffer_height=960

# Portrait-2 ( left side up )
#display_rotate=3
#framebuffer_width=160
#framebuffer_height=960

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# ---------------------------------------------
# Enable DPI
# --------------------------------------------- 
enable_dpi_lcd=1

# ---------------------------------------------
# Make DPI default output
# ---------------------------------------------
display_default_lcd=1

# ---------------------------------------------
# custom HDMI mode
# https://www.raspberrypi.org/forums/viewtopic.php?p=613926#p613926
# https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=24679
# ---------------------------------------------
dpi_group=2
dpi_mode=87

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=900
gpu_mem=194

# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=off
#dtparam=i2s=on
dtparam=spi=off

# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on
 ---------------------------------------------
# DPI output format definitions
# https://www.raspberrypi.org/forums/viewtopic.php?p=628061#p628061
# DPI structure: https://www.raspberrypi.org/forums/viewtopic.php?p=617719#p617719
# ---------------------------------------------
# output_format:
#   1: DPI_OUTPUT_FORMAT_9BIT_666
#   2: DPI_OUTPUT_FORMAT_16BIT_565_CFG1
#   3: DPI_OUTPUT_FORMAT_16BIT_565_CFG2
#   4: DPI_OUTPUT_FORMAT_16BIT_565_CFG3
#   5: DPI_OUTPUT_FORMAT_18BIT_666_CFG1
#   6: DPI_OUTPUT_FORMAT_18BIT_666_CFG2
#   7: DPI_OUTPUT_FORMAT_24BIT_888
#
# rgb_order:
#   1: DPI_RGB_ORDER_RGB
#   2: DPI_RGB_ORDER_BGR
#   3: DPI_RGB_ORDER_GRB
#   4: DPI_RGB_ORDER_BRG
#
# output_enable_mode:
#   0: DPI_OUTPUT_ENABLE_MODE_DATA_VALID
#   1: DPI_OUTPUT_ENABLE_MODE_COMBINED_SYNCS
#
# invert_pixel_clock:
#   0: RGB Data changes on rising edge and is stable at falling edge
#   1: RGB Data changes on falling edge and is stable at rising edge
#
# hsync polarity: 
#   0: default for HDMI mode
#   1: inverted
#
# vsync polarity:
#   0: default for HDMI mode
#   1: inverted
#
# output_enable_polarity:
#   0: default for HDMI mode
#   1: inverted
#
# hsync phase:
#   0: rising edge
#   1: falling edge
#
# vsync phase:
#   0: rising edge
#   1: falling edge
#
# output_enable phase:
#   0: rising edge
#   1: falling edge
# ---------------------------------------------
# output_enable_mode/vphase/output_enable_phase = 1
dpi_output_format=262421

# ---------------------------------------------
# HDMI timing definitions
#https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=24679
# ---------------------------------------------
# hdmi_timings= <h_active_pixels>
#		  LCD module horizontal resolution
#
#               <h_sync_polarity>
# 		  0: active low
#		  1: active high
#
#               <h_front_porch> 
#		<h_sync_pulse>
#		<h_back_porch>
#		<v_active_lines>
#		  LCD module vertical resolution
#
#		<v_sync_polarity>
# 		  0: active low
#		  1: active high
#
#		<v_front_porch>
#		<v_sync_pulse>
#		<v_back_porch>
#
#		<v_sync_offset_a>
#		<v_sync_offset_b>
#		<pixel_rep>
#
#		<frame_rate>
#		  screen refrech rate (50/60Hz supported only!)#
#
#		<interlaced>
#
#		<pixel_freq>
#		  calculates as: <h_active_pixels> * <v_active_lines> * <frame_rate>
#
#		<aspect_ratio>
#		  HDMI_ASPECT_4_3 = 1
#		  HDMI_ASPECT_14_9 = 2
#		  HDMI_ASPECT_16_9 = 3
#		  HDMI_ASPECT_5_4 = 4
#		  HDMI_ASPECT_16_10 = 5
#		  HDMI_ASPECT_15_9 = 6
#		  HDMI_ASPECT_21_9 = 7
#		  HDMI_ASPECT_64_27 = 8
# ---------------------------------------------
#hdmi_timing for LQ092B5DW01 configuration notes
#h_active_pixels = 960
#h_sync_polarity = 1
#h_front_porch = 2
#h_sync_pulse = 6
#h_back_porch = 244
#v_active_lines = 160
#v_sync_polarity = 1
#v_front_porch = 0
#v_sync_pulse = 10
#v_back_porch = 40
#v_sync_offset_a = 0
#v_sync_offset_b = 0
#pixel_rep = 0
#frame_rate = 60
#interlaces = 0
#pixel_freq = 32004000
#aspect_ratio = 8
# ---------------------------------------------
hdmi_timings=960 1 2 6 244 160 1 0 10 40 0 0 0 60 0 32004000 8
Strange thing is that I need to operate the display at roughly double the max dot clock.
Forum user 'ait' shared below hdmi_timings

Code: Select all

hdmi_timings=960 1 2 8 242 160 1 0 10 40 0 0 0 60 0 15900000 8 
but since I don't know it's settings for dpi_output_format the display my displays are not working with this timing (15.9MHz dot clock is in spec btw).

So, in case some other users have such a display would be great if they can share their timing details :!:

Wifi enabled backlight driver for LQ092B5DW01

Posted: Wed Jan 04, 2017 12:41 pm
by aBUGSworstnightmare
Hi,
the LQ092B5DW01 TFT module has no integrated backlight driver. The backlight of the module is as below:
- 3 LED string white backlight @ typ. 18.5V
- 1 LED string red backlight @ typ. 12V
- contacts available on a 0.5mm pitch FPC connector

So, this module has three 'challanges': requires some tiny connector and two different voltages.

That's why I had the idea to make my own LED driver for this board with features like:
- only one supply voltage (12V) and using a cheap step-up DC/DC module (XL6009E1 http://www.banggood.com/XL6009-Step-Up- ... mds=search) to generate the 18.5 - 19V
- usable for other modules as well
- two independent LED driver for different voltages --> decided to use two On-Semi CAT4104 because they allow up to 25 V operation on LED pins, 4 channles with 175mA sink current each
- easy to control via PWM

Well ... PWM is an issue when using DPI interface, so I've added a ESP8266 wifi module! I'm running a simple web server on it which allows to adjust the brightness of each of the backlights.
WP_20170104_13_12_42_Smart.jpg
Wifi-enabled backlight driver for LQ092B5DW01
WP_20170104_13_12_42_Smart.jpg (54.9 KiB) Viewed 8522 times
WP_20170104_13_12_52_Smart.jpg
Wifi-enabled backlight driver for LQ092B5DW01 - top side with DC/DC and ESP8266 module (ESP12)
WP_20170104_13_12_52_Smart.jpg (63.44 KiB) Viewed 8522 times
WP_20170104_13_13_14_Smart.jpg
Wifi-enabled backlight driver for LQ092B5DW01 - bottom side with CAT4104 LED drivers
WP_20170104_13_13_14_Smart.jpg (57.34 KiB) Viewed 8522 times

Red TFT module backlight

Posted: Thu Jan 05, 2017 1:31 pm
by aBUGSworstnightmare
Here is what the module looks like when red backlight is used:
r100_w0.jpg
LQ092B5DW01 - red backlight set to 100%, white backlight off
r100_w0.jpg (63.77 KiB) Viewed 8434 times
r100_w10.jpg
LQ092B5DW01 - red backlight set to 100%, white backlight det to 10%
r100_w10.jpg (58.95 KiB) Viewed 8434 times

Re: Sharp LQ092B5DW01 (960x160pixel TFT module) meets RPi3

Posted: Thu Jan 05, 2017 2:54 pm
by james-at-lo-tech
Did you achieve concurrent output to this and the HDMI output via framebuffer device mapping somehow?

Re: Sharp LQ092B5DW01 (960x160pixel TFT module) meets RPi3

Posted: Thu Jan 05, 2017 2:57 pm
by ait
Here is what the module looks like when red backlight is used:
Aha, i never tried the red backlight.
Afaik the display was part of the BMW 7 Dashboard.
The red backlight was for the "Night Mode".

Re: Sharp LQ092B5DW01 (960x160pixel TFT module) meets RPi3

Posted: Thu Jan 05, 2017 4:13 pm
by aBUGSworstnightmare
ait wrote:
Here is what the module looks like when red backlight is used:
Aha, i never tried the red backlight.
Afaik was the display part of the BMW 7 Dashboard.
The red backlight was for the "Night Mode".
:idea: :!:
james-at-lo-tech wrote:Did you achieve concurrent output to this and the HDMI output via framebuffer device mapping somehow?
Also people claim that this should be possible - with some dedicated software like omxplayer i.e. (in general: software which supports output re-direction), I could never get any output on the HDMI interface when using DPI interface.
Due to the fact that the display connected to DPI interface is my main screen - means nothing is connected to HDMI - I never investigated this matter.

Re: Sharp LQ092B5DW01 (960x160pixel TFT module) meets RPi3

Posted: Thu Jan 05, 2017 5:08 pm
by james-at-lo-tech
Omxplayer works fine with DPI interface, but we need a framebuffer driver to create /Dev/fb1 for the non-primary display for it to be usable by lightdm.

Re: Sharp LQ092B5DW01 (960x160pixel TFT module) meets RPi3

Posted: Thu Jan 05, 2017 5:54 pm
by aBUGSworstnightmare
james-at-lo-tech wrote:Omxplayer works fine with DPI interface, but we need a framebuffer driver to create /Dev/fb1 for the non-primary display for it to be usable by lightdm.
I know that omxplayer works fine with DPI (as you can see from the video in the first post of this thread), but I never managed to get a second omxplayer instance playing to HDMI at the same time
If you know how to achieve this, let me know the commands and I will test.

Re: Sharp LQ092B5DW01 (960x160pixel TFT module) meets RPi3

Posted: Thu Jan 05, 2017 7:39 pm
by rpdom
aBUGSworstnightmare wrote:I know that omxplayer works fine with DPI (as you can see from the video in the first post of this thread), but I never managed to get a second omxplayer instance playing to HDMI at the same time
If you know how to achieve this, let me know the commands and I will test.
I believe using omxplayer --display=5 will use the HDMI or Composite outputs, and --display=4 will use the DPI output. I've had simultaneous playback of different videos on HDMI and DPI via Gert's VGA board.

Re: Sharp LQ092B5DW01 (960x160pixel TFT module) meets RPi3

Posted: Thu Jan 05, 2017 7:48 pm
by james-at-lo-tech
In my testing,
  • To play on DPI device when desktop is on HDMI device: omxplayer --display 4 test.mp4
  • To play on HDMI device when desktop is on DPI device: omxplayer --display 5 test.mp4

Re: Sharp LQ092B5DW01 (960x160pixel TFT module) meets RPi3

Posted: Fri Jan 13, 2017 7:40 am
by NOOBS_2016
aBUGSworstnightmare wrote: So, in case some other users have such a display would be great if they can share their timing details :!:
hey,
i am working with the LQ092B5DW01-display too.
I have built my own PCB and connected it to the display. After booting the GUI appears, but the picture is flickering. I took your settings, but I think they are not working perfectly for my display.
Which parameters would you change to stop flicker?

Re: Sharp LQ092B5DW01 (960x160pixel TFT module) meets RPi3

Posted: Fri Jan 13, 2017 5:36 pm
by aBUGSworstnightmare
NOOBS_2016 wrote:
aBUGSworstnightmare wrote: So, in case some other users have such a display would be great if they can share their timing details :!:
hey,
i am working with the LQ092B5DW01-display too.
I have built my own PCB and connected it to the display. After booting the GUI appears, but the picture is flickering. I took your settings, but I think they are not working perfectly for my display.
Which parameters would you change to stop flicker?
how should I know what you call 'flicker'?
Post your config.txt, let us know which RPi you're using (zero, 3, ..) and I can test it and see flickering.
In case of Zero I recommend increasing GPU clock, above settings work on my Zero and Rpi 3.
And, which of the timings that I've posted are you using? Only the one with 32MHz is working

Re: Sharp LQ092B5DW01 (960x160pixel TFT module) meets RPi3

Posted: Sat Jan 14, 2017 1:53 pm
by NOOBS_2016
aBUGSworstnightmare wrote:

Code: Select all

# ---------------------------------------------

dpi_output_format=262421

hdmi_timings=960 1 2 6 244 160 1 0 10 40 0 0 0 60 0 32004000 8

I use this settings in my "config.txt" and use a RPi 3. On monday i will post my complete "config.txt" and can share a dropbox-link with a video of my display.

Re: Sharp LQ092B5DW01 (960x160pixel TFT module) meets RPi3

Posted: Sat Jan 14, 2017 2:04 pm
by ait
Hello,
my settings in config.txt where ("where" because i do not use the display at the moment):
dtoverlay=dpi24
framebuffer_width=960
framebuffer_height=160

enable_dpi_lcd=1
dpi_group=2
dpi_mode=87 # Hdmi CVT
display_default_lcd=1

hdmi_timings=960 1 2 8 242 160 1 0 10 40 0 0 0 60 0 15900000 8
i used it with pizero and raspbian lite

Re: Sharp LQ092B5DW01 (960x160pixel TFT module) meets RPi3

Posted: Mon Jan 16, 2017 7:29 am
by NOOBS_2016
the video:
https://www.dropbox.com/sh/h2g54xbu9zxg ... 1iDba?dl=0

my config.txt:

Code: Select all

# For more options and information see
# http://raspberry.org/documentation/configuration/config-txt.md
# Some settings may impact device functinality. See link above for details

# Uncomment if you get no picture on HDMI for a default "safe" mode
#hmid_safe=1

# Uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# Uncomment to force a HDMI mode rather than DVI. This can make audio work in DMT (computer monitor) modes
#hdmi_drive=2

# Uncomment to increase signal to HDMI, if you have interference, blanking or no display
#config_hdmi_boost=4

# Uncomment for composite PAL
#sdtv_mode=2

# Uncomment to overclock the arm. 700MHz is the default.
#arm_freq=800

##############################
# settings for sharp-display #
##############################

# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=off
dtparam=spi=off

# GPIO set to ALT2-function for DPI
dtoverlay=dpi24

# Uncomment this if your display has a black border of unused pixels visible and your diplay can output without overscan
disable_overscan=1

# Uncomment to force a console size. By default it will be display's size minus overscan.
display_rotate=0
framebuffer_width=960
framebuffer_height=160

# DPI-output activate / configure
enable_dpi_lcd=1
display_default_lcd=1

# Uncomment to force a specific HDMI mode (this will force DPI)
dpi_group=2
dpi_mode=87

# Enable audio (loads snd_bcm2835)
dtparam_audio=on

dpi_output_format=262421
hdmi_timings=960 1 2 6 250 160 1 0 10 40 0 0 0 60 0 32001000 8

gpu_mem=194

#Additional overlays and parameters are documented /boot/overlays/README

Re: Sharp LQ092B5DW01 (960x160pixel TFT module) meets RPi3

Posted: Mon Jan 16, 2017 6:55 pm
by aBUGSworstnightmare
NOOBS_2016 wrote:the video:
https://www.dropbox.com/sh/h2g54xbu9zxg ... 1iDba?dl=0

my config.txt:

Code: Select all

# For more options and information see
# http://raspberry.org/documentation/configuration/config-txt.md
# Some settings may impact device functinality. See link above for details

# Uncomment if you get no picture on HDMI for a default "safe" mode
#hmid_safe=1

# Uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# Uncomment to force a HDMI mode rather than DVI. This can make audio work in DMT (computer monitor) modes
#hdmi_drive=2

# Uncomment to increase signal to HDMI, if you have interference, blanking or no display
#config_hdmi_boost=4

# Uncomment for composite PAL
#sdtv_mode=2

# Uncomment to overclock the arm. 700MHz is the default.
#arm_freq=800

##############################
# settings for sharp-display #
##############################

# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=off
dtparam=spi=off

# GPIO set to ALT2-function for DPI
dtoverlay=dpi24

# Uncomment this if your display has a black border of unused pixels visible and your diplay can output without overscan
disable_overscan=1

# Uncomment to force a console size. By default it will be display's size minus overscan.
display_rotate=0
framebuffer_width=960
framebuffer_height=160

# DPI-output activate / configure
enable_dpi_lcd=1
display_default_lcd=1

# Uncomment to force a specific HDMI mode (this will force DPI)
dpi_group=2
dpi_mode=87

# Enable audio (loads snd_bcm2835)
dtparam_audio=on

dpi_output_format=262421
hdmi_timings=960 1 2 6 250 160 1 0 10 40 0 0 0 60 0 32001000 8

gpu_mem=194

#Additional overlays and parameters are documented /boot/overlays/README
Check your cable and/or interface board.
Tested your settings here, image is stable but shifted 6 pixel to the right.
detail.jpg
6pixel offset to the right
detail.jpg (19.06 KiB) Viewed 7710 times
full.jpg
NOOBS_2016 timing on my HW
full.jpg (29.92 KiB) Viewed 7711 times
EDIT: btw... display rotate command can be omitted

Re: Sharp LQ092B5DW01 (960x160pixel TFT module) meets RPi3

Posted: Tue Jan 17, 2017 9:25 am
by NOOBS_2016
Thank you for your help...now it is working fine :D
I forgot to connect all GND-pins of the display with all GND-pins of the RPi :roll:

But i have still a other frequency than you, with your frequency it is flickering.

My timing:

Code: Select all

hdmi_timings=960 1 2 6 244 160 1 0 10 40 0 0 0 60 0 32900000 8

Re: Sharp LQ092B5DW01 (960x160pixel TFT module) meets RPi3

Posted: Wed Jan 18, 2017 8:32 am
by aBUGSworstnightmare
Sounds like some crosstalking issues; good to hear you got it fixed.
I would not worry about driving frequency difference; as long as your picture is stable I would say 'mission completed'

Re: Sharp LQ092B5DW01 (960x160pixel TFT module) meets RPi3

Posted: Thu Jan 19, 2017 12:36 pm
by NOOBS_2016
I was interested which frequency for the CLK-signal is the lowest the RPi 3 is able to send out.
So i checked it with an oscilloscope and the result was 31,253,817 Hz.

I changed the frequency in the hdmi-timing-settings and it is still working fine

Re: Sharp LQ092B5DW01 (960x160pixel TFT module) meets RPi3

Posted: Sat Feb 11, 2017 9:36 pm
by holo85
These settings work for me:
hdmi_timings=960 0 20 50 70 160 0 10 10 30 0 0 0 60 0 19200000 1

Re: Sharp LQ092B5DW01 (960x160pixel TFT module) meets RPi3

Posted: Sun Feb 12, 2017 8:17 am
by aBUGSworstnightmare
holo85 wrote:These settings work for me:
hdmi_timings=960 0 20 50 70 160 0 10 10 30 0 0 0 60 0 19200000 1
Please post your 'dpi_output_format' number too.

Using mine (dpi_output_format=262421) results in the display being offset to the left.
timing.jpg
timing.jpg (37 KiB) Viewed 7174 times

Re: Sharp LQ092B5DW01 (960x160pixel TFT module) meets RPi3

Posted: Sun Feb 12, 2017 9:45 am
by holo85
Sry,

# sharp LQ092B5DW01 parameter
dtoverlay=dpi18

overscan_left=1
overscan_right=1
overscan_top=0
overscan_bottom=0

framebuffer_width=960
framebuffer_height=160

enable_dpi_lcd=1
display_default_lcd=1
dpi_group=2
dpi_mode=87
dpi_output_format=278549

hdmi_timings=960 0 20 50 70 160 0 10 10 30 0 0 0 60 0 19200000 1

Re: Sharp LQ092B5DW01 (960x160pixel TFT module) meets RPi3

Posted: Sun Feb 12, 2017 12:08 pm
by aBUGSworstnightmare
holo85 wrote:Sry,

# sharp LQ092B5DW01 parameter
dtoverlay=dpi18

overscan_left=1
overscan_right=1
overscan_top=0
overscan_bottom=0

framebuffer_width=960
framebuffer_height=160

enable_dpi_lcd=1
display_default_lcd=1
dpi_group=2
dpi_mode=87
dpi_output_format=278549

hdmi_timings=960 0 20 50 70 160 0 10 10 30 0 0 0 60 0 19200000 1
Thanks for sharing! Works like a charm 8-) :!: