{"id":621,"date":"2012-06-10T19:02:52","date_gmt":"2012-06-10T17:02:52","guid":{"rendered":"http:\/\/tomashg.com\/?p=621"},"modified":"2021-10-13T00:38:03","modified_gmt":"2021-10-12T22:38:03","slug":"arcade-warrior-midi-fighter-pro-clone","status":"publish","type":"post","link":"https:\/\/tomashg.com\/?p=621","title":{"rendered":"Arcade Warrior (Midi Fighter Pro clone)"},"content":{"rendered":"<p><iframe width=\"560\" height=\"315\" src=\"http:\/\/www.youtube.com\/embed\/S3kGcFpqhdg\" frameborder=\"0\" allowfullscreen=\"\"><\/iframe><\/p>\n<p>Exams are finally over and I can spend much more time experimenting with controllers without any traces of guilt. The major highlight for this post will be my new Arcade Warrior controller, a shameless rip-off of the <a href=\"http:\/\/store.djtechtools.com\/midifighter-pro.html\">Midi Fighter Pro<\/a> (thank you DJTT for being such a great source of inspiration), and the Teensy++ micro-controller board.<\/p>\n<p><a href=\"https:\/\/tomashg.com\/wp-content\/uploads\/2012\/06\/DSC01502s.jpg\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/tomashg.com\/wp-content\/uploads\/2012\/06\/DSC01502s-300x225.jpg\" alt=\"\" title=\"DSC01502s\" width=\"300\" height=\"225\" class=\"alignnone size-medium wp-image-633\" srcset=\"https:\/\/tomashg.com\/wp-content\/uploads\/2012\/06\/DSC01502s-300x225.jpg 300w, https:\/\/tomashg.com\/wp-content\/uploads\/2012\/06\/DSC01502s-1024x768.jpg 1024w, https:\/\/tomashg.com\/wp-content\/uploads\/2012\/06\/DSC01502s.jpg 1152w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/tomashg.com\/wp-content\/uploads\/2012\/06\/DSC01415s.jpg\"><img decoding=\"async\" src=\"https:\/\/tomashg.com\/wp-content\/uploads\/2012\/06\/DSC01415s-300x225.jpg\" alt=\"\" title=\"DSC01415s\" width=\"300\" height=\"225\" class=\"alignnone size-medium wp-image-637\" srcset=\"https:\/\/tomashg.com\/wp-content\/uploads\/2012\/06\/DSC01415s-300x225.jpg 300w, https:\/\/tomashg.com\/wp-content\/uploads\/2012\/06\/DSC01415s-1024x768.jpg 1024w, https:\/\/tomashg.com\/wp-content\/uploads\/2012\/06\/DSC01415s.jpg 1152w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>I will start off real quick with <a href=\"http:\/\/www.pjrc.com\/teensy\/\">Teensy++<\/a>, it&#8217;s a very nice and small AVR micro-controller, very similar to Arduino. In fact you can use the Arduino IDE and libraries to <a href=\"http:\/\/www.pjrc.com\/teensy\/teensyduino.html\">program Teensy<\/a>, which is amazingly handy! But the reason I chose to try it was because of it&#8217;s MIDI Class Device support, something that Arduino can&#8217;t do. This means that it can act like any professional  plug-and-play MIDI controller, no drivers, compatibility layers and virtual MIDI ports required!<\/p>\n<p><a href=\"https:\/\/tomashg.com\/wp-content\/uploads\/2012\/06\/DSC01508s.jpg\"><img decoding=\"async\" src=\"https:\/\/tomashg.com\/wp-content\/uploads\/2012\/06\/DSC01508s-300x225.jpg\" alt=\"\" title=\"DSC01508s\" width=\"300\" height=\"225\" class=\"alignnone size-medium wp-image-634\" srcset=\"https:\/\/tomashg.com\/wp-content\/uploads\/2012\/06\/DSC01508s-300x225.jpg 300w, https:\/\/tomashg.com\/wp-content\/uploads\/2012\/06\/DSC01508s-1024x768.jpg 1024w, https:\/\/tomashg.com\/wp-content\/uploads\/2012\/06\/DSC01508s.jpg 1152w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Of course to test it out in practice, I had to build a new controller. And this one I wanted it to be a really fun to play and cool looking device, and what suits better than the old school arcade games that we all loved as kids. \ud83d\ude42  I wanted to build something as expressive as the Midi Fighter Pro, but throw couple of more extra controls in there and a Pac-Man era joystick. Also being able to use Midi Fighter&#8217;s already very developed Traktor mappings would save me tons of time and effort. Fortunately all the MIDI signals documentation and mappings are publicly available at DJ TechTools so it was very easy to implement.<br \/>\nArmed with ergonomically placed rapid fire arcade buttons, smooth professional audio gear potentiometers and the joystick controlling expressive gestures, it turned out to be a very nice and responsive controller.<\/p>\n<p><a href=\"https:\/\/tomashg.com\/wp-content\/uploads\/2012\/06\/DSC01424s.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/tomashg.com\/wp-content\/uploads\/2012\/06\/DSC01424s-300x225.jpg\" alt=\"\" title=\"DSC01424s\" width=\"300\" height=\"225\" class=\"alignnone size-medium wp-image-638\" srcset=\"https:\/\/tomashg.com\/wp-content\/uploads\/2012\/06\/DSC01424s-300x225.jpg 300w, https:\/\/tomashg.com\/wp-content\/uploads\/2012\/06\/DSC01424s-1024x768.jpg 1024w, https:\/\/tomashg.com\/wp-content\/uploads\/2012\/06\/DSC01424s.jpg 1152w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/tomashg.com\/wp-content\/uploads\/2012\/06\/DSC01427s.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/tomashg.com\/wp-content\/uploads\/2012\/06\/DSC01427s-300x225.jpg\" alt=\"\" title=\"DSC01427s\" width=\"300\" height=\"225\" class=\"alignnone size-medium wp-image-639\" srcset=\"https:\/\/tomashg.com\/wp-content\/uploads\/2012\/06\/DSC01427s-300x225.jpg 300w, https:\/\/tomashg.com\/wp-content\/uploads\/2012\/06\/DSC01427s-1024x768.jpg 1024w, https:\/\/tomashg.com\/wp-content\/uploads\/2012\/06\/DSC01427s.jpg 1152w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>PS: After a lot of questions about the wiring of the buttons I decided to update this post.<br \/>\nOne of my goals when building this controller was to make things as simple as possible and use the least number of components. That&#8217;s one of the reason why I have included only 3 LEDs. The buttons and Joystick are wired in a very simple manner. All the ground pins (white cable in photo) are daisy chained together and end up on the ground pin of Teensy and all the colored wires are connected to one Digital Input pin on the Teensy, so no resistors required. In order to use this method, you have to enable the pull up resistor for each of the pins in your microcontroller, and this is done by setting the pin mode to <code>pinMode(buttons[i],INPUT_PULLUP);<\/code> during initialization.<br \/>\nAlso note that if you use the pin 6, which is the one that has a LED on the Teensy, you have to set it to <code>pinMode(6,OUTPUT);<\/code> in order for it to function like the rest.<br \/>\nFinally, since now the buttons operate in active-low logic, this means that if the button is pressed it becomes LOW other wise its HIGH, you have to check for button presses like this <code>if (buttonState[i]-&gt;read()==LOW)\/\/is pressed<\/code><\/p>\n<p>Also all the analog controls are routed through the breadboards and ribbon cables directly to one analog input on the Teensy.<\/p>\n<p>Here is one simple diagram and a photo of my wiring. Hopefully this clarifies things.<\/p>\n<p><a href=\"https:\/\/tomashg.com\/wp-content\/uploads\/2012\/06\/inputPullupButton.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/tomashg.com\/wp-content\/uploads\/2012\/06\/inputPullupButton-300x227.png\" alt=\"\" title=\"inputPullupButton\" width=\"300\" height=\"227\" class=\"alignnone size-medium wp-image-693\" srcset=\"https:\/\/tomashg.com\/wp-content\/uploads\/2012\/06\/inputPullupButton-300x227.png 300w, https:\/\/tomashg.com\/wp-content\/uploads\/2012\/06\/inputPullupButton.png 874w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/tomashg.com\/wp-content\/uploads\/2012\/06\/button_wires.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/tomashg.com\/wp-content\/uploads\/2012\/06\/button_wires-300x168.jpg\" alt=\"\" title=\"button_wires\" width=\"300\" height=\"168\" class=\"alignnone size-medium wp-image-692\" srcset=\"https:\/\/tomashg.com\/wp-content\/uploads\/2012\/06\/button_wires-300x168.jpg 300w, https:\/\/tomashg.com\/wp-content\/uploads\/2012\/06\/button_wires-1024x576.jpg 1024w, https:\/\/tomashg.com\/wp-content\/uploads\/2012\/06\/button_wires.jpg 1920w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Enjoy and keep your emails coming!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Exams are finally over and I can spend much more time experimenting with controllers without any traces of guilt. The major highlight for this post will be my new Arcade Warrior controller, a shameless rip-off of the Midi Fighter Pro (thank you DJTT for being such a great source of inspiration), and the Teensy++ micro-controller [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[79,112,113,32],"tags":[95,141,140,123,124,137,134,94,139,233,131],"class_list":["post-621","post","type-post","status-publish","format-standard","hentry","category-arduino","category-controllers","category-music-2","category-technology","tag-ableton","tag-arcade","tag-arcade-warrior","tag-controller","tag-controllerism","tag-dj-techtools","tag-djtt","tag-midi","tag-midi-fighter","tag-teensy","tag-traktor"],"_links":{"self":[{"href":"https:\/\/tomashg.com\/index.php?rest_route=\/wp\/v2\/posts\/621","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tomashg.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tomashg.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tomashg.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tomashg.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=621"}],"version-history":[{"count":17,"href":"https:\/\/tomashg.com\/index.php?rest_route=\/wp\/v2\/posts\/621\/revisions"}],"predecessor-version":[{"id":1349,"href":"https:\/\/tomashg.com\/index.php?rest_route=\/wp\/v2\/posts\/621\/revisions\/1349"}],"wp:attachment":[{"href":"https:\/\/tomashg.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tomashg.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tomashg.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}