Difference between revisions of "RPi Screens"

From eLinux.org
Jump to: navigation, search
m (Motorola Atrix Lapdock)
(TFT LCD Modules)
 
(27 intermediate revisions by 13 users not shown)
Line 30: Line 30:
 
Lapdock has two connectors that plug into an Atrix phone: a Micro HDMI D plug  for carrying video and sound, and a Micro USB plug for charging the phone and connecting to the Lapdock's internal USB hub, which talks to the Lapdock keyboard, trackpad, and two USB ports.  With suitable cables and adapters, these two plugs can be connected to RasPi's full-size HDMI connector and one of RasPi's full-size USB A ports.
 
Lapdock has two connectors that plug into an Atrix phone: a Micro HDMI D plug  for carrying video and sound, and a Micro USB plug for charging the phone and connecting to the Lapdock's internal USB hub, which talks to the Lapdock keyboard, trackpad, and two USB ports.  With suitable cables and adapters, these two plugs can be connected to RasPi's full-size HDMI connector and one of RasPi's full-size USB A ports.
  
The RasPi forum has a long thread on Lapdock with many useful suggestions, photos, and links: [http://www.raspberrypi.org/phpBB3/viewtopic.php?t=6747 I made a Raspberry PI Laptop].  There's also a good 'blog entry at element14 with photos and suggestions of where to get cables and adapters: [http://www.element14.com/community/groups/raspberry-pi/blog/2012/09/08/raspberry-pi-laptop Raspberry Pi Laptop].  TechRepublic has a tear-down article with photos of Lapdock internal components here: [http://www.techrepublic.com/photos/cracking-open-the-motorola-droid-bionic-lapdock/6311468?tag=siu-container;b60b Cracking Open the Motorola Droid Bionic Lapdock].  Paul Mano has a wealth of photos of Lapdock innards at [http://lapdockmod.blogspot.com/ Motorola Atrix Lapdock mod projects].
+
Motorola also made a Lapdock for the [http://en.wikipedia.org/wiki/Motorola__Droid_Bionic Motorola Droid Bionic] smartphone.  According to [http://www.raspberrypi.org/phpBB3/viewtopic.php?f=63&t=6747&start=585 Jim Manley], the Droid Bionic Lapdock is identical to the Atrix Lapdock, except that the two Micro plugs are each rotated 180 degrees.
 +
 
 +
The RasPi forum has a long thread on Lapdock with many useful suggestions, photos, and links: [http://www.raspberrypi.org/phpBB3/viewtopic.php?t=6747 I made a Raspberry PI Laptop].  There's also a good 'blog entry at element14 with photos and suggestions of where to get cables and adapters: [http://www.element14.com/community/community/raspberry-pi/blog/2012/09/08/raspberry-pi-laptop Raspberry Pi Laptop].  TechRepublic has a tear-down article with photos of Lapdock internal components here: [http://www.techrepublic.com/photos/cracking-open-the-motorola-droid-bionic-lapdock/6311468?tag=siu-container;b60b Cracking Open the Motorola Droid Bionic Lapdock].  Paul Mano has a wealth of photos of Lapdock innards at [http://lapdockmod.blogspot.com/ Motorola Atrix Lapdock mod projects].
  
 
The hardest part about connecting Lapdock is getting the cables and adapters.  Most HDMI and USB cables are designed to plug into jacks, whereas the Lapdock has plugs so the cables/adapters must have Micro HDMI and Micro USB female connections.  These are unusual cables and adapters, so check the links.
 
The hardest part about connecting Lapdock is getting the cables and adapters.  Most HDMI and USB cables are designed to plug into jacks, whereas the Lapdock has plugs so the cables/adapters must have Micro HDMI and Micro USB female connections.  These are unusual cables and adapters, so check the links.
  
Lapdock uses the HDMI plug to tell if a phone is plugged in by seeing if the HDMI DDC/CEC ground pin is pulled low.  If it's not, Lapdock is powered off.  As soon as you plug in a phone or RasPi, all the grounds short together and Lapdock powers itself on.  However, it only does this if the HDMI cable actually connects the DDC/CEC ground line.  Many cheap HDMI cables do not include the individual ground lines, and rely on a foil shield connected to the outer shells on both ends.  Such a cable will not work with an unmodified Lapdock.  There is a detailed 'blog entry on the subject at element14: [http://www.element14.com/community/groups/raspberry-pi/blog/2012/09/27/raspberry-pi-lapdock-hdmi-cable-work-around Raspberry Pi Lapdock HDMI cable work-around].  The 'blog describes a side-benefit of this feature: you can add a small power switch to Lapdock so you can leave RasPi attached all the time without draining the battery.
+
Lapdock uses the HDMI plug to tell if a phone is plugged in by seeing if the HDMI DDC/CEC ground pin is pulled low.  If it's not, Lapdock is powered off.  As soon as you plug in a phone or RasPi, all the grounds short together and Lapdock powers itself on.  However, it only does this if the HDMI cable actually connects the DDC/CEC ground line.  Many cheap HDMI cables do not include the individual ground lines, and rely on a foil shield connected to the outer shells on both ends.  Such a cable will not work with an unmodified Lapdock.  There is a detailed 'blog entry on the subject at element14: [http://www.element14.com/community/community/raspberry-pi/blog/2012/09/27/raspberry-pi-lapdock-hdmi-cable-work-around Raspberry Pi Lapdock HDMI cable work-around].  The 'blog describes a side-benefit of this feature: you can add a small power switch to Lapdock so you can leave RasPi attached all the time without draining the battery.
  
 
The Lapdock Micro USB plug is the upstream port of Lapdock's internal USB hub, and connects to one of RasPi's full-size USB ports.  Lapdock is not USB compliant since it provides upstream power on its Vbus pin.  Lapdock uses this to charge the Atrix phone.  You can use this feature to power RasPi if you have a newer RasPi.  The original RasPi rev 1 has 140 mA polyfuses F1 and F2 to protect the USB ports, which are too small for powering RasPi using upstream power.  Newer RasPis replace F1 and F2 with zero Ohm jumpers or eliminate them entirely, which allows Lapdock to provide power.  If you don't mind modifying your original RasPi, you can add shorting jumpers over F1 and F2 or replace them with higher-current fuses.
 
The Lapdock Micro USB plug is the upstream port of Lapdock's internal USB hub, and connects to one of RasPi's full-size USB ports.  Lapdock is not USB compliant since it provides upstream power on its Vbus pin.  Lapdock uses this to charge the Atrix phone.  You can use this feature to power RasPi if you have a newer RasPi.  The original RasPi rev 1 has 140 mA polyfuses F1 and F2 to protect the USB ports, which are too small for powering RasPi using upstream power.  Newer RasPis replace F1 and F2 with zero Ohm jumpers or eliminate them entirely, which allows Lapdock to provide power.  If you don't mind modifying your original RasPi, you can add shorting jumpers over F1 and F2 or replace them with higher-current fuses.
  
What gets powered on depends on whether Lapdock is open or closed.  If it's open, the screen and all Lapdock USB ports are powered.  If you close Lapdock, the screen and full-size USB ports are powered down, but the Micro USB still provides upstream power.  This is for charging an Atrix phone.  When you open or close Lapdock, the Micro USB power switches off for about a second so if your RasPi is connected it will reboot and you may have a corrupted file system.  There's discussion about this at the RasPi forum link, and someone has used a supercapacitor to work around the problem: [http://www.element14.com/community/groups/raspberry-pi/blog/2012/09/11/raspberry-pi-lapdock-tricks Raspberry Pi lapdock tricks].
+
What gets powered on depends on whether Lapdock is open or closed.  If it's open, the screen and all Lapdock USB ports are powered.  If you close Lapdock, the screen and full-size USB ports are powered down, but the Micro USB still provides upstream power.  This is for charging an Atrix phone.  When you open or close Lapdock, the Micro USB power switches off for about a second so if your RasPi is connected it will reboot and you may have a corrupted file system.  There's discussion about this at the RasPi forum link, and someone has used a supercapacitor to work around the problem: [http://www.element14.com/community/community/raspberry-pi/blog/2012/09/11/raspberry-pi-lapdock-tricks Raspberry Pi lapdock tricks].
  
 
==DVI==
 
==DVI==
Line 47: Line 49:
 
You can change between PAL and NTSC output by editing config.txt in the boot SD card.
 
You can change between PAL and NTSC output by editing config.txt in the boot SD card.
 
Uncommenting: sdtv_mode=2 sets output to PAL (see [[RPi_config.txt]]).
 
Uncommenting: sdtv_mode=2 sets output to PAL (see [[RPi_config.txt]]).
 +
When you do not connect a HDMI monitor, the GPU in the PI will simply rescale (http://en.wikipedia.org/wiki/Image_scaling) anything that would have appeared on the HDMI screen to a resolution suitable for the TV standard chosen, (PAL or NTSC) and outputs it as a composite video signal.
 +
==SCART / EURO ==
 +
Many older TVs in Europe only have SCART / euro connectors which can be used with composite via a [http://www.amazon.co.uk/Metre-Phono-3-5mm-Stereo-SCART/dp/B008GSPY4A/ simple adaptor]
 +
[[File:ScartRCA.jpg|thumbnail]]
  
 
==RGB analog/VGA==
 
==RGB analog/VGA==
Line 73: Line 79:
 
[http://boardzoo.com/product_info12.php http://boardzoo.com/product_info12.php]  
 
[http://boardzoo.com/product_info12.php http://boardzoo.com/product_info12.php]  
  
Some more converters that '''should''' work:
+
Some more converters that '''might''' work:
 +
* [http://www.aliexpress.com/item/Free-Shipping-HDMI-to-VGA-Adapter-Converter-Male-To-Female-up-to-HD1080p/1165556903.html $6.79 "Free Shipping HDMI to VGA Adapter Converter"] HDMI-powered, no sound
 +
* [http://www.aliexpress.com/item/Free-shipping-1PCS-lot-active-HDMI-to-VGA-audio-converter-with-chipset-up-to-1080p-supported/1056135084.html $9.49 "Free shipping 1PCS/lot active HDMI to VGA audio converter with chipset up to 1080p"] HDMI-powered, with audio
 
* [http://www.ebay.co.uk/itm/1080P-PC-HDMI-to-VGA-3-5mm-Audio-HD-Video-Converter-HDTV-SKY-DVD-PS3-Apple-TV-/320929883993 £22.99 HDMI to VGA + stereo audio converter]
 
* [http://www.ebay.co.uk/itm/1080P-PC-HDMI-to-VGA-3-5mm-Audio-HD-Video-Converter-HDTV-SKY-DVD-PS3-Apple-TV-/320929883993 £22.99 HDMI to VGA + stereo audio converter]
 
* [http://www.ebay.de/itm/New-HDMI-Male-to-VGA-RGB-Female-HDMI-to-VGA-Video-Converter-adapter-1080P-for-PC-/140625458879?pt=LH_DefaultDomain_0&hash=item20bdee36bf $24.00 "Video Converter adapter" from china]
 
* [http://www.ebay.de/itm/New-HDMI-Male-to-VGA-RGB-Female-HDMI-to-VGA-Video-Converter-adapter-1080P-for-PC-/140625458879?pt=LH_DefaultDomain_0&hash=item20bdee36bf $24.00 "Video Converter adapter" from china]
 
* [http://www.google.com/products/catalog?q=hdmi+to+vga+converter&hl=en&show=dd&cid=4579096882877853234&ei=V8cGT5XtHoim-gbO5YSYAQ&ved=0CCUQ8wIwBDgK#scoring=p $24.00 ASUS - Video adapter] requires additional miniHDMI to standard HDMI adapter
 
* [http://www.google.com/products/catalog?q=hdmi+to+vga+converter&hl=en&show=dd&cid=4579096882877853234&ei=V8cGT5XtHoim-gbO5YSYAQ&ved=0CCUQ8wIwBDgK#scoring=p $24.00 ASUS - Video adapter] requires additional miniHDMI to standard HDMI adapter
* [http://www.dealextreme.com/p/hdmi-to-vga-video-converter-71816 $32.50 HDMI to VGA Video Converter] - Confirmed, works 100% inc HDMI audio.
+
* [http://www.dealextreme.com/p/hdmi-to-vga-video-converter-71816 $32.50 HDMI to VGA Video Converter] - '''Confirmed, works 100% inc HDMI audio.'''
 
* [http://www.amazon.com/SPDIF-Component-Ypbpr-Converter-v1-3b/dp/B002SFT3ZI/ref=cm_cr_pr_product_top $39.99 HDCP HDMI to VGA + SPDIF RGB Component Ypbpr Converter]
 
* [http://www.amazon.com/SPDIF-Component-Ypbpr-Converter-v1-3b/dp/B002SFT3ZI/ref=cm_cr_pr_product_top $39.99 HDCP HDMI to VGA + SPDIF RGB Component Ypbpr Converter]
 
* [http://www.google.com/products/catalog?q=HP+HDMI+to+VGA&oe=utf-8&rls=org.mozilla:en-GB:official&client=firefox-a&um=1&ie=UTF-8&tbm=shop&cid=4243749406268537354&sa=X&ei=mH0JT5jWHIuO4gS0h6ndCw&ved=0CDkQ8wIwAA $48.00 HP HDMI to VGA Display Adapter]
 
* [http://www.google.com/products/catalog?q=HP+HDMI+to+VGA&oe=utf-8&rls=org.mozilla:en-GB:official&client=firefox-a&um=1&ie=UTF-8&tbm=shop&cid=4243749406268537354&sa=X&ei=mH0JT5jWHIuO4gS0h6ndCw&ved=0CDkQ8wIwAA $48.00 HP HDMI to VGA Display Adapter]
Line 90: Line 98:
 
==RGB digital==
 
==RGB digital==
  
A HDMI/DIV to parallel 3.3v interface PCB, also meant for the Beagleboard:
+
A HDMI/DVI to parallel 3.3v interface PCB, also meant for the Beagleboard:
  
[http://www.harbaum.org/till/dvi2par/index.shtml http://www.harbaum.org/till/dvi2par/index.shtml]
+
* [http://www.harbaum.org/till/dvi2par/index.shtml http://www.harbaum.org/till/dvi2par/index.shtml]
 +
* [https://github.com/watterott/HDMI-Display https://github.com/watterott/HDMI-Display]
  
 
Potential interfacing chips:
 
Potential interfacing chips:
Line 101: Line 110:
 
* [http://www.renesas.com/products/soc/assp/mobile/ibic/pd60800/index.jsp Renesas µPD60800 Intelligent Buffer IC]
 
* [http://www.renesas.com/products/soc/assp/mobile/ibic/pd60800/index.jsp Renesas µPD60800 Intelligent Buffer IC]
 
* [http://www.renesas.com/products/soc/assp/mobile/ibic/pd60801/index.jsp Renesas µPD60801 Intelligent Buffer IC]
 
* [http://www.renesas.com/products/soc/assp/mobile/ibic/pd60801/index.jsp Renesas µPD60801 Intelligent Buffer IC]
 +
* [http://www.ti.com/product/tfp401a TI PanelBus TFP401A]
  
 
==Interfacing to non-monitor LCD panels==
 
==Interfacing to non-monitor LCD panels==
Line 110: Line 120:
 
DSI connector is on board on the RPI. Some graphical LCD/OLED displays might be attached to it.
 
DSI connector is on board on the RPI. Some graphical LCD/OLED displays might be attached to it.
  
An additional [http://www.raspberrypi.org/forum/features-and-requests/s2-and-s5-fit-or-no-fit#p39441 binary blob might be required for the DSI port] to function correctly (or function at all). When or if such a blob will be made available is unknown.
+
An additional [http://www.raspberrypi.org/forum/features-and-requests/s2-and-s5-fit-or-no-fit#p39441 binary blob might be required for the DSI port] to function correctly (or function at all). When or if such a blob will be made available is unknown. '''Update 04 Jun 2013''': "DSI will get done though - there are 1.5M boards out there with the connector on - that would, as you say, have been a waste of money ($120k??) if it never gets used." [http://www.raspberrypi.org/phpBB3/viewtopic.php?f=64&t=32311#p305332]
  
 
Nokia N900 has 800x480 DCS LCD [http://e-ditionsbyfry.com/Olive/ODE/ECN/default.aspx?href=ECN%2F2009%2F08%2F02&pageno=5&entity=Pc00502&view=entity (afaik its like DSI, but has build in framebuffer)].
 
Nokia N900 has 800x480 DCS LCD [http://e-ditionsbyfry.com/Olive/ODE/ECN/default.aspx?href=ECN%2F2009%2F08%2F02&pageno=5&entity=Pc00502&view=entity (afaik its like DSI, but has build in framebuffer)].
Line 118: Line 128:
 
Replacement screen is about ~$35, another ~$25 for Multitouch Synaptics T1021A touchscreen (I2C + interrupt IO, no docs/drivers).
 
Replacement screen is about ~$35, another ~$25 for Multitouch Synaptics T1021A touchscreen (I2C + interrupt IO, no docs/drivers).
  
The schematics for apples iPhone [http://www.mikrocontroller.net/attachment/127135/iPhone_3Gs_schematics.pdf 3gs] and [http://jumbofiles.com/57ycs8zez45j/iPhone_4G_schematic.pdf.html 4g] suggest they speak DSI, thus they can probably be connected directly. The older iPhones use a "Mobile Pixel Link" connection from National Semiconductor. The 3GS panel (480×320) goes as low as [http://www.aliexpress.com/product-fm/377987722-Replacement-LCD-Glass-Screen-Display-for-iPhone-3GS-wholesalers.html US $14.88], while the 4G one (960×640, possibly the [http://www.displayalliance.com/research/lh350ws1-sd01.html LG LH350WS1-SD01], with [http://www.panelook.com/modeldetail_parameter.php?id=12086 specifications]) can be had for [http://www.aliexpress.com/product-fm/453840894-Replacement-LCD-Glass-Screen-Display-for-iPhone-4G-wholesalers.html US $17.99] or as low as [http://www.ebay.com/itm/Repair-LCD-Glass-Screen-Display-Iphone-4G-4th-4-GEN-/110821471601 US $14.28]. The connectors used might be an issue, but [http://www.airaccent.com/lcd-screen-fpc-connector-replacement-for-iphone-4g-p-39877.html this connector] might fit. Additional circuitry might be necessary to provide the display with required 1.8V and 5.7V for operation, and an even higher voltage for the backlight.
+
The schematics for apples iPhone [http://www.mikrocontroller.net/attachment/127135/iPhone_3Gs_schematics.pdf 3gs] and [http://elinux.org/images/9/9f/IPhone_4G_schematic.pdf 4g] suggest they speak DSI, thus they can probably be connected directly. The older iPhones use a "Mobile Pixel Link" connection from National Semiconductor. The 3GS panel (480×320) goes as low as [http://www.aliexpress.com/product-fm/377987722-Replacement-LCD-Glass-Screen-Display-for-iPhone-3GS-wholesalers.html US $14.88], while the 4G one (960×640, possibly the [http://www.displayalliance.com/research/lh350ws1-sd01.html LG LH350WS1-SD01], with [http://www.panelook.com/modeldetail_parameter.php?id=12086 specifications]) can be had for [http://www.aliexpress.com/product-fm/453840894-Replacement-LCD-Glass-Screen-Display-for-iPhone-4G-wholesalers.html US $17.99] or as low as [http://www.ebay.com/itm/Repair-LCD-Glass-Screen-Display-Iphone-4G-4th-4-GEN-/110821471601 US $14.28]. The connectors used might be an issue, but [http://www.airaccent.com/lcd-screen-fpc-connector-replacement-for-iphone-4g-p-39877.html this connector] might fit. Additional circuitry might be necessary to provide the display with required 1.8V and 5.7V for operation, and an even higher voltage for the backlight.
  
 
Other panels with MIPI DSI: [http://www.panelook.com/modelsearch.php?pagesize=50&order=panel_id&panel_type=&product_composition=&brand_family=&panel_size_inch=&resolution_pixels=&brightness=-1&gray_depth=&viewing_angle_function=&lamp_type=&signal_type_category=MIPI&rohs_compliance=&button=Search www.panelook.com]
 
Other panels with MIPI DSI: [http://www.panelook.com/modelsearch.php?pagesize=50&order=panel_id&panel_type=&product_composition=&brand_family=&panel_size_inch=&resolution_pixels=&brightness=-1&gray_depth=&viewing_angle_function=&lamp_type=&signal_type_category=MIPI&rohs_compliance=&button=Search www.panelook.com]
Line 134: Line 144:
 
===Character cell LCD modules===
 
===Character cell LCD modules===
  
These have controllers and interfaces for feeding in text (and symbols). Common screen sizes include 16x2 to 40x4. Often seen in keypads, industrial machines, cash registers, laser printers etc.
+
These have controllers and interfaces for feeding in text (and symbols). Common screen sizes include 16x2 to 40x4. They're often seen in keypads, industrial machines, cash registers, laser printers etc.
  
 
The old-style 2-line, 16-character LCD displays can be commonly controlled over UART, thus providing a cheap way to display values for sensors etc.<!-- This is almost certainly wrong. These displays come in I2C and parallel bus models. Check and post refs. -->
 
The old-style 2-line, 16-character LCD displays can be commonly controlled over UART, thus providing a cheap way to display values for sensors etc.<!-- This is almost certainly wrong. These displays come in I2C and parallel bus models. Check and post refs. -->
 +
 +
===TFT LCD Modules===
 +
 +
LCD Modules with SPI or a parallel interface can be connected to the Raspberry Pi.
 +
 +
* SPI displays are available in sizes from 1.8" to 2.8".
 +
* Parallel interface displays can be found in many sizes, usually up to 7" and more. Parallel interfaces are usually 8 or 16-bits wide (sometimes 18 or 24-bit wide), plus some control-lines. The Raspberry Pi P1-connector does not contain enough GPIOs for 16-bit wide parallel displays, but this could be solved by borrowing some GPIOs from the CSI-connector or from P5 (on newer Raspberry Pis). Alternatively, some additional electronics (e.g. shift-registers or a CPLD) can be used, which could also improve the framerate or lower the CPU-load.
 +
 +
'''Linux Framebuffer driver projects'''
 +
* https://github.com/notro/fbtft/wiki
 +
* http://www.whence.com/rpi/
 +
 +
'''Latest packages, guides and kernel sources for most common TFT displays'''
 +
* https://whitedome.com.au/re4son/sticky-fingers-kali-pi/
 +
* https://github.com/Re4son/re4son-raspberrypi-linux/tree/rpi-4.4.y-re4son
 +
* https://github.com/Re4son/Re4son-Pi-TFT-Setup
 +
 +
'''Display Adapter kits'''
 +
* [http://www.inti-innovations.co.uk/products/inti-media/inti-media-raspberrypi.html 1080Pi a FULL HD 10 inch touch screen 24bit LCD add-on] with additional GPIO outputs and user configurable push buttons, compatible with A, B and B+.
 +
* [https://yadom.eu/development-platforms/raspberry-pi/ecrans/boitier-din-avec-afficheur-oled-et-clavier.html 1" OLED display + 4 keys keypad integrated into a DIN Rail 4M enclosure (Design for Raspberry Pi 3)]
 +
* [http://www.raspberrypi.org/phpBB3/viewtopic.php?f=64&t=43702 Raspberry Pi LCD Adapter Kit for ITDB02 displays (2.4", 2.8")]
 +
* [http://www.raspberrypi.org/phpBB3/viewtopic.php?f=59&t=40674 1.8" TFT LCD + Switch Shield]
 +
* [http://www.advaboard.de AdvaBoard RPi1]: Raspberry Pi multifunction extension board, incl. an interface and software for 3.2"/5"/7" 16-bit parallel TFT-displays incl. touchscreen with up to 50 frames/s (3.2", 320x240)
 +
* [http://www.raspberrypi.org/phpBB3/viewtopic.php?f=93&t=53144 Texy's 2.8" TFT + Touch Shield Board]: HY28A-LCDB display with 320 x 240 resolution @ 10 ~ 20fps, 65536 colors, assembled and tested £24 plus postage, mounts on GPIO pins nicely matching Pi board size, or via ribbon cable
 +
* Watterott [http://www.watterott.com/en/RPi-Display-B-Plus RPi-Display for Model B+], [http://www.watterott.com/en/RPi-Display RPi-Display for Model A and B] 2.8" TFT-Display (320x240) with Touchpanel.
 +
* [http://www.adafruit.com/products/1601 Adafruit PiTFT] 2.8" TFT-Display (320x240) with Touchpanel.
 +
* [https://www.raspberrypi.org/products/raspberry-pi-touch-display/ Official Raspberry Pi 7" Touch Display (DSI)] and [https://www.modmypi.com/raspberry-pi/cases/7-touchscreen-cases/raspberry-pi-7-touchscreen-case--plus-stand suitable Case & Stand]
 +
* [https://www.seeedstudio.com/15-6-Inch-1920-1080-Full-HD-IPS-Touch-Screen-Portable-Monitor-p-4027.html 15.6 Inch 1920*1080 Full HD IPS Touch Screen Portable Monitor]
 +
* [https://www.seeedstudio.com/10-1-inch-1200-1980-HDMI-IPS-LCD-Display-p-2863.html $79.95 10.1 inch 1200x1920 HDMI IPS LCD Display]
  
 
==References==
 
==References==

Latest revision as of 00:01, 14 May 2019


RaspPi.png Back to the Hub


Hardware & Peripherals:

Hardware - detailed information about the Raspberry Pi boards.

Hardware History - guide to the Raspberry Pi models.

Low-level Peripherals - using the GPIO and other connectors.

Expansion Boards - GPIO plug-in boards providing additional functionality.

Screens - attaching a screen to the Raspberry Pi.

Cases - lots of nice cases to protect the Raspberry Pi.

Other Peripherals - all sorts of peripherals used with the Raspberry Pi.


Supported Standards

The following display outputs are supported on the board:

  • Composite video (NTSC and PAL) via an RCA plug (the yellow socket on your TV) or SCART socket.
  • HDMI 1.3a standard output.
  • Display Serial Interface (DSI) - via unpopulated 15-way flat flex connector.

These interfaces allow the use of a broad range of displays, including:

  • Televisions (HDMI or composite).
  • Computer monitors (HDMI/DVI-D cable) (VGA monitors would require either a composite or HDMI to VGA or component scan converter box).
  • DLP/Laser Pico Projectors (HDMI/DVI-D cable).
  • RAW LCD panels (DSI + interfacing hardware)
  • Composite and HDMI outputs can not be used at the same time (one or the other.)


For more info about DVI, VGA, and SCART screens see The RPi Verified Peripherals Page

HDMI

You can connect the RasPi HDMI connector directly to an HDMI monitor using a standard HDMI cable.

Motorola Atrix Lapdock

A number of people have used a Motorola Atrix Lapdock to add a screen and keyboard with trackpad to RasPi, in essence building a RasPi-based laptop computer. Lapdock is a very clever idea: you plug your Atrix smart phone into Lapdock and it gives you an 11.6" 1366 x 768 HDMI monitor with speakers, a keyboard with trackpad, two USB ports, and a large enough battery for roughly 5 hours of use. The smart phone acts as a motherboard with "good enough" performance. The advantage over a separate laptop or desktop computer is that you have one computing device so you don't need to transfer files between your phone and your desk/laptop.

Unfortunately for Motorola, Lapdock was not successful (probably because of its US$500 list price) and Motorola discontinued it and sold remaining stock at deep discounts, with many units selling for US$50-100. This makes it a very attractive way to add a modest size HDMI screen to RasPi, with a keyboard/trackpad and rechargeable battery power thrown in for free.

Lapdock has two connectors that plug into an Atrix phone: a Micro HDMI D plug for carrying video and sound, and a Micro USB plug for charging the phone and connecting to the Lapdock's internal USB hub, which talks to the Lapdock keyboard, trackpad, and two USB ports. With suitable cables and adapters, these two plugs can be connected to RasPi's full-size HDMI connector and one of RasPi's full-size USB A ports.

Motorola also made a Lapdock for the Motorola Droid Bionic smartphone. According to Jim Manley, the Droid Bionic Lapdock is identical to the Atrix Lapdock, except that the two Micro plugs are each rotated 180 degrees.

The RasPi forum has a long thread on Lapdock with many useful suggestions, photos, and links: I made a Raspberry PI Laptop. There's also a good 'blog entry at element14 with photos and suggestions of where to get cables and adapters: Raspberry Pi Laptop. TechRepublic has a tear-down article with photos of Lapdock internal components here: Cracking Open the Motorola Droid Bionic Lapdock. Paul Mano has a wealth of photos of Lapdock innards at Motorola Atrix Lapdock mod projects.

The hardest part about connecting Lapdock is getting the cables and adapters. Most HDMI and USB cables are designed to plug into jacks, whereas the Lapdock has plugs so the cables/adapters must have Micro HDMI and Micro USB female connections. These are unusual cables and adapters, so check the links.

Lapdock uses the HDMI plug to tell if a phone is plugged in by seeing if the HDMI DDC/CEC ground pin is pulled low. If it's not, Lapdock is powered off. As soon as you plug in a phone or RasPi, all the grounds short together and Lapdock powers itself on. However, it only does this if the HDMI cable actually connects the DDC/CEC ground line. Many cheap HDMI cables do not include the individual ground lines, and rely on a foil shield connected to the outer shells on both ends. Such a cable will not work with an unmodified Lapdock. There is a detailed 'blog entry on the subject at element14: Raspberry Pi Lapdock HDMI cable work-around. The 'blog describes a side-benefit of this feature: you can add a small power switch to Lapdock so you can leave RasPi attached all the time without draining the battery.

The Lapdock Micro USB plug is the upstream port of Lapdock's internal USB hub, and connects to one of RasPi's full-size USB ports. Lapdock is not USB compliant since it provides upstream power on its Vbus pin. Lapdock uses this to charge the Atrix phone. You can use this feature to power RasPi if you have a newer RasPi. The original RasPi rev 1 has 140 mA polyfuses F1 and F2 to protect the USB ports, which are too small for powering RasPi using upstream power. Newer RasPis replace F1 and F2 with zero Ohm jumpers or eliminate them entirely, which allows Lapdock to provide power. If you don't mind modifying your original RasPi, you can add shorting jumpers over F1 and F2 or replace them with higher-current fuses.

What gets powered on depends on whether Lapdock is open or closed. If it's open, the screen and all Lapdock USB ports are powered. If you close Lapdock, the screen and full-size USB ports are powered down, but the Micro USB still provides upstream power. This is for charging an Atrix phone. When you open or close Lapdock, the Micro USB power switches off for about a second so if your RasPi is connected it will reboot and you may have a corrupted file system. There's discussion about this at the RasPi forum link, and someone has used a supercapacitor to work around the problem: Raspberry Pi lapdock tricks.

DVI

With an inexpensive passive HDMI to DVI-D cable or converter.

Composite video

Composite video (NTSC and PAL) via an RCA plug, directly from the board. You can change between PAL and NTSC output by editing config.txt in the boot SD card. Uncommenting: sdtv_mode=2 sets output to PAL (see RPi_config.txt). When you do not connect a HDMI monitor, the GPU in the PI will simply rescale (http://en.wikipedia.org/wiki/Image_scaling) anything that would have appeared on the HDMI screen to a resolution suitable for the TV standard chosen, (PAL or NTSC) and outputs it as a composite video signal.

SCART / EURO

Many older TVs in Europe only have SCART / euro connectors which can be used with composite via a simple adaptor

ScartRCA.jpg

RGB analog/VGA

The Broadcom BCM2835 only provides HDMI output and composite output. RGB and other signals needed by RGB, S-VIDEO or VGA connectors are however not provided, and the R-PI also isn't designed to power an unpowered converter box.

A couple of options for VGA or component RGB outputs, bridging from either HDMI or, (much less obvious) the MIPI DSI interface:

Note that any conversion hardware that converts HDMI/DVI-D signals to VGA (or DVI-A) signals may come with either an external PSU, or expects power can be drawn from the HDMI port. In the latter case the device may initially appear to work, but there will be a problem, as the HDMI specs only provide in a maximum of 50mA (@ 5 Volt) from the HDMI port, but all of these adapters try to draw much more, up-to 500mA, in case of the R-PI there is a limit of 200mA that can be drawn safely, as 200mA is the limit for the BAT54 diode (D1) on the board. Any HDMI to VGA adapter without external PSU might work for a time, but then burn out D1, therefore Do not use HDMI converters powered by the HDMI port! The solution is to either only use externally powered converters, or to replace D1 with a sturdier version, such as the PMEG2010AET, and to replace the power input fuse F3 with a higher rated one, as the current one is only 700mA, and the adapter may use 400mA itself. Also notice that the R-PI's power supply also must be able to deliver the extra current.

Firstly, the following *might* work. Beagleboard people have reported various levels of success (mainly "issues"):

http://www.hdfury.com/

Something similar:

http://www.fit-pc.com/web/fit-pc2/accessories/fit-vga/

...it may need to be modified as described here:

http://blog.galemin.com/2011/03/dvi-d-to-vga-converter-for-beagleboard-xm/

Alternatively, it may be possible to design an expansion board that plugs into the LCD headers on the R.Pi. Here is something similar for Beagleboard:

http://boardzoo.com/product_info12.php

Some more converters that might work:

More HDMI -> VGA converters are listed at the RasPi Verified Peripherals page, along with some caveats.

Potential interfacing chips:

The SOC (system on a chip) does not support any kind of analog component video, including VGA, since the SOC is designed for mobile phone use where this would not be a requirement. Additional components would be needed to generate RGB signals. Additional components would push the price beyond the $25 target and therefore won't happen.

RGB digital

A HDMI/DVI to parallel 3.3v interface PCB, also meant for the Beagleboard:

Potential interfacing chips:

They emit Hsync, Vsync and RGB w/ about 8 bits each (sometimes, it's called "MIPI DPI")

Interfacing to non-monitor LCD panels

Embedded systems often have displays that aren't connected like televisions and computer monitors. RPI may be able to interface to some of these.

DSI port

DSI connector is on board on the RPI. Some graphical LCD/OLED displays might be attached to it.

An additional binary blob might be required for the DSI port to function correctly (or function at all). When or if such a blob will be made available is unknown. Update 04 Jun 2013: "DSI will get done though - there are 1.5M boards out there with the connector on - that would, as you say, have been a waste of money ($120k??) if it never gets used." [1]

Nokia N900 has 800x480 DCS LCD (afaik its like DSI, but has build in framebuffer). Replacement screen is about ~$40 (~$50 with 4pin resistive touchscreen).

Nokia N8 has AMOLED 360x640 pixels DSI LCD. Replacement screen is about ~$35, another ~$25 for Multitouch Synaptics T1021A touchscreen (I2C + interrupt IO, no docs/drivers).

The schematics for apples iPhone 3gs and 4g suggest they speak DSI, thus they can probably be connected directly. The older iPhones use a "Mobile Pixel Link" connection from National Semiconductor. The 3GS panel (480×320) goes as low as US $14.88, while the 4G one (960×640, possibly the LG LH350WS1-SD01, with specifications) can be had for US $17.99 or as low as US $14.28. The connectors used might be an issue, but this connector might fit. Additional circuitry might be necessary to provide the display with required 1.8V and 5.7V for operation, and an even higher voltage for the backlight.

Other panels with MIPI DSI: www.panelook.com

The Raspberry Pi provides one clock lane and two data lanes on the S2 connector, as can be read from the schematics. It is currently unknown whether this is enough to drive the iPhone 4G screen, as that screen seems be driven with three data lanes in its original application.

Potential LVDS interfacing chips:

TC358764/5 Display Bridge (MIPI® DSI to LVDS)

DVI receiver TFP401A, TFP403, or TFP501 + LVDS transmitter SN75LVDS83B or SN65LVDS93A (Mentioned earlier fit-VGA is build around TFP401A, probably many more "active" DVI2VGA cables are build the same way)

I2C/SPI ADC can be used to interface 4 pin resistive Touch Screens, For example STMPE812A. Texas Instruments has a solution for 4 or 8 wire touchscreens using their rather cheap MSP4309.

Character cell LCD modules

These have controllers and interfaces for feeding in text (and symbols). Common screen sizes include 16x2 to 40x4. They're often seen in keypads, industrial machines, cash registers, laser printers etc.

The old-style 2-line, 16-character LCD displays can be commonly controlled over UART, thus providing a cheap way to display values for sensors etc.

TFT LCD Modules

LCD Modules with SPI or a parallel interface can be connected to the Raspberry Pi.

  • SPI displays are available in sizes from 1.8" to 2.8".
  • Parallel interface displays can be found in many sizes, usually up to 7" and more. Parallel interfaces are usually 8 or 16-bits wide (sometimes 18 or 24-bit wide), plus some control-lines. The Raspberry Pi P1-connector does not contain enough GPIOs for 16-bit wide parallel displays, but this could be solved by borrowing some GPIOs from the CSI-connector or from P5 (on newer Raspberry Pis). Alternatively, some additional electronics (e.g. shift-registers or a CPLD) can be used, which could also improve the framerate or lower the CPU-load.

Linux Framebuffer driver projects

Latest packages, guides and kernel sources for most common TFT displays

Display Adapter kits

References