{"id":52,"date":"2020-05-24T19:36:21","date_gmt":"2020-05-24T18:36:21","guid":{"rendered":"https:\/\/www.slowergram.com\/?p=52"},"modified":"2020-08-19T20:09:58","modified_gmt":"2020-08-19T19:09:58","slug":"rpi-spotify-connect-receiver-part-3","status":"publish","type":"post","link":"https:\/\/www.slowergram.com\/index.php\/2020\/05\/24\/rpi-spotify-connect-receiver-part-3\/","title":{"rendered":"RPI Spotify Connect Receiver (Part 3)"},"content":{"rendered":"\n<p>This is the last part in the series, see&nbsp;<a href=\"https:\/\/www.slowergram.com\/?p=69\" target=\"_blank\" rel=\"noreferrer noopener\">part 1<\/a>&nbsp;and&nbsp;<a href=\"https:\/\/www.slowergram.com\/?p=72\" target=\"_blank\" rel=\"noreferrer noopener\">part 2<\/a><\/p>\n\n\n\n<p>Now I have all the pieces of the puzzle, it\u2019s time to put them all together. The first job is to solder the GPIO header onto the Raspberry Pi zero W. A relatively straightforward task although I\u2019ve not soldered for many years, so don\u2019t judge me! There is an excellent guide\u00a0<a rel=\"noreferrer noopener\" href=\"https:\/\/learn.pimoroni.com\/tutorial\/sandyj\/the-ultimate-guide-to-soldering\" target=\"_blank\">here<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"438\" src=\"https:\/\/www.slowergram.com\/wp-content\/uploads\/2020\/08\/IMG_20200524_142054893-1-1024x438.jpg\" alt=\"\" class=\"wp-image-77\" srcset=\"https:\/\/www.slowergram.com\/wp-content\/uploads\/2020\/08\/IMG_20200524_142054893-1-1024x438.jpg 1024w, https:\/\/www.slowergram.com\/wp-content\/uploads\/2020\/08\/IMG_20200524_142054893-1-300x128.jpg 300w, https:\/\/www.slowergram.com\/wp-content\/uploads\/2020\/08\/IMG_20200524_142054893-1-768x329.jpg 768w, https:\/\/www.slowergram.com\/wp-content\/uploads\/2020\/08\/IMG_20200524_142054893-1-1536x657.jpg 1536w, https:\/\/www.slowergram.com\/wp-content\/uploads\/2020\/08\/IMG_20200524_142054893-1-2048x877.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>I\u2019ll be putting the Spotify receiver in a case, which needs a header and then the DAC hat on top of that. I went with JustBoom Digi Zero as it was specifically made for the pi zero.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"438\" src=\"https:\/\/www.slowergram.com\/wp-content\/uploads\/2020\/08\/IMG_20200524_142120072-1024x438.jpg\" alt=\"\" class=\"wp-image-79\" srcset=\"https:\/\/www.slowergram.com\/wp-content\/uploads\/2020\/08\/IMG_20200524_142120072-1024x438.jpg 1024w, https:\/\/www.slowergram.com\/wp-content\/uploads\/2020\/08\/IMG_20200524_142120072-300x128.jpg 300w, https:\/\/www.slowergram.com\/wp-content\/uploads\/2020\/08\/IMG_20200524_142120072-768x329.jpg 768w, https:\/\/www.slowergram.com\/wp-content\/uploads\/2020\/08\/IMG_20200524_142120072-1536x657.jpg 1536w, https:\/\/www.slowergram.com\/wp-content\/uploads\/2020\/08\/IMG_20200524_142120072-2048x877.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>They also make a case, which I ordered with the DAC just to make it look pretty. When I can get approval from the financial controller (wife) I will start 3D printing things like this.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"438\" src=\"https:\/\/www.slowergram.com\/wp-content\/uploads\/2020\/08\/IMG_20200524_152449321-1024x438.jpg\" alt=\"\" class=\"wp-image-80\" srcset=\"https:\/\/www.slowergram.com\/wp-content\/uploads\/2020\/08\/IMG_20200524_152449321-1024x438.jpg 1024w, https:\/\/www.slowergram.com\/wp-content\/uploads\/2020\/08\/IMG_20200524_152449321-300x128.jpg 300w, https:\/\/www.slowergram.com\/wp-content\/uploads\/2020\/08\/IMG_20200524_152449321-768x329.jpg 768w, https:\/\/www.slowergram.com\/wp-content\/uploads\/2020\/08\/IMG_20200524_152449321-1536x657.jpg 1536w, https:\/\/www.slowergram.com\/wp-content\/uploads\/2020\/08\/IMG_20200524_152449321-2048x877.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>A small change is needed in the Raspberry Pi \/boot\/config.txt file to make the DAC work.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#dtparam=audio=on\ndtparam=audio=off\ndtoverlay=i2s-mmap\ndtoverlay=justboom-digi<\/code><\/pre>\n\n\n\n<p>Next to make our cute little DAC work with Spotify we will install raspotify. This installed really easily with the script<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -sL https:\/\/dtcooper.github.io\/raspotify\/install.sh | sh<\/code><\/pre>\n\n\n\n<p>Other options for install are listed on the GitHub page&nbsp;<a href=\"https:\/\/github.com\/dtcooper\/raspotify\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/dtcooper\/raspotify<\/a><\/p>\n\n\n\n<p>The only setting I changed was the bit rate for higher sound quality in the config file \/etc\/defaults\/raspotify<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>BITRATE=\"320\"<\/code><\/pre>\n\n\n\n<p>After a quick restart, everything was running as expected. I plugged it into my amplifier and connected with Spotify<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"blob:https:\/\/www.slowergram.com\/35159dd4-1d16-46a6-acfa-481e953a053b\" alt=\"\"\/><\/figure>\n\n\n\n<p>It sounds great, much better than the Bluetooth receiver I was using previously.<\/p>\n\n\n\n<p>Big thanks to&nbsp;<a href=\"https:\/\/github.com\/dtcooper\/\" target=\"_blank\" rel=\"noreferrer noopener\">dtcooper<\/a>&nbsp;for releasing raspotify and also&nbsp;<a href=\"https:\/\/github.com\/plietar\" target=\"_blank\" rel=\"noreferrer noopener\">Paul Lietar<\/a>&nbsp;for&nbsp;librespot which is used by raspotify. Will definitely we donating once I\u2019ve worked out bitcoin mining with a Raspberry Pi.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is the last part in the series, see&nbsp;part 1&nbsp;and&nbsp;part 2 Now I have all the pieces of the puzzle, it\u2019s time to put them all together. The first job is to solder the GPIO header onto the Raspberry Pi zero W. A relatively straightforward task although I\u2019ve not soldered <a href=\"https:\/\/www.slowergram.com\/index.php\/2020\/05\/24\/rpi-spotify-connect-receiver-part-3\/\" class=\"btn btn-link continue-link\">Continue Reading<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[7,6,8],"class_list":["post-52","post","type-post","status-publish","format-standard","hentry","category-uncategorised","tag-dac","tag-raspberry-pi","tag-spotify"],"_links":{"self":[{"href":"https:\/\/www.slowergram.com\/index.php\/wp-json\/wp\/v2\/posts\/52","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.slowergram.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.slowergram.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.slowergram.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.slowergram.com\/index.php\/wp-json\/wp\/v2\/comments?post=52"}],"version-history":[{"count":0,"href":"https:\/\/www.slowergram.com\/index.php\/wp-json\/wp\/v2\/posts\/52\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.slowergram.com\/index.php\/wp-json\/wp\/v2\/media?parent=52"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.slowergram.com\/index.php\/wp-json\/wp\/v2\/categories?post=52"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.slowergram.com\/index.php\/wp-json\/wp\/v2\/tags?post=52"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}