{"id":2313,"date":"2024-07-22T01:04:05","date_gmt":"2024-07-22T01:04:05","guid":{"rendered":"https:\/\/bitcows.com\/?p=2313"},"modified":"2025-12-25T19:20:17","modified_gmt":"2025-12-25T19:20:17","slug":"create-rasberry-pi-tv","status":"publish","type":"post","link":"https:\/\/bitcows.com\/?p=2313","title":{"rendered":"Create Rasberry Pi TV"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large is-resized is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"1024\" src=\"https:\/\/bitcows.com\/wp-content\/uploads\/2024\/07\/tv-768x1024.jpg\" alt=\"\" class=\"wp-image-2334\" style=\"width:282px;height:auto\" srcset=\"https:\/\/bitcows.com\/wp-content\/uploads\/2024\/07\/tv-768x1024.jpg 768w, https:\/\/bitcows.com\/wp-content\/uploads\/2024\/07\/tv-225x300.jpg 225w, https:\/\/bitcows.com\/wp-content\/uploads\/2024\/07\/tv-1152x1536.jpg 1152w, https:\/\/bitcows.com\/wp-content\/uploads\/2024\/07\/tv-1536x2048.jpg 1536w, https:\/\/bitcows.com\/wp-content\/uploads\/2024\/07\/tv-scaled.jpg 1920w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/figure>\n\n\n\n<p><strong>Prerequisite:<\/strong><br>\u2013 A lot of the files you will need are&nbsp;<a href=\"https:\/\/github.com\/djmason9\/Mini-Macintosh\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>&nbsp;on my github<br>\u2013 Raspberry Pi 3<br>\u2013&nbsp;<a href=\"https:\/\/www.amazon.com\/gp\/product\/B08TBF5PHH\/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;psc=1\">3.5 inch IPS 480\u00d7640 Display&nbsp;<\/a><br>\u2013&nbsp;<a href=\"https:\/\/www.amazon.com\/gp\/product\/B0C3S95K6T\/ref=ox_sc_act_title_1?smid=A1A96JMJTF057G&amp;psc=1\" target=\"_blank\" rel=\"noreferrer noopener\">GPIO Ribbon Cable 40Pin Male to Female<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Installing Raspberry Pi:<\/strong><\/p>\n\n\n\n<p>using version: <a href=\"https:\/\/downloads.raspberrypi.com\/raspios_oldstable_armhf\/images\/\">2023-05-03-raspios-buster-armhf.img<\/a><br>You will need to install the raspberry pi OS. <br>SSH into your pi then run<br><code>sudo raspi-config<\/code><br>Step down to&nbsp;<code>Interface options<\/code>&nbsp;then&nbsp;<code>SPI option<\/code>&nbsp;and enable it.<\/p>\n\n\n\n<p><strong>Set up screen 3.5 :<\/strong><\/p>\n\n\n\n<p>SSH into your rasberry pi<\/p>\n\n\n\n<p>Clone the repo to your desktop<\/p>\n\n\n\n<p><code>git clone https:\/\/github.com\/djmason9\/LCD-show.git<\/code><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>cd LCD-show\/<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>chmod +x LCD35-show<\/code><strong><code><br><\/code><\/strong><code>.\/LCD35-show<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-embed\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/www.waveshare.com\/wiki\/2.8inch_DPI_LCD\n<\/div><\/figure>\n\n\n\n<p>Download the&nbsp;<a href=\"https:\/\/files.waveshare.com\/upload\/e\/e4\/3.5DPI-dtbo.zip\" target=\"_blank\" rel=\"noreferrer noopener\">3.5inch DPI LCD DTBO<\/a>&nbsp;file and extract the dtbo files. Copy these files to the overlays directory (\/boot\/overlays\/).<br><code>wget <a href=\"https:\/\/files.waveshare.com\/wiki\/2.8inch%20DPI%20LCD\/28DPI-DTBO.zip\">https:\/\/files.waveshare.com\/upload\/e\/e4\/3.5DPI-dtbo.zip<\/a><\/code><\/p>\n\n\n\n<p>unzip contents and move them to the <strong>\/boot\/overlays<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">dtoverlay=vc4-kms-v3d\ndtoverlay=vc4-kms-DPI-35inch\ndtoverlay=waveshare-35dpi-3b-4b\ndtoverlay=waveshare-35dpi-3b\ndtoverlay=waveshare-35dpi-4b\ndtoverlay=waveshare-35dpi\ndtoverlay=waveshare-touch-35dpi<\/pre>\n\n\n\n<p>Configure <strong>Config<\/strong><\/p>\n\n\n\n<p><code>sudo nano \/boot\/config.txt<\/code><\/p>\n\n\n\n<p>Open the<strong> \/boot\/config.txt<\/strong> file in the root directory of the TF card, add the following code at the end of <strong>config.txt<\/strong>, save<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><br>#####################################<br>#3.5 inch display<br>######################################<br>dtparam=audio=on<br>dtoverlay=audremap,enable_jack,pins_18_19<br><br>gpio=0-9=a2<br>gpio=12-17=a2<br>gpio=20-25=a2<br>dtoverlay=dpi18<br>enable_dpi_lcd=1<br>display_default_lcd=1<br>extra_transpose_buffer=2<br>dpi_group=2<br>dpi_mode=87<br>dpi_output_format=0x6f006<br>hdmi_timings=640 0 20 10 10 480 0 10 5 5 0 0 0 60 0 60000000 1<br>dtoverlay=waveshare-35dpi-3b-4b:rotate=0<br>dtoverlay=waveshare-35dpi-3b:rotate=0<br>dtoverlay=waveshare-35dpi-4b:rotate=0<br>display_rotate=0<br><br>avoid_warnings=1<br>gpu_mem=64<br><br><\/pre>\n\n\n\n<p>convert your video<br><code>https:\/\/github.com\/djmason9\/Gif_To_Code_Array<\/code><br>Details on how<br><code>https:\/\/www.raspberrypi.com\/news\/this-teeny-tiny-tv-plays-the-simpsons-all-day-every-day\/<\/code><\/p>\n\n\n\n<p>Upload your player and video files<\/p>\n\n\n\n<p><code>mkdir videos<\/code><\/p>\n\n\n\n<figure class=\"wp-block-embed\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/github.com\/djmason9\/Pi-Video-Encode\n<\/div><\/figure>\n\n\n\n<p>install <br><code>sudo apt install mpv<\/code><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>To run the video<\/p>\n\n\n\n<p><code>python3 player.py<\/code><\/p>\n\n\n\n<p>Auto start player<\/p>\n\n\n\n<p><code>sudo nano \/etc\/systemd\/system\/player.service<\/code><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>[Unit]<br>Description=Start Python Video Player<br>After=bluetooth.target pulseaudio.service<\/p>\n\n\n\n<p>[Service]<br>ExecStart=\/usr\/bin\/python3 \/home\/pi\/Desktop\/player.py<br>Restart=always<br>User=pi<br>Environment=&#8221;DISPLAY=:0&#8243; &#8220;XAUTHORITY=\/home\/pi\/.Xauthority&#8221; &#8220;PULSE_RUNTIME_PATH=\/run\/user\/1000\/pulse\/&#8221;<\/p>\n\n\n\n<p>[Install]<br>WantedBy=multi-user.target<\/p>\n\n\n\n<p>Set up auto start<\/p>\n\n\n\n<p><code>sudo systemctl daemon-reload<br>sudo systemctl enable player.service<br>sudo systemctl start player.service<\/code><\/p>\n\n\n\n<p><strong>Disable annoying voltage banner<\/strong><br><code>sudo apt remove lxplug-ptbatt<\/code><\/p>\n\n\n\n<p>Edit <strong>config.txt<\/strong>:<\/p>\n\n\n\n<p><code>sudo nano \/boot\/config.txt<br><\/code><\/p>\n\n\n\n<p>Add this <strong>exact line<\/strong>:<\/p>\n\n\n\n<p><code>avoid_warnings=1<br><\/code><\/p>\n\n\n\n<p>Save and reboot:<\/p>\n\n\n\n<p><code>sudo reboot<\/code><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Prerequisite:\u2013 A lot of the files you will need are&nbsp;here&nbsp;on my github\u2013 Raspberry Pi 3\u2013&nbsp;3.5 inch IPS 480\u00d7640 Display&nbsp;\u2013&nbsp;GPIO Ribbon Cable 40Pin Male to Female Installing Raspberry Pi: using version: 2023-05-03-raspios-buster-armhf.imgYou will need to install the raspberry pi OS. SSH into your pi then runsudo raspi-configStep down to&nbsp;Interface options&nbsp;then&nbsp;SPI option&nbsp;and enable it. Set up screen&hellip;<\/p>\n<p class=\"more-link\"><a href=\"https:\/\/bitcows.com\/?p=2313\" class=\"themebutton\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":2334,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,14],"tags":[],"class_list":["post-2313","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-electronics","category-hacking"],"_links":{"self":[{"href":"https:\/\/bitcows.com\/index.php?rest_route=\/wp\/v2\/posts\/2313","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bitcows.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bitcows.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bitcows.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bitcows.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2313"}],"version-history":[{"count":28,"href":"https:\/\/bitcows.com\/index.php?rest_route=\/wp\/v2\/posts\/2313\/revisions"}],"predecessor-version":[{"id":2408,"href":"https:\/\/bitcows.com\/index.php?rest_route=\/wp\/v2\/posts\/2313\/revisions\/2408"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bitcows.com\/index.php?rest_route=\/wp\/v2\/media\/2334"}],"wp:attachment":[{"href":"https:\/\/bitcows.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitcows.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2313"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitcows.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}