{"id":7916,"date":"2015-07-23T20:00:17","date_gmt":"2015-07-24T03:00:17","guid":{"rendered":"https:\/\/blog.digilentinc.com\/?p=7916"},"modified":"2021-06-16T16:11:58","modified_gmt":"2021-06-16T23:11:58","slug":"creating-jousting-robots-with-labview","status":"publish","type":"post","link":"https:\/\/digilent.com\/blog\/creating-jousting-robots-with-labview\/","title":{"rendered":"Building the Jousting Robots"},"content":{"rendered":"<p>LabVIEW is a powerful tool that allows users to visually program. The <a href=\"https:\/\/digilent.com\/blog\/Products\/Detail.cfm?NavPath=2,892,1193&amp;Prod=CHIPKIT-WF32\">chipKIT WF32<\/a> board has WiFi capabilities and is able to interact with LabVIEW! We&#8217;ve created a project that uses LabVIEW to control two WF32 boards, <em>the<\/em> <em>jousting robots<\/em>.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/digilent.com\/blog\/index.php\/creating-jousting-robots-with-labview\/f1y57sfibuxm905-large\/\" rel=\"attachment wp-att-8692\"><img loading=\"lazy\" decoding=\"async\" class=\" size-medium wp-image-8692 aligncenter\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/06\/F1Y57SFIBUXM905.LARGE_-600x448.jpg\" alt=\"F1Y57SFIBUXM905.LARGE\" width=\"600\" height=\"448\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/06\/F1Y57SFIBUXM905.LARGE_-600x448.jpg 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/06\/F1Y57SFIBUXM905.LARGE_.jpg 1024w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/06\/F1Y57SFIBUXM905.LARGE_-225x168.jpg 225w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/06\/F1Y57SFIBUXM905.LARGE_-800x598.jpg 800w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Powered by LabVIEW and the WF32, the Jousting Robots are not only fun, but also makes use of our extensive Pmod library. The Jousting Robots use the <a href=\"https:\/\/digilent.com\/blog\/Products\/Detail.cfm?Prod=PMOD-JSTK\">PmodJSTK <\/a>for human interactivity and the <a href=\"https:\/\/digilent.com\/blog\/Products\/Detail.cfm?Prod=PMOD-ACL\">PmodACL <\/a>to reset each &#8220;round&#8221; of jousting. We&#8217;re going to go over the construction and basic design of the Jousting Robots. Before we begin, all the base parts are open-source pieces. You can check out the Instructable to build a Jousting Robot <a href=\"http:\/\/www.instructables.com\/id\/Building-Jousting-Robots\/\">here<\/a>!<\/p>\n<p><a href=\"https:\/\/digilent.com\/blog\/index.php\/creating-jousting-robots-with-labview\/servomotors\/\" rel=\"attachment wp-att-8694\"><img loading=\"lazy\" decoding=\"async\" class=\" size-medium wp-image-8694 aligncenter\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/06\/servomotors-448x600.jpg\" alt=\"servomotors\" width=\"448\" height=\"600\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/06\/servomotors-448x600.jpg 448w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/06\/servomotors.jpg 764w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/06\/servomotors-168x225.jpg 168w\" sizes=\"auto, (max-width: 448px) 100vw, 448px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>We&#8217;re using the <a href=\"https:\/\/digilent.com\/blog\/Products\/Detail.cfm?NavPath=2,403,635&amp;Prod=GWSSERVO\">GWS Servo Kit<\/a>\u00a0to move the robot. The servo motor&#8217;s power might be slightly wasted on just a wheel, but its ease of use and adaptability make it a great choice for the wheels.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/digilent.com\/blog\/index.php\/creating-jousting-robots-with-labview\/force-sensor\/\" rel=\"attachment wp-att-8697\"><img loading=\"lazy\" decoding=\"async\" class=\" size-medium wp-image-8697 aligncenter\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/06\/force-sensor-600x448.jpg\" alt=\"force sensor\" width=\"600\" height=\"448\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/06\/force-sensor-600x448.jpg 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/06\/force-sensor.jpg 1024w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/06\/force-sensor-225x168.jpg 225w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/06\/force-sensor-800x598.jpg 800w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>The whole point of jousting is to hit the other person&#8217;s shield. This brings in my personal favorite part of this project, <a href=\"https:\/\/digilent.com\/blog\/Products\/Detail.cfm?NavPath=2,892,1233&amp;Prod=CHIPKIT-STARTERKIT\">the force sensor<\/a>. Force is (in layman&#8217;s terms) how much something is <em>pushed<\/em> or <em>pulled<\/em>. The force sensor is mounted on the shield, meaning it only gets activated when there is a pushing force on the open side of the sensor. This <em>pushing force<\/em> is, of course, the lance from the opposing robot. That&#8217;s what is really\u00a0exciting about the project &#8212; it has two robots interacting with each other! This is a simple example of robots interacting, but even then it&#8217;s still pretty fun.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/digilent.com\/blog\/index.php\/creating-jousting-robots-with-labview\/jstk\/\" rel=\"attachment wp-att-8702\"><img loading=\"lazy\" decoding=\"async\" class=\" size-medium wp-image-8702 aligncenter\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/06\/jstk-600x448.jpg\" alt=\"jstk\" width=\"600\" height=\"448\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/06\/jstk-600x448.jpg 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/06\/jstk.jpg 1024w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/06\/jstk-225x168.jpg 225w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/06\/jstk-800x598.jpg 800w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Another thing that makes the jousting robots cool is the interactivity between the robots and the users. The WF32 is, of course, Pmod\u00a0capable. We use two Pmods in particular, the PmodJSTK and the PMODACL. With the PmodJSTK (joystick) on the Jousting Robots, users can control the angle of the lance and &#8220;ready&#8221; the robot for jousting. The PmodACL (an accelerometer) is used after the two robots have jousted. After the two robots have jousted, users can simply lift the robots up and make them face\u00a0each other again, and the robots will be ready for another round. This is done by checking the acceleration of the robots in the up and down direction.<\/p>\n<p>&nbsp;<\/p>\n<p>The things mentioned here are just a little bit of what makes the jousting robots awesome! You can check out Dharsan&#8217;s <a href=\"https:\/\/digilent.com\/blog\/index.php\/jousting-robots-wiring-and-labview-code\/\">blog post<\/a> in which he goes over using LabVIEW and wiring the robots.<\/p>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style6 like-7916 jlk' data-task='like' data-post_id='7916' data-nonce='1853a0751a' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Like' \/><span class='lc-7916 lc'>+1<\/span><\/a><\/div><div class='action-unlike'><a class='unlbg-style6 unlike-7916 jlk' data-task='unlike' data-post_id='7916' data-nonce='1853a0751a' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Unlike' \/><span class='unlc-7916 unlc'>0<\/span><\/a><\/div><\/div> <div class='status-7916 status align-left'><\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>Whats the only thing cooler than robots equipped with weapons?? TWO robots with weapons. Jousting.<\/p>\n","protected":false},"author":29,"featured_media":8692,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38,4327],"tags":[],"ppma_author":[4478],"class_list":["post-7916","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-expansion-modules","category-projects"],"jetpack_featured_media_url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/06\/F1Y57SFIBUXM905.LARGE_.jpg","authors":[{"term_id":4478,"user_id":29,"is_guest":0,"slug":"josh-woldstad","display_name":"Josh","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/b4b62729a3daba9bb76117db7130e81e?s=96&d=mm&r=g","author_category":"","user_url":"","last_name":"Woldstad","last_name_2":"","first_name":"Josh","first_name_2":"","job_title":"","description":"I love Coding!"}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/7916","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\/29"}],"replies":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/comments?post=7916"}],"version-history":[{"count":0,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/7916\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media\/8692"}],"wp:attachment":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media?parent=7916"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/categories?post=7916"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/tags?post=7916"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=7916"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}