{"id":4661,"date":"2014-10-13T23:21:02","date_gmt":"2014-10-14T03:21:02","guid":{"rendered":"http:\/\/mti.code.arc.cmu.edu\/2014\/?p=4661"},"modified":"2014-10-14T15:56:53","modified_gmt":"2014-10-14T19:56:53","slug":"project01-ivolume-a-volume-controlled-rpi-radio","status":"publish","type":"post","link":"http:\/\/mti.code.arc.cmu.edu\/2014\/?p=4661","title":{"rendered":"Project01: iVolume &#8212; a volume-controlled RPi Radio"},"content":{"rendered":"<p><iframe loading=\"lazy\" title=\"Volume-Controlled RPi Radio\" src=\"https:\/\/player.vimeo.com\/video\/108852710?dnt=1&amp;app_id=122963\" width=\"500\" height=\"281\" frameborder=\"0\" allow=\"autoplay; fullscreen; picture-in-picture; clipboard-write\"><\/iframe><\/p>\n<p>iVolume is a device that allows you to listen to your favorite radio station on Pandora, where the volume of the music is controlled based on how loud or quiet the surrounding environment is. As someone who loves listening to music on Pandora, I thought this would be an interesting way to use the input from the microphone, and a productive way to get my hands dirty with the Raspberry Pi.<\/p>\n<p><a href=\"http:\/\/mti.code.arc.cmu.edu\/2014\/wp-content\/uploads\/2014\/10\/DSCF3989.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-4678\" src=\"http:\/\/mti.code.arc.cmu.edu\/2014\/wp-content\/uploads\/2014\/10\/DSCF3989-500x280.jpg\" alt=\"DSCF3989\" width=\"500\" height=\"280\" srcset=\"http:\/\/mti.code.arc.cmu.edu\/2014\/wp-content\/uploads\/2014\/10\/DSCF3989-500x280.jpg 500w, http:\/\/mti.code.arc.cmu.edu\/2014\/wp-content\/uploads\/2014\/10\/DSCF3989-300x168.jpg 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/mti.code.arc.cmu.edu\/2014\/wp-content\/uploads\/2014\/10\/DSCF3992.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-4679\" src=\"http:\/\/mti.code.arc.cmu.edu\/2014\/wp-content\/uploads\/2014\/10\/DSCF3992-500x281.jpg\" alt=\"DSCF3992\" width=\"500\" height=\"281\" srcset=\"http:\/\/mti.code.arc.cmu.edu\/2014\/wp-content\/uploads\/2014\/10\/DSCF3992-500x281.jpg 500w, http:\/\/mti.code.arc.cmu.edu\/2014\/wp-content\/uploads\/2014\/10\/DSCF3992-300x168.jpg 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/mti.code.arc.cmu.edu\/2014\/wp-content\/uploads\/2014\/10\/DSCF3996.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-4680\" src=\"http:\/\/mti.code.arc.cmu.edu\/2014\/wp-content\/uploads\/2014\/10\/DSCF3996-500x281.jpg\" alt=\"DSCF3996\" width=\"500\" height=\"281\" srcset=\"http:\/\/mti.code.arc.cmu.edu\/2014\/wp-content\/uploads\/2014\/10\/DSCF3996-500x281.jpg 500w, http:\/\/mti.code.arc.cmu.edu\/2014\/wp-content\/uploads\/2014\/10\/DSCF3996-300x168.jpg 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/mti.code.arc.cmu.edu\/2014\/wp-content\/uploads\/2014\/10\/DSCF3988.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-4677\" src=\"http:\/\/mti.code.arc.cmu.edu\/2014\/wp-content\/uploads\/2014\/10\/DSCF3988-500x280.jpg\" alt=\"DSCF3988\" width=\"500\" height=\"280\" srcset=\"http:\/\/mti.code.arc.cmu.edu\/2014\/wp-content\/uploads\/2014\/10\/DSCF3988-500x280.jpg 500w, http:\/\/mti.code.arc.cmu.edu\/2014\/wp-content\/uploads\/2014\/10\/DSCF3988-300x168.jpg 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p>The video above has illustrated the basic working of the device. The electret microphone amplifier senses the crowd noise, where the data is interpreted and sent to the Raspberry Pi through Serial communication. <a href=\"http:\/\/6xq.net\/projects\/pianobar\/\" target=\"_blank\">Pianobar<\/a>,\u00a0an open-source, console-based client for Pandora, comes with many features including playing, managing, and rating stations. For this project, I used the input data to manipulate the volume of the music. In the video, I plugged in a set of speakers to the Raspberry Pi to illustrate how the device works. However, a more ideal setting would be to use headphones instead because\u00a0the microphone will take in the loud sound from the speakers, which will eventually make the volume go up and never come down.<\/p>\n<p>Even though there are quite a number of tutorials for\u00a0Pianobar + Raspberry Pi, I learned a lot working on this project. This includes\u00a0figuring out how to manually install the libraries onto the Raspberry Pi, working in terminal, sending data from an Arduino to a RPi, and coding in Python. Looking forward, I plan\u00a0to\u00a0create a more durable and portable prototype, and possibly mix in other types of inputs to manage the different stations.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>iVolume is a device that allows you to listen to your favorite radio station on Pandora, where the volume of the music is controlled based on how loud or quiet the surrounding environment is. As someone who loves listening to music on Pandora, I thought this would be an interesting way to use the input [&hellip;]<\/p>\n","protected":false},"author":148,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,93],"tags":[],"coauthors":[100],"class_list":["post-4661","post","type-post","status-publish","format-standard","hentry","category-assignment","category-project01"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/mti.code.arc.cmu.edu\/2014\/index.php?rest_route=\/wp\/v2\/posts\/4661","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/mti.code.arc.cmu.edu\/2014\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/mti.code.arc.cmu.edu\/2014\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/mti.code.arc.cmu.edu\/2014\/index.php?rest_route=\/wp\/v2\/users\/148"}],"replies":[{"embeddable":true,"href":"http:\/\/mti.code.arc.cmu.edu\/2014\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4661"}],"version-history":[{"count":7,"href":"http:\/\/mti.code.arc.cmu.edu\/2014\/index.php?rest_route=\/wp\/v2\/posts\/4661\/revisions"}],"predecessor-version":[{"id":4682,"href":"http:\/\/mti.code.arc.cmu.edu\/2014\/index.php?rest_route=\/wp\/v2\/posts\/4661\/revisions\/4682"}],"wp:attachment":[{"href":"http:\/\/mti.code.arc.cmu.edu\/2014\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4661"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/mti.code.arc.cmu.edu\/2014\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4661"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/mti.code.arc.cmu.edu\/2014\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4661"},{"taxonomy":"author","embeddable":true,"href":"http:\/\/mti.code.arc.cmu.edu\/2014\/index.php?rest_route=%2Fwp%2Fv2%2Fcoauthors&post=4661"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}