{"id":1302,"date":"2015-07-18T03:04:54","date_gmt":"2015-07-17T13:04:54","guid":{"rendered":"http:\/\/commons.pratt.edu\/open-source\/?p=785"},"modified":"2015-07-18T03:04:54","modified_gmt":"2015-07-17T13:04:54","slug":"usb-coin-drop-mech-for-ardiuno","status":"publish","type":"post","link":"https:\/\/www.kornequipped.com\/blog\/?p=1302","title":{"rendered":"USB Coin Drop Mech for Ardiuno"},"content":{"rendered":"\n<p>I pulled this coin mech from an Asteroids cabinet I converted to Mame.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/es.pratt.edu\/Commons\/Images\/arduino\/coindrop\/canvas1.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>it looks daunting with all these wires but its really simple.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/es.pratt.edu\/Commons\/Images\/arduino\/coindrop\/canvas2.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>Most of that wiring is lighting and tamper switches. there are two micro-switches that actually detect the coins. there are also two counters that keep track of how many coins have been collected. About 69,000 Quarters totaling over $17,000&nbsp; have been through here&#8230;..<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/es.pratt.edu\/Commons\/Images\/arduino\/coindrop\/canvas3.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>An Arduino Leonardo will make this Mame compatible&#8230;<\/p>\n\n\n\n<p>I may just save this one as a spare for my Techmo Cabinet Rebuild and build the Arduino controller with these generic quarter mech&#8217;s. They will work nice in a DWjukebox project too.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/es.pratt.edu\/Commons\/Images\/arduino\/coindrop\/canvas4.png\" alt=\"\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/es.pratt.edu\/Commons\/Images\/arduino\/coindrop\/canvas5.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>Here&#8217;s all there is to the circuit. A Leonardo or Micro and a 4.7K pullup resistor. The computer sees it as&nbsp; a USB keyboard and every time a quarter is detected it sends the keycode for the insert key which , by default in DWJukebox, is the quarter signal.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/es.pratt.edu\/Commons\/Images\/arduino\/coindrop\/canvas6.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>The code is not much harder&#8230;..<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/es.pratt.edu\/Commons\/Images\/arduino\/coindrop\/Sketch.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>Here&#8217;s the sketch if you want to try it&#8230;.<\/p>\n\n\n\n<p><a href=\"https:\/\/es.pratt.edu\/Commons\/Images\/arduino\/coindrop\/Leonardo_coin_drop.ino\">Leonardo_coin_drop.ino<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I pulled this coin mech from an Asteroids cabinet I converted to Mame. it looks daunting with all these wires but its really simple. Most of that wiring is lighting and tamper switches. there are two micro-switches that actually detect the coins. there are also two counters that keep track of how many coins have [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-1302","post","type-post","status-publish","format-standard","hentry","category-arduino"],"_links":{"self":[{"href":"https:\/\/www.kornequipped.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1302","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kornequipped.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kornequipped.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kornequipped.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kornequipped.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1302"}],"version-history":[{"count":0,"href":"https:\/\/www.kornequipped.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1302\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.kornequipped.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1302"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kornequipped.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1302"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kornequipped.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}