{"id":14732,"date":"2016-06-30T10:00:17","date_gmt":"2016-06-30T17:00:17","guid":{"rendered":"https:\/\/blog.digilentinc.com\/?p=14732"},"modified":"2025-06-02T02:31:48","modified_gmt":"2025-06-02T09:31:48","slug":"the-claw-game-is-getting-an-upgrade","status":"publish","type":"post","link":"https:\/\/digilent.com\/blog\/the-claw-game-is-getting-an-upgrade\/","title":{"rendered":"The Claw Game is Getting an Upgrade"},"content":{"rendered":"<p>Now that the<a href=\"http:\/\/www.instructables.com\/id\/State-Machine-Visualization-for-the-Claw-Game\/\"> Claw Game <\/a>is back to a fully operating state, it is time to make some improvements. The two additions described here are to help draw in more players with flashy visuals and feedback.<\/p>\n<h5>State Machine Visualizer<\/h5>\n<p>It is always good to know what your hardware design is doing when a problem arises, however State Machines are especially hard to debug. To assist in the debugging of the state machine on the <a href=\"https:\/\/digilent.com\/shop\/basys-3-artix-7-fpga-trainer-board-recommended-for-introductory-users\/\">Basys 3<\/a>, state codes are now published to the USB port for use by any computer program for interpretation. Normally, I would write a small python program to read the serial port and print them to the console:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-14811\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/serialReader-600x303.png\" alt=\"serialReader\" width=\"600\" height=\"303\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/serialReader-600x303.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/serialReader.png 677w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>But why not make a visualization tool for displaying the states during normal operation? In comes <a href=\"https:\/\/digilent.com\/shop\/labview-home-bundle\/\">LabVIEW<\/a> to make a GUI! Using a boolean indicator and some labels for each of the possible states, the diagram is reconstructed. The serial signal is then fed into some logic to trigger the appropriate indicator for the received state code.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-14847\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/ClawGameUartp-600x463.png\" alt=\"Claw Game LabVIEW State Machine\" width=\"600\" height=\"463\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/ClawGameUartp-600x463.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/ClawGameUartp-768x592.png 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/ClawGameUartp-1024x789.png 1024w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/ClawGameUartp-800x617.png 800w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/ClawGameUartp.png 1152w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><a href=\"https:\/\/digilent.com\/shop\/labview-home-bundle\/\">LabVIEW<\/a> is a great tool for quickly creating complex graphical interfaces, as can be seen in the image above. For more information see this <a href=\"http:\/\/www.instructables.com\/id\/State-Machine-Visualization-for-the-Claw-Game\/\">Instructable<\/a> on the project.<\/p>\n<h5>LEDS!<\/h5>\n<p>No project is complete without excessive numbers of LEDs, and the Claw Game has been lacking in this\u00a0department. To remedy this shortcoming, an\u00a0<a href=\"https:\/\/digilent.com\/shop\/arty-board-artix-7-fpga-development-board-for-makers-and-hobbyists\/\">Arty<\/a> and WS2812 LED strips come in handy. Using a MicroBlaze processor on the <a href=\"https:\/\/digilent.com\/shop\/arty-board-artix-7-fpga-development-board-for-makers-and-hobbyists\/\">Arty<\/a>, multiple patterns can be programmed and cycled through. Another benefit of using MicroBlaze is that the Vivado bitstream only needs to be generated once so this is a plus for slower computers. For a more detailed tutorial on adding LEDs to your project with the <a href=\"https:\/\/digilent.com\/shop\/arty-board-artix-7-fpga-development-board-for-makers-and-hobbyists\/\">Arty<\/a>,\u00a0see my <a href=\"http:\/\/www.instructables.com\/id\/Adding-LEDs-to-the-Claw-Game\/\">Instructable<\/a>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-14819\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/strip-449x600.jpg\" alt=\"Arty With LED Strip\" width=\"449\" height=\"600\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/strip-449x600.jpg 449w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/strip.jpg 748w\" sizes=\"auto, (max-width: 449px) 100vw, 449px\" \/><\/p>\n<p>If you have anything that you would add to the Claw Game, let us know in the comments below!<\/p>\n<p>Additionally the illustrious claw game\u00a0was one of the awesome demos featured at our booth at <a href=\"https:\/\/www.asee.org\/conferences-and-events\/conferences\">ASEE <\/a>this year, so stay tuned for a recap and updates on how it went!<\/p>\n<figure id=\"attachment_15097\" aria-describedby=\"caption-attachment-15097\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-15097 size-medium\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/4f190f75-9473-415b-8cbd-460a7b62218a-600x600.jpg\" alt=\"4f190f75-9473-415b-8cbd-460a7b62218a\" width=\"600\" height=\"600\" data-wp-pid=\"15097\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/4f190f75-9473-415b-8cbd-460a7b62218a-600x600.jpg 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/4f190f75-9473-415b-8cbd-460a7b62218a-150x150.jpg 150w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/4f190f75-9473-415b-8cbd-460a7b62218a-768x768.jpg 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/4f190f75-9473-415b-8cbd-460a7b62218a-800x800.jpg 800w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/4f190f75-9473-415b-8cbd-460a7b62218a-300x300-cropped.jpg 300w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/4f190f75-9473-415b-8cbd-460a7b62218a.jpg 859w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><figcaption id=\"caption-attachment-15097\" class=\"wp-caption-text\">Sneak peek &#8211; This guy was pretty excited about it.<\/figcaption><\/figure>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style6 like-14732 jlk' data-task='like' data-post_id='14732' data-nonce='5286a1c13f' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Like' \/><span class='lc-14732 lc'>0<\/span><\/a><\/div><div class='action-unlike'><a class='unlbg-style6 unlike-14732 jlk' data-task='unlike' data-post_id='14732' data-nonce='5286a1c13f' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Unlike' \/><span class='unlc-14732 unlc'>0<\/span><\/a><\/div><\/div> <div class='status-14732 status align-left'>Be the 1st to vote.<\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>The Claw Game is back&#8230; and better than ever with its flashy new upgrades!<\/p>\n","protected":false},"author":43,"featured_media":15097,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4327,1561],"tags":[],"ppma_author":[4494],"class_list":["post-14732","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-projects","category-applications"],"jetpack_featured_media_url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/4f190f75-9473-415b-8cbd-460a7b62218a.jpg","jetpack_sharing_enabled":true,"authors":[{"term_id":4494,"user_id":43,"is_guest":0,"slug":"bkallaher","display_name":"Brandon Kallaher","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/b6927b72ef9c9b76b651dd857b9f26c4cca49d22768de51eaf494d3277e34c6f?s=96&d=mm&r=g","1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":"","9":"","10":""}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/14732","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/users\/43"}],"replies":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/comments?post=14732"}],"version-history":[{"count":1,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/14732\/revisions"}],"predecessor-version":[{"id":31588,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/14732\/revisions\/31588"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media\/15097"}],"wp:attachment":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media?parent=14732"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/categories?post=14732"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/tags?post=14732"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=14732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}