{"id":107,"date":"2017-12-29T15:10:34","date_gmt":"2017-12-29T20:10:34","guid":{"rendered":"http:\/\/thinkleet.net\/?p=107"},"modified":"2019-05-22T09:52:49","modified_gmt":"2019-05-22T13:52:49","slug":"hyperionretropiekodibliss","status":"publish","type":"post","link":"https:\/\/thinkleet.net\/index.php\/2017\/12\/29\/hyperionretropiekodibliss\/","title":{"rendered":"Hyperion+RetroPie+Kodi=Bliss!"},"content":{"rendered":"\n<p>UPDATE:  SteamLink is now available in the experimental packages inside RetroPie.  Since Hyperion uses the whatever is output to the screen to drive the LEDs, SteamLink works in this setup as well!  <\/p>\n\n\n<p>Back at it again.\u00a0 Due to funding issues, I have been using all the spare parts that I have acquired over the past 1-2 years.\u00a0 This week it was finally time to put the blinky lights to good use.\u00a0 Just about 3 years ago I had attempted to set up BobLight using a Raspberry Pi 2, Kodi, and a set of WS2801 LEDs.\u00a0 This worked ok, but it wasn&#8217;t the greatest.\u00a0 The majority of the time, only the set that was nearest to the Pi would light up, the remainder would work intermittently, if at all.\u00a0 This caused the project to be put on the back burner since the cost of the LED strip and connectors made it not worthwhile to replace the setup.\u00a0 Fast Forward 2 years, and I acquired a 5m length of <a href=\"http:\/\/amzn.to\/2EcWFqL\">WS2812B LEDs<\/a>, an <a href=\"http:\/\/amzn.to\/2zNkr9o\">Arduino compatible Nano<\/a>, yet another<a href=\"http:\/\/amzn.to\/2EdpPG6\"> Raspberry Pi 3<\/a>, and a <a href=\"http:\/\/amzn.to\/2BSWSOm\">5V\/8A power supply<\/a>.<!--more--><\/p>\n<p>Step one to the entire process was getting the basic software up and running.\u00a0 This involved installing RetroPie and Kodi on the SD card for the Pi, ensuring that the software is functional.\u00a0 The basic setup for this can be found in <a href=\"https:\/\/thinkleet.net\/index.php\/2017\/12\/14\/full-setup-of-retropie\/\">Full Setup of RetroPie.\u00a0\u00a0<\/a>Once this is complete we can start on stage two, installing the additional software on the Pi.\u00a0 The software that I tend to use is called Hyperion.\u00a0 A wonderful walktrough on the full setup exists on <a href=\"https:\/\/ai.rs\/reviews\/rgb-delight-raspberry-pi2-arduino-nano-ws2812b-using-hyperion-on-openelec\/\">RGB Delight.<\/a>\u00a0 While the post mentions OpenELEC specifically, this will work on almost any Debian based system, which is great for our needs since RetroPie is built on Raspbian, which is built on Debian.\u00a0 To break down the most important parts:\u00a0 Install Hyperion.\u00a0 Use HyperCon.jar to create your configuration file.\u00a0 Modify the created configuration file to refer to an AdaLight sketch, the correct <em>tty<\/em> device, and speed that matches the AdaLight Sketch.\u00a0 While RGB Delight suggests the IP67 LEDs, the ones I used are IP66, and it really doesn&#8217;t matter for our use case.\u00a0 The video display isn&#8217;t being exposed to the elements, and my double sided tape didn&#8217;t want to work on the silicone sleeve, so I removed it anyway.<\/p>\n<p>Mostly the setup is trial and error.\u00a0 This was my third time using an Arduino, and I&#8217;m still not 100% comfortable with the process, but it is easy enough to follow instructions.\u00a0 The main things to remember is that ground needs to be common on all devices.\u00a0 This caused me an issue when testing my LED strip.\u00a0 I failed to connect the ground (negative) to the Arduino causing a floating output, resulting in only part of the LED strip illuminating.\u00a0 Connecting the negative to the ground pin on the Arduino resolved this.\u00a0 95% of electronics problems can be solved simply by checking power and ground.\u00a0 Ensure all grounds are tied together and most issues should be resolved.\u00a0 2nd issue I experienced was errors compiling the sketches.\u00a0 this was resolved by ensuring the proper libraries were installed.\u00a0 The main one I was missing was the FastLED library.\u00a0 A quick git clone into the libraries folder and this was solved as well.\u00a0 The final issue I had was not being able to load HyperCon and failing to compensate for where it wanted to put LED 0.\u00a0 My HyperCon was downloaded to ~\/Downloads, so my command to launch it from my home directory was &#8220;java -jar ~\/Downloads\/HyperCon.jar&#8221;.<\/p>\n<p>Finally, an example video of the set up in action is available <a href=\"https:\/\/www.dropbox.com\/s\/d4nkjmmnf8t58ah\/VID_20171229_105906.mp4?dl=0\">here.<\/a><\/p>\n<p>\u00a0<\/p>","protected":false},"excerpt":{"rendered":"<p>UPDATE: SteamLink is now available in the experimental packages inside RetroPie. Since Hyperion uses the whatever is output to the screen to drive the LEDs, SteamLink works in this setup as well! Back at it again.\u00a0 Due to funding issues, I have been using all the spare parts that I have acquired over the past &hellip; <a href=\"https:\/\/thinkleet.net\/index.php\/2017\/12\/29\/hyperionretropiekodibliss\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Hyperion+RetroPie+Kodi=Bliss!<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,9],"tags":[],"class_list":["post-107","post","type-post","status-publish","format-standard","hentry","category-media-center","category-pi"],"_links":{"self":[{"href":"https:\/\/thinkleet.net\/index.php\/wp-json\/wp\/v2\/posts\/107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thinkleet.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thinkleet.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thinkleet.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thinkleet.net\/index.php\/wp-json\/wp\/v2\/comments?post=107"}],"version-history":[{"count":7,"href":"https:\/\/thinkleet.net\/index.php\/wp-json\/wp\/v2\/posts\/107\/revisions"}],"predecessor-version":[{"id":187,"href":"https:\/\/thinkleet.net\/index.php\/wp-json\/wp\/v2\/posts\/107\/revisions\/187"}],"wp:attachment":[{"href":"https:\/\/thinkleet.net\/index.php\/wp-json\/wp\/v2\/media?parent=107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thinkleet.net\/index.php\/wp-json\/wp\/v2\/categories?post=107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thinkleet.net\/index.php\/wp-json\/wp\/v2\/tags?post=107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}