{"id":982,"date":"2019-11-02T20:43:21","date_gmt":"2019-11-02T19:43:21","guid":{"rendered":"https:\/\/www.torbox.ch\/?page_id=982"},"modified":"2020-08-24T20:31:32","modified_gmt":"2020-08-24T19:31:32","slug":"torbox-tft-based-on-the-pitft-3-5%e2%80%b3-resistive-touch-320x480-from-adafruit","status":"publish","type":"page","link":"https:\/\/www.torbox.ch\/?page_id=982","title":{"rendered":"TorBox TFT"},"content":{"rendered":"<p>If you don\u2019t want to use TorBox for security reasons only, but also would have a cute eye-catcher, then the combination with a TFT display could be an excellent option for you. In combination with the <a href=\"https:\/\/www.torbox.ch\/?page_id=775\" rel=\"noopener noreferrer\" target=\"_blank\">main menu entry 1<\/a> &#8220;Tor statistics&#8221;, such display is also a convenient way to see at a glance whether TorBox is running correctly or not.<\/p>\n<p>Because of its hardware and software quality, we recommend using a <a href=\"https:\/\/www.adafruit.com\/product\/2441\" rel=\"noopener noreferrer\" target=\"_blank\">PiTFT 3.5\u2033 resistive touch 320\u00d7480 from Adafruit<\/a>. However, you can use almost any display, even if we recommend a minimum size of 3.5\u2033 because all menus and messages are set to work with a 25\u00d780 textual screen. By the way: the touch capability of such a TFT doesn\u2019t work in a terminal.<\/p>\n<p>For <strong>example 1<\/strong>, we use a <a href=\"https:\/\/www.adafruit.com\/product\/2441\" rel=\"noopener noreferrer\" target=\"_blank\">PiTFT 3.5\u2033 resistive touch 320\u00d7480 from Adafruit<\/a> with a <a href=\"https:\/\/shop.pimoroni.com\/products\/pibow-pitft\" rel=\"noopener noreferrer\" target=\"_blank\">Pimoroni Pibow PiTFT+<\/a> case on a Raspberry Pi 3 (<a href=\"https:\/\/www.raspberrypi.org\/products\/raspberry-pi-3-model-b\/\" rel=\"noopener noreferrer\" target=\"_blank\">Model B<\/a> \/ <a href=\"https:\/\/www.raspberrypi.org\/products\/raspberry-pi-3-model-b-plus\/\" rel=\"noopener noreferrer\" target=\"_blank\">Model B+<\/a>). <strong>Unfortunately, <a href=\"https:\/\/shop.pimoroni.com\/products\/pibow-pitft\" rel=\"noopener noreferrer\" target=\"_blank\">Pimoroni&#8217;s Pibow PiTFT+<\/a> case is not available for the Raspberry Pi 4<\/strong>. However, this case is not absolutely necessary. Therefore, for <strong>example 2<\/strong>, we use a no-name 3.5&#8243; TFT with a <a href=\"https:\/\/shop.pimoroni.com\/products\/pibow-coupe-4\"> Pimoroni Pibow Coup\u00e9 4 case<\/a> on a <a href=\"https:\/\/www.raspberrypi.org\/products\/raspberry-pi-4-model-b\/\" rel=\"noopener noreferrer\" target=\"_blank\">Raspberry Pi 4 Model B<\/a>.<\/p>\n<h1>\n<p style=\"text-align: center;\">\u2022 \u2022 \u2022<\/p>\n<\/h1>\n<p><H5>Example 1: A PiTFT 3.5\u2033 resistive touch 320\u00d7480 from Adafruit with a Pimoroni Pibow PiTFT+ case on a Raspberry Pi 3 Model B+<\/H5><\/p>\n<p><center><a href=\"https:\/\/www.torbox.ch\/wp-content\/uploads\/2019\/11\/tft_adafruit-accessories.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.torbox.ch\/wp-content\/uploads\/2019\/11\/tft_adafruit-accessories-e1572717549106.jpg\" alt=\"\" width=\"760\" height=\"1086\" class=\"aligncenter size-full wp-image-985\" \/><\/a><\/center><\/p>\n<h1>\n<p style=\"text-align: center;\">\u2022 \u2022 \u2022<\/p>\n<\/h1>\n<div id='gallery-1' class='gallery galleryid-982 gallery-columns-3 gallery-size-medium'><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a href='https:\/\/www.torbox.ch\/wp-content\/uploads\/2019\/11\/tft_adafruit-001.jpg'><img loading=\"lazy\" decoding=\"async\" width=\"225\" height=\"300\" src=\"https:\/\/www.torbox.ch\/wp-content\/uploads\/2019\/11\/tft_adafruit-001-225x300.jpg\" class=\"attachment-medium size-medium\" alt=\"\" srcset=\"https:\/\/www.torbox.ch\/wp-content\/uploads\/2019\/11\/tft_adafruit-001-225x300.jpg 225w, https:\/\/www.torbox.ch\/wp-content\/uploads\/2019\/11\/tft_adafruit-001-768x1024.jpg 768w, https:\/\/www.torbox.ch\/wp-content\/uploads\/2019\/11\/tft_adafruit-001-1200x1600.jpg 1200w\" sizes=\"auto, (max-width: 225px) 85vw, 225px\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a href='https:\/\/www.torbox.ch\/wp-content\/uploads\/2019\/11\/tft_adafruit-002.jpg'><img loading=\"lazy\" decoding=\"async\" width=\"225\" height=\"300\" src=\"https:\/\/www.torbox.ch\/wp-content\/uploads\/2019\/11\/tft_adafruit-002-225x300.jpg\" class=\"attachment-medium size-medium\" alt=\"\" srcset=\"https:\/\/www.torbox.ch\/wp-content\/uploads\/2019\/11\/tft_adafruit-002-225x300.jpg 225w, https:\/\/www.torbox.ch\/wp-content\/uploads\/2019\/11\/tft_adafruit-002-768x1024.jpg 768w, https:\/\/www.torbox.ch\/wp-content\/uploads\/2019\/11\/tft_adafruit-002-1200x1600.jpg 1200w\" sizes=\"auto, (max-width: 225px) 85vw, 225px\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/www.torbox.ch\/wp-content\/uploads\/2019\/11\/IMG_5249.jpg'><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"225\" src=\"https:\/\/www.torbox.ch\/wp-content\/uploads\/2019\/11\/IMG_5249-300x225.jpg\" class=\"attachment-medium size-medium\" alt=\"\" srcset=\"https:\/\/www.torbox.ch\/wp-content\/uploads\/2019\/11\/IMG_5249-300x225.jpg 300w, https:\/\/www.torbox.ch\/wp-content\/uploads\/2019\/11\/IMG_5249-768x576.jpg 768w, https:\/\/www.torbox.ch\/wp-content\/uploads\/2019\/11\/IMG_5249-1024x768.jpg 1024w, https:\/\/www.torbox.ch\/wp-content\/uploads\/2019\/11\/IMG_5249-1200x900.jpg 1200w\" sizes=\"auto, (max-width: 300px) 85vw, 300px\" \/><\/a>\n\t\t\t<\/div><\/figure>\n\t\t<\/div>\n\n<p><strong>Remarks<\/strong><\/p>\n<ul>\n<li>After everything has been assembled, and the SDCard with TorBox has booted up, you can only see a bright TFT display at first. The TFT display can be configured correctly via SSH using menu entry 12 in the <a href=\"https:\/\/www.torbox.ch\/?page_id=875\" rel=\"noopener noreferrer\" target=\"_blank\">TorBox&#8217;s configuration sub-menu<\/a>. Once this is done, the TorBox menu should automatically appear on the TFT display after booting.<\/li>\n<li>If you use the PiTFT 3.5\u2033 resistive touch 320\u00d7480 from Adafruit with a Pimoroni Pibow PiTFT+ case, you will need to remove the mounting holes from the side of the PiTFT board (they&#8217;re designed to be broken off cleanly).<\/li>\n<li>The keyboard is convenient but optional. The one in the images above is the <a href=\"https:\/\/www.adafruit.com\/product\/922\" rel=\"noopener noreferrer\" target=\"_blank\">Miniature Wireless USB Keyboard with Touchpad from Adafruit<\/a>.<\/li>\n<\/ul>\n<h1>\n<p style=\"text-align: center;\">\u2022 \u2022 \u2022<\/p>\n<\/h1>\n<p><H5>Example 2: A no-name 3.5&#8243; TFT with a Pimoroni Pibow Coup\u00e9 4 case on a Raspberry Pi 4 Model B<\/H5><\/p>\n<p><center><a href=\"https:\/\/www.torbox.ch\/wp-content\/uploads\/2020\/07\/tft_no_name-001-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.torbox.ch\/wp-content\/uploads\/2020\/07\/tft_no_name-001-scaled-e1596136012386.jpg\" alt=\"\" width=\"760\" height=\"839\" class=\"aligncenter size-full wp-image-1698\" \/><\/a><\/center><\/p>\n<h1>\n<p style=\"text-align: center;\">\u2022 \u2022 \u2022<\/p>\n<\/h1>\n<p><center><a href=\"https:\/\/www.torbox.ch\/wp-content\/uploads\/2020\/07\/IMG_5646-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.torbox.ch\/wp-content\/uploads\/2020\/07\/IMG_5646-scaled-e1596136311279.jpg\" alt=\"\" width=\"760\" height=\"461\" class=\"aligncenter size-full wp-image-1699\" \/><\/a><\/center><\/p>\n<p><strong>Remarks<\/strong><\/p>\n<ul>\n<li>After everything has been assembled, and the SDCard with TorBox has booted up, you can only see a bright TFT display at first. The TFT display can be configured correctly via SSH using menu entry 13 in the <a href=\"https:\/\/www.torbox.ch\/?page_id=875\" rel=\"noopener noreferrer\" target=\"_blank\">TorBox&#8217;s configuration sub-menu<\/a>. Once this is done, the TorBox menu should automatically appear on the TFT display after booting.<\/li>\n<li>The keyboard is convenient but optional. The one in the images above is the <a href=\"https:\/\/www.adafruit.com\/product\/922\" rel=\"noopener noreferrer\" target=\"_blank\">Miniature Wireless USB Keyboard with Touchpad from Adafruit<\/a>.<\/li>\n<\/ul>\n<h1>\n<p style=\"text-align: center;\">\u2022 \u2022 \u2022<\/p>\n<\/h1>\n<p><H5>How can I use the TorBox menu on the TFT display without an additional keyboard?<\/H5><br \/>\nThe easiest way to work with the menu on the TFT display is to use a keyboard directly connected to the Raspberry Pi. However, there is also a possibility to control the TFT display without a keyboard. To achieve this, you have to change the file <em>.profile<\/em> in your home directory:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo nano ~\/.profile\r\n<\/pre>\n<p>Change following line:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n.\/menu --&gt; screen .\/menu\r\n<\/pre>\n<p>Each started console runs now in a screen instance. The following commands can be used (for more check out <em>man screen<\/em>):<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nscreen -ls -&gt; list all screen instances\r\nscreen -x &lt;screen-window-name&gt; -&gt; attache a specific screen instance\r\n<\/pre>\n<p>Within screen, the instance can be sent to the background using the CTRL-A CTR-D key combination.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you don\u2019t want to use TorBox for security reasons only, but also would have a cute eye-catcher, then the combination with a TFT display could be an excellent option for you. In combination with the main menu entry 1 &#8220;Tor statistics&#8221;, such display is also a convenient way to see at a glance whether &hellip; <a href=\"https:\/\/www.torbox.ch\/?page_id=982\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;TorBox TFT&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","footnotes":""},"class_list":["post-982","page","type-page","status-publish","hentry"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"post-thumbnail":false},"uagb_author_info":{"display_name":"radio_24","author_link":"https:\/\/www.torbox.ch\/?author=1"},"uagb_comment_info":0,"uagb_excerpt":"If you don\u2019t want to use TorBox for security reasons only, but also would have a cute eye-catcher, then the combination with a TFT display could be an excellent option for you. In combination with the main menu entry 1 &#8220;Tor statistics&#8221;, such display is also a convenient way to see at a glance whether&hellip;","_links":{"self":[{"href":"https:\/\/www.torbox.ch\/index.php?rest_route=\/wp\/v2\/pages\/982","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.torbox.ch\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.torbox.ch\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.torbox.ch\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.torbox.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=982"}],"version-history":[{"count":13,"href":"https:\/\/www.torbox.ch\/index.php?rest_route=\/wp\/v2\/pages\/982\/revisions"}],"predecessor-version":[{"id":1832,"href":"https:\/\/www.torbox.ch\/index.php?rest_route=\/wp\/v2\/pages\/982\/revisions\/1832"}],"wp:attachment":[{"href":"https:\/\/www.torbox.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=982"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}