{"id":57,"date":"2012-12-14T17:23:00","date_gmt":"2012-12-14T17:23:00","guid":{"rendered":"https:\/\/blafaselblub.wordpress.com\/2012\/12\/14\/ruwido-merlin-ir-usb-hid-receiver"},"modified":"2018-01-08T11:16:29","modified_gmt":"2018-01-08T10:16:29","slug":"ruwido-merlin-ir-usb-hid-receiver","status":"publish","type":"post","link":"https:\/\/blog.alexander-tuxen.de\/index.php\/2012\/12\/14\/ruwido-merlin-ir-usb-hid-receiver\/","title":{"rendered":"RUWIDO Merlin IR-USB-HID Receiver"},"content":{"rendered":"<p>There are these very neat <a href=\"http:\/\/www.pollin.de\/shop\/dt\/MjQ5ODgyOTk-\/Computer_und_Zubehoer\/Hardware\/Tastaturen\/Infrarot_Tastatur_RUWIDO_MERLIN.html\">IR Keyboards<\/a> for sale at a German surplus retailer. At only one Euro they are a steal, but the reason they are this cheap is that they come without a receiver. So to the average person seeking a nice keyboard for their living room media center PC they are useless.<\/p>\n<p>I bought one a few months back when they were still 2,95 \u20ac and tried to get it to work with <a href=\"http:\/\/lirc.org\/\">LIRC<\/a>, but had little luck. It kind of worked in raw mode but the key repeat rate was insane and also this wasn&#8217;t what I was after: I didn&#8217;t want to use it as a remote control with LIRC, but as a regular HID keyboard instead.<\/p>\n<p>These keyboards were discussed on quite a few (mostly German) forums on the web, and someone even came up with a <a href=\"https:\/\/sites.google.com\/site\/guenterbartsch\/blog\/avratmega48ruwidomerlinirkeyboarddecoder\">decoder for the IR protocol<\/a>, but so far nobody seems to have written something that would act as a USB HID keyboard. So I had to do it myself.<\/p>\n<p>I did it by simply combining the IR decoder with the <a href=\"http:\/\/www.obdev.at\/products\/vusb\/index.html\">V-USB project<\/a>, which implements a USB HID driver on any old AVR device (not those expensive &#8220;U&#8221; types, which come with hardware USB).<\/p>\n<p>It should run on any ATMega44\/48\/168\/328 and even on the ATMega8. Which is quite nice because there is a type of USB ISP programmer called USBASP, which is also based on V-USB (I think), and those are available on <a href=\"http:\/\/www.ebay.com\/itm\/1PCS-USBasp-USBISP-3-3V-5V-AVR-Programmer-USB-ATMEGA8-New-\/261021924011?pt=LH_DefaultDomain_0&amp;hash=item3cc61e7aab\">Ebay<\/a> for about 3,- \u20ac.<\/p>\n<p>So all that&#8217;s left to do is to get one of those and solder a IR-receiver to it, so I can get it off the breadboard.<\/p>\n<div class=\"separator\" style=\"clear: both; text-align: center;\"><\/div>\n<table class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n<tbody>\n<tr>\n<td style=\"text-align: center;\"><a href=\"http:\/\/blog.alexander-tuxen.de\/wp-content\/uploads\/2012\/12\/vusb_ir_receiver.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-large wp-image-167\" src=\"http:\/\/blog.alexander-tuxen.de\/wp-content\/uploads\/2012\/12\/vusb_ir_receiver-1024x437.png\" alt=\"\" width=\"640\" height=\"273\" srcset=\"https:\/\/blog.alexander-tuxen.de\/wp-content\/uploads\/2012\/12\/vusb_ir_receiver-1024x437.png 1024w, https:\/\/blog.alexander-tuxen.de\/wp-content\/uploads\/2012\/12\/vusb_ir_receiver-300x128.png 300w, https:\/\/blog.alexander-tuxen.de\/wp-content\/uploads\/2012\/12\/vusb_ir_receiver-768x328.png 768w, https:\/\/blog.alexander-tuxen.de\/wp-content\/uploads\/2012\/12\/vusb_ir_receiver.png 1247w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td class=\"tr-caption\" style=\"text-align: center;\">The schematic is really simple. And the best thing is, the USBASP already contains everything everything except the TSOP1756 !<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>As usual, the code can be found in my <a href=\"https:\/\/github.com\/alibenpeng\/ruwido_hidusb\">Github-repository<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are these very neat IR Keyboards for sale at a German surplus retailer. At only one Euro they are a steal, but the reason they are this cheap is that they come without a receiver. So to the average &hellip; <a href=\"https:\/\/blog.alexander-tuxen.de\/index.php\/2012\/12\/14\/ruwido-merlin-ir-usb-hid-receiver\/\">Continue reading <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":[],"categories":[6,3],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.alexander-tuxen.de\/index.php\/wp-json\/wp\/v2\/posts\/57"}],"collection":[{"href":"https:\/\/blog.alexander-tuxen.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.alexander-tuxen.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.alexander-tuxen.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.alexander-tuxen.de\/index.php\/wp-json\/wp\/v2\/comments?post=57"}],"version-history":[{"count":1,"href":"https:\/\/blog.alexander-tuxen.de\/index.php\/wp-json\/wp\/v2\/posts\/57\/revisions"}],"predecessor-version":[{"id":168,"href":"https:\/\/blog.alexander-tuxen.de\/index.php\/wp-json\/wp\/v2\/posts\/57\/revisions\/168"}],"wp:attachment":[{"href":"https:\/\/blog.alexander-tuxen.de\/index.php\/wp-json\/wp\/v2\/media?parent=57"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.alexander-tuxen.de\/index.php\/wp-json\/wp\/v2\/categories?post=57"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.alexander-tuxen.de\/index.php\/wp-json\/wp\/v2\/tags?post=57"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}