{"id":16776,"date":"2016-11-08T10:00:57","date_gmt":"2016-11-08T18:00:57","guid":{"rendered":"https:\/\/blog.digilentinc.com\/?p=16776"},"modified":"2021-06-11T11:04:17","modified_gmt":"2021-06-11T18:04:17","slug":"diy-makey-makey-using-labview-and-a-wf32","status":"publish","type":"post","link":"https:\/\/digilent.com\/blog\/diy-makey-makey-using-labview-and-a-wf32\/","title":{"rendered":"DIY Makey Makey using LabVIEW and a WF32"},"content":{"rendered":"<p>Recently I got a chance to play around with a &#8220;<a href=\"http:\/\/makeymakey.com\">Makey Makey<\/a>&#8220;. If you have never heard of a Makey Makey it is an invention kit that tricks your computer into thinking that almost anything is a keyboard. This\u00a0allows you to hook up all kinds of fun things as an input. After a few hours of attaching gator clips to everything on my desk, I started to see the potential of using this type of device with LabVIEW, you would be able to quickly create a physical interface for a VI. I decided to try and recreate the functionality of the Makey Makey using a\u00a0<a href=\"https:\/\/digilent.com\/shop\/chipkit-wf32-wifi-enabled-microntroller-board-with-uno-r3-headers\/\">WF32<\/a>\u00a0and\u00a0<a href=\"https:\/\/digilent.com\/shop\/labview-home-bundle\/\" target=\"_blank\" rel=\"noopener\">LabVIEW<\/a>.<\/p>\n<div class=\"jetpack-video-wrapper\"><iframe loading=\"lazy\" width=\"735\" height=\"413\" src=\"https:\/\/www.youtube.com\/embed\/rfQqh7iCcOU?feature=oembed\" frameborder=\"0\" allow=\"autoplay; encrypted-media\" allowfullscreen><\/iframe><\/div>\n<p>The picture below from the <a href=\"https:\/\/learn.sparkfun.com\/tutorials\/makey-makey-quickstart-guide\">Sparkfun <\/a>website\u00a0shows the\u00a0simple top side of the Makey Makey.\u00a0When you flip the board over, you\u2019ve got access to 12 more keys: W, A, S, D, F, and G on the keyboard side, and up\/down\/left\/right mouse movement and left\/right clicks on the mouse side.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/learn.sparkfun.com\/tutorials\/makey-makey-quickstart-guide\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-17307 alignleft\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/10\/52e943cdce395f42108b4569-600x309.png\" alt=\"52e943cdce395f42108b4569\" width=\"600\" height=\"309\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/10\/52e943cdce395f42108b4569-600x309.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/10\/52e943cdce395f42108b4569-768x396.png 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/10\/52e943cdce395f42108b4569-1024x527.png 1024w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/10\/52e943cdce395f42108b4569-800x412.png 800w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/10\/52e943cdce395f42108b4569.png 1328w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>I used a breadboard and the analog inputs of the\u00a0<a href=\"https:\/\/digilent.com\/shop\/chipkit-wf32-wifi-enabled-microntroller-board-with-uno-r3-headers\/\">WF32<\/a>\u00a0to recreate the functionality of the Makey Makey. This allows you to turn 12 everyday objects into touchpads.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-17213\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/10\/Screen-Shot-2016-10-14-at-11.38.44-AM-600x448.png\" alt=\"screen-shot-2016-10-14-at-11-38-44-am\" width=\"600\" height=\"448\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/10\/Screen-Shot-2016-10-14-at-11.38.44-AM-600x448.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/10\/Screen-Shot-2016-10-14-at-11.38.44-AM-768x574.png 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/10\/Screen-Shot-2016-10-14-at-11.38.44-AM.png 798w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>This circuit works as a voltage divider (simple drawing shown at the bottom of the picture above), with one of the resistors (R1) being the 2 1M\u03a9 resistors in series and the second\u00a0resistor (R2) is the resistance of your body. The switch shown above is closed when you complete the circuit.\u00a0Let&#8217;s\u00a0say you hooked the gator clip to a\u00a0banana\u00a0when you touch the banana you are closing the switch and lowering the voltage read by the analog in of the\u00a0<a href=\"https:\/\/digilent.com\/shop\/search.php?Search=&amp;search_query=wf32\">WF32<\/a>\u00a0(Vo).<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-17329\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/10\/Screen-Shot-2016-10-25-at-12.20.13-PM-600x330.png\" alt=\"screen-shot-2016-10-25-at-12-20-13-pm\" width=\"600\" height=\"330\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/10\/Screen-Shot-2016-10-25-at-12.20.13-PM-600x330.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/10\/Screen-Shot-2016-10-25-at-12.20.13-PM-768x422.png 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/10\/Screen-Shot-2016-10-25-at-12.20.13-PM-1024x563.png 1024w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/10\/Screen-Shot-2016-10-25-at-12.20.13-PM-800x440.png 800w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/10\/Screen-Shot-2016-10-25-at-12.20.13-PM.png 1209w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>My <a href=\"https:\/\/digilent.com\/shop\/labview-home-bundle\/\">LabVIEW <\/a>VI allows you to assign specific keyboard and mouse commands to each analog input.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-17348\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/10\/LabVIEW__Makey__Makeyp-600x358.png\" alt=\"labview__makey__makeyp\" width=\"600\" height=\"358\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/10\/LabVIEW__Makey__Makeyp-600x358.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/10\/LabVIEW__Makey__Makeyp-768x458.png 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/10\/LabVIEW__Makey__Makeyp-800x477.png 800w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/10\/LabVIEW__Makey__Makeyp.png 1011w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Below you can see the full list of all possible keyboard and mouse options that you can assign.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-17431\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/10\/Screen-Shot-2016-10-28-at-12.05.35-PM-600x476.png\" alt=\"screen-shot-2016-10-28-at-12-05-35-pm\" width=\"600\" height=\"476\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/10\/Screen-Shot-2016-10-28-at-12.05.35-PM-600x476.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/10\/Screen-Shot-2016-10-28-at-12.05.35-PM-768x610.png 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/10\/Screen-Shot-2016-10-28-at-12.05.35-PM-800x635.png 800w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/10\/Screen-Shot-2016-10-28-at-12.05.35-PM.png 902w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Thank you for reading my blog post, and make sure to check out my\u00a0<a href=\"http:\/\/www.instructables.com\/id\/DIY-Makey-Makey-Using-LabVIEW-and-a-WF32\/\">Instructable<\/a>\u00a0where I give detailed step by step instructions for this project. If you are interested in making this yourself but don&#8217;t have the right supplies you can purchase the\u00a0<a href=\"https:\/\/digilent.com\/shop\/labview-physical-computing-kit-with-chipkit-wf32\/\">LabVIEW physical computing kit with chipKIT WF32<\/a>. This kit includes a copy of\u00a0<a href=\"https:\/\/digilent.com\/shop\/labview-home-bundle\/\">LabVIEW 2014 home edition<\/a>, a\u00a0<a href=\"https:\/\/digilent.com\/shop\/chipkit-wf32-wifi-enabled-microntroller-board-with-uno-r3-headers\/\">WF32<\/a>, and everything you will need to run\u00a0<a href=\"https:\/\/www.labviewmakerhub.com\/doku.php?id=learn:tutorials:libraries:linx:3-0:beaglebone-black-setup\">LINX 3.0<\/a>\u00a0and start making projects. Also make sure to check out the\u00a0<a href=\"http:\/\/makeymakey.com\">Makey Makey<\/a>, which is sure to provide hours of entertainment. Please comment with any questions or comments you may have.<\/p>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style6 like-16776 jlk' data-task='like' data-post_id='16776' 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-16776 lc'>0<\/span><\/a><\/div><div class='action-unlike'><a class='unlbg-style6 unlike-16776 jlk' data-task='unlike' data-post_id='16776' 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-16776 unlc'>0<\/span><\/a><\/div><\/div> <div class='status-16776 status align-left'>Be the 1st to vote.<\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>Austin teaches how to replicate his homemade Makey Makey, which turns anything conductive into your computer&#8217;s keyboard.<\/p>\n","protected":false},"author":42,"featured_media":17214,"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,4323,1561],"tags":[],"ppma_author":[4493],"class_list":["post-16776","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-projects","category-software","category-applications"],"jetpack_featured_media_url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/10\/IMG_8374.jpg","jetpack_sharing_enabled":true,"authors":[{"term_id":4493,"user_id":42,"is_guest":0,"slug":"astanton","display_name":"Austin Stanton","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/0cc9db2caf6344c8f78ea46c21570f33a954c45596addf479125043e52431de0?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\/16776","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\/42"}],"replies":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/comments?post=16776"}],"version-history":[{"count":0,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/16776\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media\/17214"}],"wp:attachment":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media?parent=16776"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/categories?post=16776"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/tags?post=16776"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=16776"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}