{"id":18450,"date":"2017-01-23T10:00:36","date_gmt":"2017-01-23T18:00:36","guid":{"rendered":"https:\/\/blog.digilentinc.com\/?p=18450"},"modified":"2021-06-11T10:55:52","modified_gmt":"2021-06-11T17:55:52","slug":"getting-the-most-out-of-your-analog-discovery-lab-6","status":"publish","type":"post","link":"https:\/\/digilent.com\/blog\/getting-the-most-out-of-your-analog-discovery-lab-6\/","title":{"rendered":"Getting The Most Out Of Your Analog Discovery: Lab 6"},"content":{"rendered":"<p>Recently I announced that <a href=\"http:\/\/ni.com\">National Instruments<\/a> has released a <a href=\"http:\/\/www.ni.com\/gate\/gb\/GB_EKITCOMPLABSELENG\/US\">set of example labs<\/a> designed to show you how you can get the full use of your <a href=\"https:\/\/digilent.com\/blog\/analogdiscovery2\">Analog Discovery 2<\/a>. If you have since forgotten and want to review the summaries and mission of the seven labs, you can check out the <a href=\"https:\/\/digilent.com\/blog\/getting-the-most-from-the-analog-discovery-2-a-series\/\">original post here<\/a>.<\/p>\n<figure id=\"attachment_18351\" aria-describedby=\"caption-attachment-18351\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.ni.com\/gate\/gb\/GB_EKITCOMPLABSELENG\/US\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-18351 size-medium\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/12\/1-600x311.png\" width=\"600\" height=\"311\" data-wp-pid=\"18351\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/12\/1-600x311.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/12\/1-768x398.png 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/12\/1-1024x531.png 1024w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/12\/1-800x415.png 800w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/12\/1.png 1172w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><figcaption id=\"caption-attachment-18351\" class=\"wp-caption-text\">The table of contents from the 7 free labs.<\/figcaption><\/figure>\n<p>Over the next few weeks I&#8217;ll be covering each lab, the tools it uses, and concepts that can help you teach your students. In my previous post I went over Lab 5:\u00a0Amplitude Modulation and Demodulation. In this post I&#8217;ll be going over Lab 6: UART Serial Communication.<\/p>\n<figure id=\"attachment_18465\" aria-describedby=\"caption-attachment-18465\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.ni.com\/gate\/gb\/GB_EKITCOMPLABSELENG\/US\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-18465 size-medium\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/courses-covered-3-600x386.png\" width=\"600\" height=\"386\" data-wp-pid=\"18465\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/courses-covered-3-600x386.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/courses-covered-3-768x493.png 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/courses-covered-3-1024x658.png 1024w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/courses-covered-3-800x514.png 800w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/courses-covered-3.png 1175w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><figcaption id=\"caption-attachment-18465\" class=\"wp-caption-text\">Lab 6 is designed for a microcontroller or embedded systems course.<\/figcaption><\/figure>\n<p><strong style=\"font-size: 14px;\">Lab 6:\u00a0UART Serial\u00a0<\/strong><strong style=\"font-size: 14px;\">Communication\u00a0<\/strong>is designed to introduce students to serial communication, specifically with the example of UART. Students will learn about different ways to send serial data, the properties of serial UART communication, and see the effect of start bits, stop bits, synchronization bits, and baud rate. By the end of this lab, they will be able to send, receive, and decode a serial signal.<\/p>\n<p>This lab utilizes 1 set of software:\u00a0<a href=\"http:\/\/www.ni.com\/labview\/\">LabVIEW<\/a>.<\/p>\n<p><a href=\"http:\/\/ni.com\/labview\">LabVIEW<\/a> is a development environment design specifically to accelerate the productivity of engineers and scientists. It features a graphical programming syntax that makes it simple to visualize, create, and code engineering systems.<\/p>\n<figure id=\"attachment_18466\" aria-describedby=\"caption-attachment-18466\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.ni.com\/gate\/gb\/GB_EKITCOMPLABSELENG\/US\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-18466 size-medium\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/Tools-used-600x494.png\" width=\"600\" height=\"494\" data-wp-pid=\"18466\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/Tools-used-600x494.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/Tools-used-768x632.png 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/Tools-used-168x137.png 168w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/Tools-used-800x658.png 800w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/Tools-used.png 944w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><figcaption id=\"caption-attachment-18466\" class=\"wp-caption-text\">Lab 6 uses the logic analyzing features of the Analog Discovery 2 to receive and decode UART signals.<\/figcaption><\/figure>\n<p><span style=\"font-size: 14px;\">For this lab students would need:<\/span><\/p>\n<ul>\n<li>An <a href=\"https:\/\/digilent.com\/shop\/analog-discovery-2-100msps-usb-oscilloscope-logic-analyzer-and-variable-power-supply\/\">Analog Discovery 2<\/a><\/li>\n<li><a href=\"https:\/\/digilent.com\/shop\/chipkit-uc32-basic-microcontroller-board-with-uno-r3-headers\/\">Digilent uC32 <\/a>or other LINX supported microcontroller<\/li>\n<li>Jumper wires<\/li>\n<li><a href=\"http:\/\/www.studica.com\/LabVIEW\">LabVIEW 2015<\/a> or Later (available from studica)<\/li>\n<li><a href=\"http:\/\/www.instructables.com\/id\/Analog-Discovery-2-USB-Oscilloscope-LabVIEW\/\">Digilent WaveForms VI<\/a>s (A Free Download)<\/li>\n<li><a href=\"http:\/\/www.ni.com\/gate\/gb\/GB_EVALTLKTLINXLVH\/US\">Digilent LINX<\/a><\/li>\n<\/ul>\n<p>Similar to <a href=\"https:\/\/digilent.com\/blog\/getting-the-most-out-of-your-analog-discovery-lab-5\">Lab 5<\/a>, Lab 6 goes through theory, simulation, and practical analysis.<\/p>\n<p>The lab starts by discussing the theory behind UART communication, and the components that define it&#8217;s behavior.<\/p>\n<p><span style=\"font-size: 14px;\"><a href=\"http:\/\/www.ni.com\/gate\/gb\/GB_EKITCOMPLABSELENG\/US\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-18483 size-medium\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/1-4-600x382.png\" width=\"600\" height=\"382\" data-wp-pid=\"18483\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/1-4-600x382.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/1-4.png 721w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/span><\/p>\n<p>Students are asked to numerically analyze UART signals by adjusting the parameters.<\/p>\n<p><span style=\"font-size: 14px;\"> <a href=\"http:\/\/www.ni.com\/gate\/gb\/GB_EKITCOMPLABSELENG\/US\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-18484 size-medium\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/2-4-600x364.png\" width=\"600\" height=\"364\" data-wp-pid=\"18484\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/2-4-600x364.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/2-4.png 720w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/span><\/p>\n<p>Next, the lab moves onto analysis of real UART signals.<\/p>\n<p><span style=\"font-size: 14px;\"> <a href=\"http:\/\/www.ni.com\/gate\/gb\/GB_EKITCOMPLABSELENG\/US\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-18485 size-medium\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/3-4-460x600.png\" width=\"460\" height=\"600\" data-wp-pid=\"18485\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/3-4-460x600.png 460w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/3-4.png 516w\" sizes=\"auto, (max-width: 460px) 100vw, 460px\" \/><\/a><\/span><\/p>\n<p>Using LabVIEW, students will set up the microcontroller to send a UART signal. That signal will then be received by the Analog Discovery 2.<\/p>\n<p><span style=\"font-size: 14px;\"> <a href=\"http:\/\/www.ni.com\/gate\/gb\/GB_EKITCOMPLABSELENG\/US\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-18486 size-medium\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/4-4-600x298.png\" width=\"600\" height=\"298\" data-wp-pid=\"18486\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/4-4-600x298.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/4-4.png 693w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/span><\/p>\n<p>Students are given a VI to start with, so they can quickly send signals and start analyzing the data.<\/p>\n<p><span style=\"font-size: 14px;\"> <a href=\"http:\/\/www.ni.com\/gate\/gb\/GB_EKITCOMPLABSELENG\/US\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-18487 size-medium\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/5-4-600x344.png\" width=\"600\" height=\"344\" data-wp-pid=\"18487\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/5-4-600x344.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/5-4.png 702w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/span><\/p>\n<p>Next, students are asked to set up a specific UART signal to be sent, and set up the LabVIEW interface to receive and decode that signal.<\/p>\n<p><span style=\"font-size: 14px;\"> <a href=\"http:\/\/www.ni.com\/gate\/gb\/GB_EKITCOMPLABSELENG\/US\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-18488 size-medium\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/6-4-600x396.png\" width=\"600\" height=\"396\" data-wp-pid=\"18488\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/6-4-600x396.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/6-4-214x140.png 214w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/6-4.png 693w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/span><\/p>\n<p>For more advanced students, additional challenges can be provided\u00a0by asking them to decode ASCII character transmission.<\/p>\n<p><span style=\"font-size: 14px;\"> <a href=\"http:\/\/www.ni.com\/gate\/gb\/GB_EKITCOMPLABSELENG\/US\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-18489 size-medium\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/7-4-600x299.png\" width=\"600\" height=\"299\" data-wp-pid=\"18489\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/7-4-600x299.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/7-4.png 710w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/span><\/p>\n<p><span style=\"font-size: 14px;\">Stay tuned to the blog next week for Lab 7, or <\/span><a style=\"font-size: 14px;\" href=\"http:\/\/www.ni.com\/gate\/gb\/GB_EKITCOMPLABSELENG\/US\">download and checkout the labs yourself<\/a><span style=\"font-size: 14px;\">. If you are interested in the tools that the Analog Discovery 2\u00a0has to offer, more information can be found on its <\/span><a style=\"font-size: 14px;\" href=\"https:\/\/digilent.com\/reference\/software\/waveforms\/waveforms-3\/start?redirect=1#newest\">Wiki Page<\/a><span style=\"font-size: 14px;\">.<\/span><\/p>\n<p>&nbsp;<\/p>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style6 like-18450 jlk' data-task='like' data-post_id='18450' data-nonce='f013a4e301' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Like' \/><span class='lc-18450 lc'>0<\/span><\/a><\/div><div class='action-unlike'><a class='unlbg-style6 unlike-18450 jlk' data-task='unlike' data-post_id='18450' data-nonce='f013a4e301' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Unlike' \/><span class='unlc-18450 unlc'>0<\/span><\/a><\/div><\/div> <div class='status-18450 status align-left'>Be the 1st to vote.<\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>Kaitlyn goes over Lab 6: UART Serial Communication!<\/p>\n","protected":false},"author":18,"featured_media":18485,"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":[4323,4312,1563],"tags":[111,1736],"ppma_author":[4466],"class_list":["post-18450","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","category-usb-scopes-analyzers-generators","category-guide","tag-analog-discovery","tag-analog-discovery-2"],"jetpack_featured_media_url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/3-4.png","jetpack_sharing_enabled":true,"authors":[{"term_id":4466,"user_id":18,"is_guest":0,"slug":"kaitlyn","display_name":"Kaitlyn Franz","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/9276021eaa44781ce19f364cfca46ada25e1500769cf4803a095a5bae83c912a?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\/18450","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\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/comments?post=18450"}],"version-history":[{"count":0,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/18450\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media\/18485"}],"wp:attachment":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media?parent=18450"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/categories?post=18450"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/tags?post=18450"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=18450"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}