{"id":594,"date":"2013-03-10T19:11:14","date_gmt":"2013-03-10T17:11:14","guid":{"rendered":"http:\/\/lallafa.de\/blog\/?p=594"},"modified":"2013-06-01T21:17:51","modified_gmt":"2013-06-01T19:17:51","slug":"watterott-mi0283qt-9a-display-for-the-rasbperry-pi","status":"publish","type":"post","link":"https:\/\/lallafa.de\/blog\/2013\/03\/watterott-mi0283qt-9a-display-for-the-rasbperry-pi\/","title":{"rendered":"Watterott MI0283QT-9A Display for the Rasbperry Pi"},"content":{"rendered":"<p>In my <a title=\"Watterott Display on Raspberry Pi\" href=\"http:\/\/lallafa.de\/blog\/2013\/03\/watterott-display-on-raspberry-pi\/\">last post<\/a> I attached the Watterott Display to my Raspi. The model\u00c2\u00a0MI0283QT-2 I have here is not available anymore and was replaced with the newer\u00c2\u00a0<a href=\"http:\/\/www.watterott.com\/de\/MI0283QT-2-Adapter\">MI0283QT-9A display modul<\/a>. Unfortunately, this new display uses a different graphics chip and thus the driver I wrote won&#8217;t work for these panels&#8230; \ud83d\ude41<\/p>\n<p>With my new display driver skills, I thought about adding this new module, too \ud83d\ude42 A few days ago I received this new model and on the weekend I finally found a little time to investigate the new driver code&#8230; The new chip is an ILI9341 and uses a 9 bit SPI protocol to receive its commands&#8230; Phew, sounds a bit strange but <a href=\"https:\/\/github.com\/notro\/fbtft\">notro&#8217;s fbtft<\/a> driver framework again comes to the rescue: he has already supported the Adafruit22 which also uses 9 bit transfers and he also added an 9-bit SPI patch for the Raspi Linux kernel&#8230; With this starting point I was able to support the new display in a few hours:<\/p>\n<div id=\"attachment_596\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/lallafa.de\/blog\/wp-content\/uploads\/2013\/03\/IMG_0955.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-596\" data-attachment-id=\"596\" data-permalink=\"https:\/\/lallafa.de\/blog\/2013\/03\/watterott-mi0283qt-9a-display-for-the-rasbperry-pi\/img_0955\/\" data-orig-file=\"https:\/\/i0.wp.com\/lallafa.de\/blog\/wp-content\/uploads\/2013\/03\/IMG_0955.jpg?fit=1280%2C853&amp;ssl=1\" data-orig-size=\"1280,853\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;Canon EOS 650D&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1362934774&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;50&quot;,&quot;iso&quot;:&quot;1600&quot;,&quot;shutter_speed&quot;:&quot;0.066666666666667&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"IMG_0955\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;Watterott&amp;#8217;s new MI0283QT-9A display running the boot console&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/i0.wp.com\/lallafa.de\/blog\/wp-content\/uploads\/2013\/03\/IMG_0955.jpg?fit=300%2C199&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/lallafa.de\/blog\/wp-content\/uploads\/2013\/03\/IMG_0955.jpg?fit=584%2C389&amp;ssl=1\" class=\"size-medium wp-image-596\" title=\"IMG_0955\" src=\"https:\/\/i0.wp.com\/lallafa.de\/blog\/wp-content\/uploads\/2013\/03\/IMG_0955-300x199.jpg?resize=300%2C199\" alt=\"\" width=\"300\" height=\"199\" srcset=\"https:\/\/i0.wp.com\/lallafa.de\/blog\/wp-content\/uploads\/2013\/03\/IMG_0955.jpg?resize=300%2C199&amp;ssl=1 300w, https:\/\/i0.wp.com\/lallafa.de\/blog\/wp-content\/uploads\/2013\/03\/IMG_0955.jpg?resize=1024%2C682&amp;ssl=1 1024w, https:\/\/i0.wp.com\/lallafa.de\/blog\/wp-content\/uploads\/2013\/03\/IMG_0955.jpg?resize=150%2C99&amp;ssl=1 150w, https:\/\/i0.wp.com\/lallafa.de\/blog\/wp-content\/uploads\/2013\/03\/IMG_0955.jpg?resize=400%2C266&amp;ssl=1 400w, https:\/\/i0.wp.com\/lallafa.de\/blog\/wp-content\/uploads\/2013\/03\/IMG_0955.jpg?w=1280&amp;ssl=1 1280w, https:\/\/i0.wp.com\/lallafa.de\/blog\/wp-content\/uploads\/2013\/03\/IMG_0955.jpg?w=1168&amp;ssl=1 1168w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-596\" class=\"wp-caption-text\">Watterott&#39;s new MI0283QT-9A display running the boot console<\/p><\/div>\n<p>Since the display supports the Linux framebuffer interface its also possible to run X11 with Xorg&#8217;s framebuffer driver on it:<\/p>\n<div id=\"attachment_597\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/lallafa.de\/blog\/wp-content\/uploads\/2013\/03\/IMG_0956.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-597\" data-attachment-id=\"597\" data-permalink=\"https:\/\/lallafa.de\/blog\/2013\/03\/watterott-mi0283qt-9a-display-for-the-rasbperry-pi\/img_0956\/\" data-orig-file=\"https:\/\/i0.wp.com\/lallafa.de\/blog\/wp-content\/uploads\/2013\/03\/IMG_0956.jpg?fit=1280%2C853&amp;ssl=1\" data-orig-size=\"1280,853\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;Canon EOS 650D&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1362934830&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;50&quot;,&quot;iso&quot;:&quot;1600&quot;,&quot;shutter_speed&quot;:&quot;0.033333333333333&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"IMG_0956\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;The display also runs the X11 desktop&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/i0.wp.com\/lallafa.de\/blog\/wp-content\/uploads\/2013\/03\/IMG_0956.jpg?fit=300%2C199&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/lallafa.de\/blog\/wp-content\/uploads\/2013\/03\/IMG_0956.jpg?fit=584%2C389&amp;ssl=1\" class=\"size-medium wp-image-597\" title=\"IMG_0956\" src=\"https:\/\/i0.wp.com\/lallafa.de\/blog\/wp-content\/uploads\/2013\/03\/IMG_0956-300x199.jpg?resize=300%2C199\" alt=\"\" width=\"300\" height=\"199\" srcset=\"https:\/\/i0.wp.com\/lallafa.de\/blog\/wp-content\/uploads\/2013\/03\/IMG_0956.jpg?resize=300%2C199&amp;ssl=1 300w, https:\/\/i0.wp.com\/lallafa.de\/blog\/wp-content\/uploads\/2013\/03\/IMG_0956.jpg?resize=1024%2C682&amp;ssl=1 1024w, https:\/\/i0.wp.com\/lallafa.de\/blog\/wp-content\/uploads\/2013\/03\/IMG_0956.jpg?resize=150%2C99&amp;ssl=1 150w, https:\/\/i0.wp.com\/lallafa.de\/blog\/wp-content\/uploads\/2013\/03\/IMG_0956.jpg?resize=400%2C266&amp;ssl=1 400w, https:\/\/i0.wp.com\/lallafa.de\/blog\/wp-content\/uploads\/2013\/03\/IMG_0956.jpg?w=1280&amp;ssl=1 1280w, https:\/\/i0.wp.com\/lallafa.de\/blog\/wp-content\/uploads\/2013\/03\/IMG_0956.jpg?w=1168&amp;ssl=1 1168w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-597\" class=\"wp-caption-text\">The display also runs the X11 desktop<\/p><\/div>\n<p>Again I was able to drive the display with a 32 MHz SPI clock (even 48 MHz works) and got a stable and smooth 25 fps for the 320&#215;240 pixels in 16 Bit RGB.<\/p>\n<p>If you want to setup this display on your own Raspi then read on&#8230;<\/p>\n<p><!--more--><\/p>\n<h3>Setup the ILI9341 driver<\/h3>\n<p>I won&#8217;t repeat all the details of the last driver setup as a lot steps are very similar. Just read the <a title=\"Watterott Display on Raspberry Pi\" href=\"http:\/\/lallafa.de\/blog\/2013\/03\/watterott-display-on-raspberry-pi\/\">previous driver setup page<\/a> and then you&#8217;ll find the differences here:<\/p>\n<ul>\n<li>The hardware setup is unchanged! Its a HW compatible replacement module.<\/li>\n<li>The new driver is called <strong>ifi9341fb<\/strong><\/li>\n<li>My GitHub repository holds the new driver source: <a href=\"https:\/\/github.com\/cnvogelg\/fbtft\">cnvogelg\/fbtft<\/a><\/li>\n<li>Clone the source. Reconfig and rebuild your kernel.<\/li>\n<li>Select the new ILI9341 driver either as a module or directly place it in the kernel<\/li>\n<li>Test run:<\/li>\n<\/ul>\n<pre>modprobe ili9341fb\r\nmodprobe spidevices name=ili9341fb\u00c2\u00a0cs=1 fps=25<\/pre>\n<h3>Use pre-compiled Kernel<\/h3>\n<p>If you don&#8217;t want to recompile your own kernel then you could use the binary drop I have uploaded on my site:<\/p>\n<ul>\n<li>Download\u00c2\u00a0<a href=\"https:\/\/www.lallafa.de\/files\/raspi\/raspi-linux-3.6.11-ili9341.tar.gz\">raspi-linux-3.6.11-ili9341.tar.gz<\/a><\/li>\n<li>Unpack the archive<\/li>\n<li>The files in <strong>boot<\/strong> directory need to be copied in your Raspi&#8217;s <strong>\/boot<\/strong> directory<\/li>\n<li>The files in <strong>root<\/strong> directory need to be places in your Raspi&#8217;s <strong>\/ (root)<\/strong> directory<\/li>\n<li>Make sure to backup your existing files in these directories first before overwriting them!<\/li>\n<li>Also ensure to keep the files in the same hierarchy as found in my archive.<\/li>\n<li>I use an 12.11 Ubuntu System (as vmware on my Mac) to mount my Raspi SD card and perform the changes there. This is the safer approach as I don&#8217;t replace the running directly on the Raspi&#8230;<\/li>\n<li>Insert your updated sd card and enjoy booting with your display&#8217;s console&#8230;<\/li>\n<\/ul>\n<h3>X11 on your Display<\/h3>\n<ul>\n<li>Setting up the X11 desktop on your Raspbian system is fairly easy:<\/li>\n<li>Install the frame buffer driver (as root):<\/li>\n<\/ul>\n<pre># apt-get install xserver-xorg-video-fbdev<\/pre>\n<ul>\n<li>Create a config file with following contents in <strong>\/usr\/share\/X11\/xorg.conf.d\/99-fbdev.conf<\/strong>:<\/li>\n<\/ul>\n<pre>Section \"Device\"\u00c2\u00a0\u00c2\u00a0\r\n  Identifier \"myfb\"\r\n  Driver \"fbdev\"\r\n  Option \"fbdev\" \"\/dev\/fb1\"\r\nEndSection<\/pre>\n<ul>\n<li>Now you can startx as a user and the desktop will be on your display:<\/li>\n<\/ul>\n<pre>&gt; startx<\/pre>\n<p>That&#8217;s it for today&#8230; and enjoy your tiny desktop on the Raspi \ud83d\ude42<\/p>\n<p>BTW: notro was so kind to include my last driver in his mainline source tree&#8230; So you could grab the source also from his repository.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In my last post I attached the Watterott Display to my Raspi. The model\u00c2\u00a0MI0283QT-2 I have here is not available anymore and was replaced with the newer\u00c2\u00a0MI0283QT-9A display modul. Unfortunately, this new display uses a different graphics chip and thus &hellip; <a href=\"https:\/\/lallafa.de\/blog\/2013\/03\/watterott-mi0283qt-9a-display-for-the-rasbperry-pi\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[8,16,9],"tags":[],"class_list":["post-594","post","type-post","status-publish","format-standard","hentry","category-hardware","category-raspberry-pi","category-software"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/piBMF-9A","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/lallafa.de\/blog\/wp-json\/wp\/v2\/posts\/594","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lallafa.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lallafa.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lallafa.de\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/lallafa.de\/blog\/wp-json\/wp\/v2\/comments?post=594"}],"version-history":[{"count":10,"href":"https:\/\/lallafa.de\/blog\/wp-json\/wp\/v2\/posts\/594\/revisions"}],"predecessor-version":[{"id":625,"href":"https:\/\/lallafa.de\/blog\/wp-json\/wp\/v2\/posts\/594\/revisions\/625"}],"wp:attachment":[{"href":"https:\/\/lallafa.de\/blog\/wp-json\/wp\/v2\/media?parent=594"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lallafa.de\/blog\/wp-json\/wp\/v2\/categories?post=594"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lallafa.de\/blog\/wp-json\/wp\/v2\/tags?post=594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}