{"id":29898,"date":"2023-05-18T15:37:21","date_gmt":"2023-05-18T22:37:21","guid":{"rendered":"https:\/\/digilent.com\/blog\/?p=29898"},"modified":"2023-06-07T14:44:46","modified_gmt":"2023-06-07T21:44:46","slug":"facilitating-sensor-communication-through-ad2-using-an-expansion-board","status":"publish","type":"post","link":"https:\/\/digilent.com\/blog\/facilitating-sensor-communication-through-ad2-using-an-expansion-board\/","title":{"rendered":"Facilitating Sensor Communication Through AD2 Using an Expansion Board"},"content":{"rendered":"<p><em>This post describes a senior design project that students at North Carolina State University (NCSU) worked on, in which the Analog Discovery 2 (AD2) is equipped with extra features tailored to its typical applications within NCSU\u2019s senior design lab.\u00a0<\/em><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29901\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2023\/05\/ncsu.png\" alt=\"\" width=\"777\" height=\"435\" data-wp-pid=\"29901\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2023\/05\/ncsu.png 777w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2023\/05\/ncsu-600x336.png 600w\" sizes=\"auto, (max-width: 777px) 100vw, 777px\" \/><\/p>\n<p><span data-contrast=\"auto\">Because of the ever increasing popularity of the bring-your-own-device (BYOD) trend, students tend to bring their own laptops and AD2s to the lab. Thus, the goal of this project was to create an add-on module that allows the students to equip their personally-owned devices with the features of lab-owned equipment, allowing them to set up a test bench environment capable of expediting the prototyping process from the comfort of their own devices. The add-on board would allow students to skip the low-level development surrounding a sensor\u2019s implementation and instead evaluate its function straight away to see if it fits their needs, potentially cutting out weeks of R&amp;D. Once a sensor is chosen, the students can focus on their own product, knowing that they have chosen a device that delivers useful data.<\/span><span data-ccp-props=\"{&quot;134245417&quot;:false,&quot;201341983&quot;:0,&quot;335559739&quot;:200,&quot;335559740&quot;:276}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">To deliver the best possible product, a survey was sent out to students and faculty of the ECE department at NCSU. It allowed them to report features they felt were missing from a standalone AD2, among which the top responses were collected and formed into the basis for this project. The key features are: increasing available power, monitoring current, adding 8 additional analog inputs, providing common connectors, and making available a library of WaveForms scripts for common sensors. Additionally, the board was designed physically to be small enough to remain attached to the AD2 within its original case.<\/span><span data-ccp-props=\"{&quot;134245417&quot;:false,&quot;201341983&quot;:0,&quot;335559739&quot;:200,&quot;335559740&quot;:276}\">\u00a0<\/span><\/p>\n<h4><span data-contrast=\"auto\">Available Power Increase<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:200,&quot;335559740&quot;:276}\">\u00a0<\/span><\/h4>\n<p><span data-contrast=\"auto\">The AD2 sources its power from either the USB port it uses to communicate to a host computer, for a total of 0.5\u202fW per channel, or a wall adapter connected via barrel jack, for a total of 2.1\u202fW per channel. The total current output is 700\u202fmA either way and is backed up by overcurrent and overvoltage protection circuitry to prevent damage to the internals of the AD2.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:200,&quot;335559740&quot;:276}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">Any higher level of power must be sourced externally, so the expansion board includes an LM2569 buck converter. Its input range is 3\u202fV to 40\u202fV, with an adjustable output between 1.5 V and 1.5 V less than the input. It is rated for a maximum current of 3\u202fA. With it, higher power devices such as servos, LED strips, or displays can be tested through the WaveForms software.\u00a0<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:200,&quot;335559740&quot;:276}\">\u00a0<\/span><\/p>\n<h4><span data-contrast=\"auto\">Current Monitoring<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:200,&quot;335559740&quot;:276}\">\u00a0<\/span><\/h4>\n<p><span data-contrast=\"auto\">The AD2 can only measure voltages of \u00b150\u202fV via its two scope channels. In order to support current and power monitoring, a shunt resistor\/current sense amplifier (INA190A1IDCKR) and a hall effect sensor (TMCS1108A4UQDR) are included in the expansion board. The shunt resistor\/current sense amplifier is intended to measure currents up to 1.32\u202fmA with a sensitivity of 128\u202fnA while the hall effect measures up to 10.75\u202fA with a sensitivity of 0.8\u202fmA.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:200,&quot;335559740&quot;:276}\">\u00a0<\/span><\/p>\n<h4><span data-contrast=\"auto\">Additional Analog Inputs<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:200,&quot;335559740&quot;:276}\">\u00a0<\/span><\/h4>\n<p><span data-contrast=\"auto\">The AD2\u2019s scope has two differential probe channels operating at up to 100\u202fMS\/s with a 14-bit range. To increase the number of analog inputs, the expansion board contains two 12-bit ADCs (ADS1015IRUGR), usable as four differential probe channels or eight single-ended probe channels. The chips communicate via I\u00b2C and operate between 128\u202fS\/s and 3.3\u202fkS\/s.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:200,&quot;335559740&quot;:276}\">\u00a0<\/span><\/p>\n<h4><span data-contrast=\"auto\">Common Connectors<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:200,&quot;335559740&quot;:276}\">\u00a0<\/span><\/h4>\n<p><span data-contrast=\"auto\">The AD2 uses a 30 pin standard header to provide access to its power, analog, and digital features. To expand upon this 30-pin connection and to increase the ease of communication between common sensors and the AD2, various connectors are placed around the expansion board. These are two BNCs, one Grove connector, one Qwiic connector, and 5 Pmod headers, shown in the expansion board\u2019s function diagram below.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:200,&quot;335559740&quot;:276}\">\u00a0<\/span><\/p>\n<h4><span data-contrast=\"auto\">Waveforms Scripting Libraries<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:200,&quot;335559740&quot;:276}\">\u00a0<\/span><\/h4>\n<p><span data-contrast=\"auto\">Using WaveForms workspaces, \u201cpresets\u201d for various sensors, mainly Pmods, were created and made available to the user. A global readme provides instructions on downloading and setting up a workspace, with sensor-specific details explained within the workspace. In this way, a student can set up and use a sensor with ease, allowing the student to focus on the sensor\u2019s data output and evaluate its usefulness.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:200,&quot;335559740&quot;:276}\">\u00a0<\/span><\/p>\n<h4 aria-level=\"2\"><span data-contrast=\"auto\">Further Reading<\/span><span data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;201341983&quot;:0,&quot;335559738&quot;:360,&quot;335559739&quot;:200,&quot;335559740&quot;:276}\">\u00a0<\/span><\/h4>\n<p><span data-contrast=\"auto\">If you would like to have a more detailed look into the project, please visit the user manual <a href=\"https:\/\/files.digilent.com\/resources\/test-and-measurement\/analog-discovery-2\/analog-discovery-2-functionality-expansion-user-manual.pdf\">here<\/a>.<\/span><\/p>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style6 like-29898 jlk' data-task='like' data-post_id='29898' data-nonce='3c15ebf169' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Like' \/><span class='lc-29898 lc'>+7<\/span><\/a><\/div><div class='action-unlike'><a class='unlbg-style6 unlike-29898 jlk' data-task='unlike' data-post_id='29898' data-nonce='3c15ebf169' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Unlike' \/><span class='unlc-29898 unlc'>0<\/span><\/a><\/div><\/div> <div class='status-29898 status align-left'><\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>This post describes a senior design project that students at North Carolina State University (NCSU) worked on, in which the Analog Discovery 2 (AD2) is equipped with extra features tailored &hellip; <\/p>\n","protected":false},"author":64,"featured_media":29901,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38,4267,35],"tags":[4342,4373,1736,4429,4426,4430,4428,4425,1662,4431,4427,4424],"ppma_author":[4458],"class_list":["post-29898","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-expansion-modules","category-featured","category-fpga","tag-ad2","tag-analog","tag-analog-discovery-2","tag-analog-inputs","tag-byod","tag-common-connectors","tag-current-monitoring","tag-expansion-board","tag-fpga","tag-pmods","tag-power-increase","tag-sensor"],"jetpack_featured_media_url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2023\/05\/ncsu.png","authors":[{"term_id":4458,"user_id":64,"is_guest":0,"slug":"kdokes","display_name":"Kyli Dokes","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/fc7baf2430001248188e564ea9d7d1ae?s=96&d=mm&r=g","author_category":"","user_url":"","last_name":"Dokes","last_name_2":"","first_name":"Kyli","first_name_2":"","job_title":"","description":""}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/29898","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\/64"}],"replies":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/comments?post=29898"}],"version-history":[{"count":7,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/29898\/revisions"}],"predecessor-version":[{"id":29910,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/29898\/revisions\/29910"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media\/29901"}],"wp:attachment":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media?parent=29898"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/categories?post=29898"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/tags?post=29898"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=29898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}