{"id":26937,"date":"2019-08-14T15:13:04","date_gmt":"2019-08-14T22:13:04","guid":{"rendered":"https:\/\/blog.digilentinc.com\/?p=26937"},"modified":"2020-12-21T11:23:37","modified_gmt":"2020-12-21T19:23:37","slug":"audio-mixer-project-with-the-analog-discovery-studio","status":"publish","type":"post","link":"https:\/\/digilent.com\/blog\/audio-mixer-project-with-the-analog-discovery-studio\/","title":{"rendered":"Audio Mixer Project with the Analog Discovery Studio"},"content":{"rendered":"\n<p>With new products come new project adventures! I naturally gravitate towards experimenting with sounds and audio signals so I wanted to see what the <a href=\"https:\/\/digilent.com\/shop\/analog-discovery-studio-a-portable-circuits-laboratory-for-every-student\/?gclid=Cj0KCQjws7TqBRDgARIsAAHLHP5vmJwIzbr8cSzfsFP-yS_gqTAG7OOhtcVcGOEtvBWxNwyJEX2EDg4aAoCoEALw_wcB\">Analog Discovery Studio<\/a> could do for me given the beefed up power supplies and <a href=\"https:\/\/digilent.com\/shop\/breadboard-canvas\/\">Breadboard Canvas<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"513\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/08\/AnalogDiscoveryStudio-top-600-academic__97119.1557261580.1280.1280.png\" alt=\"\" class=\"wp-image-27402\"\/><figcaption>The Analog Discovery Studio, the Breadboard Canvas, and all of their glory.<br>Academic discounts available!<\/figcaption><\/figure>\n\n\n\n<p>I had a mixer circuit I needed to design for a school project and decided to build it using the <a href=\"https:\/\/digilent.com\/shop\/analog-discovery-studio-a-portable-circuits-laboratory-for-every-student\/?gclid=Cj0KCQjws7TqBRDgARIsAAHLHP5vmJwIzbr8cSzfsFP-yS_gqTAG7OOhtcVcGOEtvBWxNwyJEX2EDg4aAoCoEALw_wcB\">Analog Discovery Studio<\/a>. This circuit needed to use a potentiometer to vary the blend ratio between two input audio signals. I got the idea from my analog design class textbook using a mash-up of an audio pan-pot circuit and a summing amplifier. The audio pan-pot circuit basically split one input signal to two outputs with the split ratio controlled by a potentiometer. I essentially reversed this application such that two input signals would be summed together with a varying ratio based on the potentiometer. After a little simulation time, I confirmed resistor and capacitor values and topology that would perform the analog signal mixing.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"443\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/08\/MixerSchem-1024x443.png\" alt=\"\" class=\"wp-image-27403\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/08\/MixerSchem-1024x443.png 1024w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/08\/MixerSchem-600x259.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/08\/MixerSchem-768x332.png 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/08\/MixerSchem-800x346.png 800w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/08\/MixerSchem.png 1566w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>The mixer circuit schematic and simulation in LTSpice. I simulated a 10k potentiometer by varying the two 5k resistors seen in this schematic. When both are at 5k, this simulates the pot in the middle position. To simulate the pot being turned to either extreme, one resistor would be at 10k and the other at 1ohm.<\/figcaption><\/figure>\n\n\n\n<p>I constructed the mixer circuit first using +5\/-4V power supplies (as that is what my design power supply specs were) to an op-amp (I used a 741 but note that this is not a high-fidelity op-amp) and fed in a 500Hz signal to one input and a 1kHz signal to the other input. Using <a href=\"https:\/\/digilent.com\/shop\/waveforms-previously-waveforms-2015\/\">WaveForms<\/a>, I thought it was super cool to see the two signals blend into each other!<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"853\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/08\/Demo_Mixer-1024x853.jpg\" alt=\"\" class=\"wp-image-27406\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/08\/Demo_Mixer-1024x853.jpg 1024w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/08\/Demo_Mixer-600x500.jpg 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/08\/Demo_Mixer-768x640.jpg 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/08\/Demo_Mixer-800x666.jpg 800w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>A close-up of the mixer circuit demo on the Breadboard Canvas. <br>The blue thing is a vertically mounted potentiometer.<\/figcaption><\/figure>\n\n\n\n<p>Like clockwork, I now wanted to hear my circuit. I threw a speaker on the output and was disappointed to see the beautiful mixing waveform get squashed and distorted. Furthermore, I could barely hear the signals that were coming out. I cranked up the input voltage to about 1V (I was using 500mV and under), the power supply voltages up to +\/-12V (thanks <a href=\"https:\/\/digilent.com\/shop\/analog-discovery-studio-a-portable-circuits-laboratory-for-every-student\/?gclid=Cj0KCQjws7TqBRDgARIsAAHLHP5vmJwIzbr8cSzfsFP-yS_gqTAG7OOhtcVcGOEtvBWxNwyJEX2EDg4aAoCoEALw_wcB\">Analog Discovery Studio<\/a>) and still was disappointed to see a super squished mixing signal and quiet sounds from the speaker. <\/p>\n\n\n\n<figure class=\"wp-block-video\"><video controls src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/08\/mixer_clipping.mp4\"><\/video><figcaption>I captured this waveform after the initial low current problem without the current amplifier to drive the speaker and the clipping seems to be better than it originally was. <\/figcaption><\/figure>\n\n\n\n<p>After some thinking and flipping through my book, I remembered that op-amps don&#8217;t output enough current to properly drive a low impedance speaker on their own. Using a push-pull amplifier technique, I added another op-amp with BJT transistors in the feedback loop to provide a little more amount of current to drive the speaker. The waveform was still a little distorted at higher input voltages but was performing much more smoothly and the speaker was able to produce a more audible sound. That&#8217;s my kind of &#8220;noisy circuit&#8221;.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"512\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/08\/IMG_E3317-1024x512.jpg\" alt=\"\" class=\"wp-image-27413\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/08\/IMG_E3317-1024x512.jpg 1024w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/08\/IMG_E3317-600x300.jpg 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/08\/IMG_E3317-768x384.jpg 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/08\/IMG_E3317-800x400.jpg 800w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>My hand-drawn schematic for the push-pull current amplifier. Input voltage goes into the positive terminal of the op-amp with NPN and PNP transistors in the feedback loop. The bases and emitters of the transistors are connected to each other with the collectors connected to the power supplies for biasing. <\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/08\/Demo_CurrentAmp-1024x768.jpg\" alt=\"\" class=\"wp-image-27408\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/08\/Demo_CurrentAmp-1024x768.jpg 1024w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/08\/Demo_CurrentAmp-600x450.jpg 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/08\/Demo_CurrentAmp-768x576.jpg 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/08\/Demo_CurrentAmp-800x600.jpg 800w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>This shows the output from the mixer circuit going to the current amplifier circuit on the Breadboard Canvas. <\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-video\"><video controls src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/08\/mixer_blend.mp4\"><\/video><figcaption>The yellow signal is the 2kHz input and the blue signal is the output. At first, the potentiometer is set to output only he 1kHz signal, then is turned such that it is only outputting the 2kHz signal. I love the way it looks while I&#8217;m turning the pot!<\/figcaption><\/figure>\n\n\n\n<p>I kept the components spaced out on the <a href=\"https:\/\/digilent.com\/shop\/breadboard-canvas\/\">Breadboard Canvas<\/a> because this circuit was set up for a trade show. Since it was being shipped and operated by someone that didn&#8217;t build it, I thought this would ease the debugging process if it came up.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/08\/IMG_3322-1024x768.jpg\" alt=\"\" class=\"wp-image-27418\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/08\/IMG_3322-1024x768.jpg 1024w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/08\/IMG_3322-600x450.jpg 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/08\/IMG_3322-768x576.jpg 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/08\/IMG_3322-800x600.jpg 800w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/08\/IMG_3322-1200x900-cropped.jpg 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>There it is, the whole kit and caboodle. The mixer circuit, the current amplifier circuit, speaker, Analog Discovery Studio, and the Breadboard Canvas. <\/figcaption><\/figure>\n\n\n\n<p>All said and done, the <a href=\"https:\/\/digilent.com\/shop\/analog-discovery-studio-a-portable-circuits-laboratory-for-every-student\/?gclid=Cj0KCQjws7TqBRDgARIsAAHLHP5vmJwIzbr8cSzfsFP-yS_gqTAG7OOhtcVcGOEtvBWxNwyJEX2EDg4aAoCoEALw_wcB\">Analog Discovery Studio<\/a> and the accompanying <a href=\"https:\/\/digilent.com\/shop\/breadboard-canvas\/\">Breadboard Canvas<\/a> provide more power, flexibility, and portability options for all the hardware people out there. And it works with <a href=\"https:\/\/digilent.com\/shop\/waveforms-previously-waveforms-2015\/\">WaveForms<\/a> just like the <a href=\"https:\/\/digilent.com\/shop\/analog-discovery-2-100msps-usb-oscilloscope-logic-analyzer-and-variable-power-supply\/?utm_source=google_search&amp;utm_medium=ppc&amp;utm_campaign=AD2_pro_oscilloscope_customers&amp;utm_content=action_2&amp;gclid=Cj0KCQjws7TqBRDgARIsAAHLHP7NWpVwuxXNUbZ1TntyR1wexGDbMJsrLI-3W82kYsh8IOEauzCz7QYaAkr-EALw_wcB\">Analog Discovery 2<\/a>!<\/p>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style6 like-26937 jlk' data-task='like' data-post_id='26937' data-nonce='aa0ba4060c' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Like' \/><span class='lc-26937 lc'>0<\/span><\/a><\/div><div class='action-unlike'><a class='unlbg-style6 unlike-26937 jlk' data-task='unlike' data-post_id='26937' data-nonce='aa0ba4060c' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Unlike' \/><span class='unlc-26937 unlc'>0<\/span><\/a><\/div><\/div> <div class='status-26937 status align-left'>Be the 1st to vote.<\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>Remix up your audio projects with the Analog Discovery Studio!<\/p>\n","protected":false},"author":49,"featured_media":27418,"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,"footnotes":""},"categories":[4327,4312,4267,1561],"tags":[],"ppma_author":[4459],"class_list":["post-26937","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-projects","category-usb-scopes-analyzers-generators","category-featured","category-applications"],"jetpack_featured_media_url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/08\/IMG_3322.jpg","authors":[{"term_id":4459,"user_id":49,"is_guest":0,"slug":"ian","display_name":"Ian Etheridge","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/04e89e2073e59253a0b117ef28da1c647ca307c1e5f7bf024c1c3e8289c2e026?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\/26937","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\/49"}],"replies":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/comments?post=26937"}],"version-history":[{"count":0,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/26937\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media\/27418"}],"wp:attachment":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media?parent=26937"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/categories?post=26937"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/tags?post=26937"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=26937"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}