{"id":136,"date":"2022-04-20T14:59:12","date_gmt":"2022-04-20T21:59:12","guid":{"rendered":"https:\/\/mynci90.wordpress.com\/?p=136"},"modified":"2022-04-20T14:59:12","modified_gmt":"2022-04-20T21:59:12","slug":"using-raspberry-pi-zero-w-with-a-crt-tv","status":"publish","type":"post","link":"https:\/\/mynci90.ngreensides.com\/?p=136","title":{"rendered":"Using Raspberry Pi Zero W with a CRT TV"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/mynci90.ngreensides.com\/wp-content\/uploads\/2022\/04\/img_1217.jpg?w=768\" alt=\"\" class=\"wp-image-149\" \/><\/figure>\n\n\n\n<p>Ever since I first learned of its existence in 2018, I love Raspberry Pi and all of the community surrounding it. I was gifted a Raspberry Pi Zero W by a family friend who received it for free with a purchase at a local Micro Center and wasn&#8217;t sure what I would do with it. It sat on my desk for almost a year before I finally found the time and energy to consider it.<\/p>\n\n\n\n<p>Ultimately, I had always loved that rPi still maintains a TV out port (AKA RCA or composite) connection on all their boards. The second rPi 3B+ I ever had, I turned into a RetroPie connected to an old Samsung CRT TV that I picked up at a local Goodwill to experience old gaming on the intended screen (HDTVs make old console gaming look terrible IMO). I ultimately gifted that rPi3B+ to the same family friend who had given me the rPi Zero W. Once I finally found the wherewithal to think about rPi Zero W projects and learning about what others have done with it, I ultimately decided to use it as a home entertainment device for the Samsung CRT TV which is located in the bedroom at this point.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/mynci90.ngreensides.com\/wp-content\/uploads\/2022\/04\/img_1212.jpg?w=1024\" alt=\"\" class=\"wp-image-147\" \/><\/figure>\n\n\n\n<p>As a side project, I had been playing around with connecting an rPi 4 to CRT and struggled with the overscan settings on and off for about two months. At first I thought it was because pi4 vs pi3 hardware. When it turned out to also be a problem with the rPi Zero W composite out, I researched the issue on and off for about two weeks. Then, one unnecessary rPi 3B+ kit purchase later, (I say unnecessary because the supply of standalone rPi boards don&#8217;t exist at the moment in the USA with the continuing supply chain issues), I confirmed that something between Buster and Bullseye had changed. Turns out that Buster and Bullseye kernels handle overscan settings differently. <a rel=\"noreferrer noopener\" href=\"https:\/\/forums.raspberrypi.com\/viewtopic.php?p=1992099#p1992099\" target=\"_blank\">Eventually I found the solution<\/a> and then proceeded to think about how to connect the rPi Zero W to CRT. <\/p>\n\n\n\n<p>First, I took a dive into (re)learning how to solder. Once I felt comfortable and confident enough, I went ahead and soldered all GPIO pins onto the rPi Zero W. It&#8217;s not pretty looking, but it got the job done. After acquiring the correct product for <a rel=\"noreferrer noopener\" href=\"https:\/\/www.adafruit.com\/product\/2792\" target=\"_blank\">composite video connection using rPi Zero W from Adafruit<\/a>, <a rel=\"noreferrer noopener\" href=\"https:\/\/magpi.raspberrypi.com\/articles\/rca-pi-zero\" target=\"_blank\">I tested the TV out connection, configured the config.txt<\/a>, (modifed Bullseye for overscan settings according to the solution) and it worked! I was finally able to connect the rPi Zero W to the old CRT only to realize a major oversight in all my tinkering and learning: sound out to the TV. I found many a tutorial and many a pHAT that would suffice ultimately settling on <a rel=\"noreferrer noopener\" href=\"https:\/\/www.adafruit.com\/product\/4037\" target=\"_blank\">Adafruit&#8217;s I2S Audio Bonnet for Raspberry Pi &#8211; UDA1334A<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/mynci90.ngreensides.com\/wp-content\/uploads\/2022\/04\/img_1213.jpg?w=768\" alt=\"\" class=\"wp-image-152\" \/><\/figure>\n\n\n\n<p>The rPi Zero W case which I had purchased was not going to allow the wires to sit properly given the low clearance with the audio pHAT. Thus I decided to strip the wires and direct solder them to the TV out pins (and ground). Since I was at it, I also soldered <a rel=\"noreferrer noopener\" href=\"https:\/\/www.adafruit.com\/product\/4171\" target=\"_blank\">the RCA audio jacks to the audio pHAT<\/a>. With that, the rPi Zero W had both audio out and TV out connections.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/mynci90.ngreensides.com\/wp-content\/uploads\/2022\/04\/img_1214.jpg?w=768\" alt=\"\" class=\"wp-image-146\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/learn.adafruit.com\/adafruit-i2s-audio-bonnet-for-raspberry-pi\/raspberry-pi-usage\" target=\"_blank\" rel=\"noreferrer noopener\">Configuring the sound<\/a> to work took a little while, but ultimately, I had to manually add in two lines of code to the config.txt manually (I have copied that portion of the tutorial below):<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<p>If you see a line that says: <code>dtparam=audio=on <\/code><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn-learn.adafruit.com\/assets\/assets\/000\/032\/636\/medium800\/adafruit_products_dtover.png?1464032257\" alt=\"adafruit_products_dtover.png\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/learn.adafruit.com\/assets\/32636\"><\/a>Disable it by putting a <strong>#<\/strong> in front.<\/p>\n\n\n\n<p>Then add:<br><code>dtoverlay=hifiberry-dac<br>dtoverlay=i2s-mmap<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"675\" height=\"456\" src=\"https:\/\/mynci90.ngreensides.com\/wp-content\/uploads\/2022\/04\/image.png?w=675\" alt=\"\" class=\"wp-image-145\" srcset=\"https:\/\/mynci90.ngreensides.com\/wp-content\/uploads\/2022\/04\/image.png 675w, https:\/\/mynci90.ngreensides.com\/wp-content\/uploads\/2022\/04\/image-300x203.png 300w\" sizes=\"auto, (max-width: 675px) 100vw, 675px\" \/><\/figure>\n\n\n\n<p>Save the file.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<p>I use VNC Viewer app on my phone as a remote, but I suppose a Bluetooth mouse and keyboard or remote might suffice instead. I suppose to I might look into Kodi on rPi Zero W, but for now, Raspbian seems to work (except for some mp4 files for some reason&#8230;)<\/p>\n\n\n\n<p>What a wonderful world we live in. Now I can watch old shows from my networked HDD on my CRT TV in my room at the end of the night . The 480p or lower quality of the older TV shows (Invader Zim and Spongebob at the moment) suddenly looked very sharp like I remembered watching it growing up. Thus completes the cycle of life I suppose seeing as my grandparents (who are now in their 80s) still watch TV in their room on a CRT TV every night.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Configuring Raspberry Pi Zero W to work with old CRT TV<\/p>\n","protected":false},"author":1,"featured_media":149,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[7],"tags":[30,49,64,86,122,123,131,140],"class_list":["post-136","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tinkering","tag-component-tv","tag-electronics","tag-hacking","tag-maker","tag-raspberry-pi","tag-raspberry-pi-zero-w","tag-retro-cool","tag-soldering"],"jetpack_featured_media_url":"https:\/\/mynci90.ngreensides.com\/wp-content\/uploads\/2022\/04\/img_1217-scaled.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mynci90.ngreensides.com\/index.php?rest_route=\/wp\/v2\/posts\/136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mynci90.ngreensides.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mynci90.ngreensides.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mynci90.ngreensides.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mynci90.ngreensides.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=136"}],"version-history":[{"count":0,"href":"https:\/\/mynci90.ngreensides.com\/index.php?rest_route=\/wp\/v2\/posts\/136\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mynci90.ngreensides.com\/index.php?rest_route=\/wp\/v2\/media\/149"}],"wp:attachment":[{"href":"https:\/\/mynci90.ngreensides.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mynci90.ngreensides.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mynci90.ngreensides.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}