{"id":933,"date":"2012-01-16T01:19:35","date_gmt":"2012-01-16T05:19:35","guid":{"rendered":"http:\/\/biosrhythm.com\/?p=933"},"modified":"2013-07-29T02:01:46","modified_gmt":"2013-07-29T02:01:46","slug":"diy-nes-gamepad-to-ipad-adapter","status":"publish","type":"post","link":"https:\/\/biosrhythm.com\/?p=933","title":{"rendered":"DIY NES Gamepad to iPad Adapter"},"content":{"rendered":"<p>In my last post, I showed that I could use my <a href=\"http:\/\/biosrhythm.com\/?p=927\">homebrew C64 USB keyboard with the iPad<\/a> using the Camera Connection Kit. What was interesting was when I opened iMAME (you were lucky enough to snag it, right?) and accidentally pressed keys on the keyboard. iMAME said it was enabling iCade mode. I thought this was interesting and looked it up.<\/p>\n<p><a href=\"http:\/\/www.ionaudio.com\/products\/details\/icade\">iCade<\/a> connects via Bluetooth and acts as a Bluetooth keyboard. My keyboard was connected via USB. Could a USB keyboard work to control games on the iPad? Maybe the connection type didn&#8217;t matter? Could I create an adapter that connects via USB and lets you use standard game controllers in iMAME?<\/p>\n<p>iCade sends key strokes when a button is pressed and once again when it&#8217;s released. The <a href=\"http:\/\/www.ionaudio.com\/downloads\/iCade_Dev_Resource_v1.3.pdf\">keys are documented for developers<\/a>. I launched iMAME again with the USB keyboard plugged in to confirm and as expected the keys worked to control the games.<\/p>\n<p>The next part was pretty straight forward. Make a USB keyboard with an Arduino (<a href=\"http:\/\/biosrhythm.com\/?p=910\">see previous post on how this was done<\/a>) but instead of an actual keyboard matrix, use a game pad. I chose to use my trusty original NES game pad since they&#8217;re so easy to interface with.<\/p>\n<p><img loading=\"lazy\" src=\"http:\/\/paulrickards.com\/wp-content\/uploads\/2012\/01\/IMG_9865-840x560.jpg\" alt=\"\" title=\"iPad USB Gamepad Interface\" width=\"840\" height=\"560\" class=\"alignleft size-large wp-image-935\" \/><br \/>\n<br clear=all><br \/>\nI threw together a quick case from LEGO and hot glued in two jacks, one for the NES controller and one for USB. The iPad powers the Arduino and the NES controller so no power supply is needed.<\/p>\n<p>And there you have it, a DIY NES Gamepad to iPad via USB adapter. I&#8217;ll post the code later when it&#8217;s been cleaned up a bit. The only other game I&#8217;ve tested was Atari&#8217;s Greatest Hits and it seemed to work fine. In theory, any <a href=\"http:\/\/www.ionaudio.com\/products\/icade-games\">game that supports the iCade<\/a> should work.<\/p>\n<p><img loading=\"lazy\" src=\"http:\/\/paulrickards.com\/wp-content\/uploads\/2012\/01\/IMG_9873-840x560.jpg\" alt=\"\" title=\"iPad and NES controller\" width=\"840\" height=\"560\" class=\"alignleft size-large wp-image-934\" \/><\/p>\n<p><img loading=\"lazy\" src=\"http:\/\/paulrickards.com\/wp-content\/uploads\/2012\/01\/IMG_9869-840x560.jpg\" alt=\"\" title=\"ROTO on iMame with NES controller\" width=\"840\" height=\"560\" class=\"alignleft size-large wp-image-937\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In my last post, I showed that I could use my homebrew C64 USB keyboard with the iPad using the Camera Connection Kit. What was interesting was when I opened iMAME (you were lucky enough to snag it, right?) and accidentally pressed keys on the keyboard. iMAME said it was enabling iCade mode. I thought [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2,3,15],"tags":[],"_links":{"self":[{"href":"https:\/\/biosrhythm.com\/index.php?rest_route=\/wp\/v2\/posts\/933"}],"collection":[{"href":"https:\/\/biosrhythm.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/biosrhythm.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/biosrhythm.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/biosrhythm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=933"}],"version-history":[{"count":2,"href":"https:\/\/biosrhythm.com\/index.php?rest_route=\/wp\/v2\/posts\/933\/revisions"}],"predecessor-version":[{"id":1049,"href":"https:\/\/biosrhythm.com\/index.php?rest_route=\/wp\/v2\/posts\/933\/revisions\/1049"}],"wp:attachment":[{"href":"https:\/\/biosrhythm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=933"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/biosrhythm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=933"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/biosrhythm.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=933"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}