{"id":2188,"date":"2014-09-08T09:00:49","date_gmt":"2014-09-08T16:00:49","guid":{"rendered":"https:\/\/blog.digilentinc.com\/?p=2188"},"modified":"2016-01-28T10:30:12","modified_gmt":"2016-01-28T18:30:12","slug":"digilent-pmods-digital-to-analog-converters","status":"publish","type":"post","link":"https:\/\/digilent.com\/blog\/digilent-pmods-digital-to-analog-converters\/","title":{"rendered":"Digilent Pmods &#8211; Digital-to-Analog Converters"},"content":{"rendered":"<p>Welcome back to the Digilent Blog!<\/p>\n<p>As we continue on with our Pmod series, we will highlight some of the different types of <a title=\"Digilent Pmods \u2013 an Introduction\" href=\"https:\/\/digilent.com\/blog\/index.php\/digilent-pmods-an-introduction\/\" target=\"_blank\">Pmods<\/a> that Digilent offers. Previously, we had\u00a0the chance to take a look at the <a title=\"History of the PmodLS1\" href=\"https:\/\/digilent.com\/blog\/index.php\/history-of-the-pmodls1\/\" target=\"_blank\">LS1<\/a>, which is\u00a0a great Pmod to use with line-following robots such as <a title=\"Susan the Line-Following Pig\" href=\"https:\/\/digilent.com\/blog\/index.php\/susan-the-line-following-pig\/\" target=\"_blank\">Susan<\/a>. Today, we&#8217;ll take a look at five of the digital-to-analog converter (DAC) Pmods. Four of them are conveniently named DA1, DA2, DA3, and DA4, and the last one is a R-2R circuit.<\/p>\n<p>But before we get into the Pmods themselves, let&#8217;s ask (and answer) a more important question: why do we care about or want these Pmods in the first place?<\/p>\n<p>DACs, not surprisingly, convert a digital signal into an analog signal, such as a voltage. This voltage can then be used to drive an audio amplifier, which can in turn drive a speaker. In fact, virtually all electronic components today that produce sound use a DAC, from CDs to MP3 players to the giant speakers that are used in concerts. In the past, DACs were commonly\u00a0used to send analog signals to a video display, but they\u00a0and their VGA ports have been slowly phasing out in favor of DVI and HDMI connectors, which use purely digital signals to communicate with the monitor. The reason for this is that digital signals do not lose any quality, where analog signals (after being converted from digital signals) lose some of their quality and generally cannot support as high of a display resolution as digital signals.<\/p>\n<p>&nbsp;<\/p>\n<figure style=\"width: 800px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/3\/34\/Expanium.jpg\/800px-Expanium.jpg\" alt=\"\" width=\"800\" height=\"600\" \/><figcaption class=\"wp-caption-text\">Both CD and MP3 players use a DAC to get the speakers to produce sound. Public domain image from <a href=\"https:\/\/en.wikipedia.org\/wiki\/Portable_media_player#Typical_features\" target=\"_blank\">this Wikipedia page<\/a>.<\/figcaption><\/figure>\n<p>Do not think that this means DAC and analog signals are entirely obsolete for video displays, though.\u00a0There are still a few computers that have VGA connections to send analog signals, as well as a few monitors that have integrated RAMDACs (digital-to-analog converters with a small amount of RAM available to them), but even those are being phased out in favor of using transition-minimized differential signaling (<a title=\"Wikipedia article on TMDS\" href=\"http:\/\/en.wikipedia.org\/wiki\/Transition_Minimized_Differential_Signaling\" target=\"_blank\">TMDS<\/a>).<\/p>\n<p>There are a variety of applications such as audio, motors, and other components that require a voltage signal in order to be able to operate. However, each component needs a different level of precision (or resolution) to work ideally. On the digital side, this precision is given in the number of bits that are able to be converted by the DAC. This is because the voltage level that is output by the DAC is limited between logic high and logic low voltage levels given by the digital signals. So, the more bits we are able to convert, the more &#8220;steps&#8221; or increments that we are able to divide our analog output into.<\/p>\n<p>So where do Digilent&#8217;s Pmods fit into all of this? Digilent has several different Pmods that offer generic DACs that are not limited to specific applications such as audio (although sound is a very useful thing to have).<\/p>\n<p>The <a title=\"Digilent's Pmod DA1\" href=\"https:\/\/digilent.com\/blog\/Products\/Detail.cfm?NavPath=2,401,501&amp;Prod=PMOD-DA1\" target=\"_blank\">DA1<\/a> is able to take two different 8-bit digital inputs and give two separate outputs for each input, giving a total of four analog outputs.<\/p>\n<figure id=\"attachment_12220\" aria-describedby=\"caption-attachment-12220\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-12220\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/09\/PmodDA1-600x350.png\" alt=\"Digilent's PmodDA1\" width=\"600\" height=\"350\" \/><figcaption id=\"caption-attachment-12220\" class=\"wp-caption-text\">Digilent&#8217;s PmodDA1<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>Pmod <a title=\"Digilent's Pmod DA2\" href=\"https:\/\/digilent.com\/blog\/Products\/Detail.cfm?NavPath=2,401,487&amp;Prod=PMOD-DA2\" target=\"_blank\">DA2<\/a> can receive two 12-bit signals and convert each one into their own analog output, whereas the <a title=\"Digilent's Pmod DA3\" href=\"https:\/\/digilent.com\/blog\/Products\/Detail.cfm?NavPath=2,401,1103&amp;Prod=PMOD-DA3\" target=\"_blank\">DA3<\/a> only has one 16-bit input, but this input offers a high-resolution analog output through an SMA connector.<\/p>\n<figure id=\"attachment_12221\" aria-describedby=\"caption-attachment-12221\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-12221\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/09\/PmodDA2-600x368.png\" alt=\"Digilent's PmodDA2.\" width=\"600\" height=\"368\" \/><figcaption id=\"caption-attachment-12221\" class=\"wp-caption-text\">Digilent&#8217;s PmodDA2.<\/figcaption><\/figure>\n<figure id=\"attachment_12222\" aria-describedby=\"caption-attachment-12222\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-12222\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/09\/PmodDA3-600x451.png\" alt=\"Digilent's PmodDA3.\" width=\"600\" height=\"451\" \/><figcaption id=\"caption-attachment-12222\" class=\"wp-caption-text\">Digilent&#8217;s PmodDA3.<\/figcaption><\/figure>\n<p>The <a title=\"Digilent's Pmod DA4\" href=\"https:\/\/digilent.com\/blog\/Products\/Detail.cfm?NavPath=2,401,1091&amp;Prod=PMOD-DA4\" target=\"_blank\">DA4<\/a> is one of the most versatile DACs that Digilent offers; although it only has one input, there are eight 12-bit analog outputs that can either be addressed individually or simultaneously, allowing you to drive multiple components off of a single DAC!<\/p>\n<figure id=\"attachment_2192\" aria-describedby=\"caption-attachment-2192\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/PmodDA4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2192\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/PmodDA4.png\" alt=\"Digilent's Pmod DA4\" width=\"600\" height=\"463\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/PmodDA4.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/PmodDA4-300x231.png 300w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/PmodDA4-225x173.png 225w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><figcaption id=\"caption-attachment-2192\" class=\"wp-caption-text\">Digilent&#8217;s Pmod DA4.<\/figcaption><\/figure>\n<p>For educational purposes, there is also an <a title=\"Digilent's Pmod R2R\" href=\"https:\/\/digilent.com\/blog\/Products\/Detail.cfm?NavPath=2,401,615&amp;Prod=PMOD-R2R\" target=\"_blank\">R2R<\/a> Pmod to help show people new to electrical engineering and similar fields how the early DACs worked at a fundamental level.<\/p>\n<figure id=\"attachment_2193\" aria-describedby=\"caption-attachment-2193\" style=\"width: 400px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/PmodR2R.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2193\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/PmodR2R.jpg\" alt=\"Digilent's Pmod R2R\" width=\"400\" height=\"219\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/PmodR2R.jpg 400w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/PmodR2R-300x164.jpg 300w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/PmodR2R-225x123.jpg 225w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/a><figcaption id=\"caption-attachment-2193\" class=\"wp-caption-text\">Digilent&#8217;s Pmod R2R.<\/figcaption><\/figure>\n<p>But perhaps you need DACs that are a little more precisely designed, like audio amplifier DACs. Then Digilent has the Pmod for you! Keep checking back in to the Digilent Blog to find out!<\/p>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style6 like-2188 jlk' data-task='like' data-post_id='2188' data-nonce='d8c4d58d14' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Like' \/><span class='lc-2188 lc'>0<\/span><\/a><\/div><div class='action-unlike'><a class='unlbg-style6 unlike-2188 jlk' data-task='unlike' data-post_id='2188' data-nonce='d8c4d58d14' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Unlike' \/><span class='unlc-2188 unlc'>0<\/span><\/a><\/div><\/div> <div class='status-2188 status align-left'>Be the 1st to vote.<\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>Previously, we had the chance to take a look at the LS1, which is a great Pmod to use with line-following robots such as Susan. Today, we&#8217;ll take a look at five of the digital-to-analog converter (DAC) Pmods. Four of them are conveniently named DA1, DA2, DA3, and DA4, and the last one is a R-2R circuit.<\/p>\n","protected":false},"author":17,"featured_media":2192,"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":[38],"tags":[],"ppma_author":[4469],"class_list":["post-2188","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-expansion-modules"],"jetpack_featured_media_url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/PmodDA4.png","jetpack_sharing_enabled":true,"authors":[{"term_id":4469,"user_id":17,"is_guest":0,"slug":"jamescolvin","display_name":"James Colvin","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/8aa85f7d11711acc7e571e1ed26c901b614a7064a2e15e522f54d9f26792ea9e?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\/2188","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\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/comments?post=2188"}],"version-history":[{"count":0,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/2188\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media\/2192"}],"wp:attachment":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media?parent=2188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/categories?post=2188"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/tags?post=2188"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=2188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}