{"id":14295,"date":"2016-06-03T09:00:15","date_gmt":"2016-06-03T16:00:15","guid":{"rendered":"https:\/\/blog.digilentinc.com\/?p=14295"},"modified":"2021-06-16T14:11:30","modified_gmt":"2021-06-16T21:11:30","slug":"chaos-and-the-analog-discovery-2","status":"publish","type":"post","link":"https:\/\/digilent.com\/blog\/chaos-and-the-analog-discovery-2\/","title":{"rendered":"Chaos and the Analog Discovery 2"},"content":{"rendered":"<p>When we think of chaos, we tend to picture a mini-van full of hungry kids or <em>that one<\/em> tenured professors\u2019 dark, graduate student-infested office. But in reality, pure chaos is an intrinsic part of our world.<\/p>\n<p>Technologies that helps us gather information and explain the world around us are arguably among the most important developments. And also, come on&#8230; one must admit that chaos theory is pretty cool.\u00a0So, leave your thoughts of sad offices and mini-vans behind!<\/p>\n<p>(Unless they actually include hungry children, in which case perhaps don&#8217;t).<\/p>\n<p>Scientifically, chaotic behavior in waveforms can be defined, simply, as a wave that never repeats.\u00a0With a simple non-linear circuit, function generator, and an oscilloscope, we can create waveforms that extend into chaos.<\/p>\n<p>But alas, you say oscilloscopes and function generators are bulky, beige and expensive? Fear not!<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/cdn6.bigcommerce.com\/s-7gavg\/products\/468\/images\/2617\/Analog_Discovery_2_obl_Academic_600__01249.1447804398.500.659.png?c=2\" alt=\"Analog Discovery 2, oblique.\" \/><\/p>\n<p><a href=\"https:\/\/digilent.com\/shop\/\">Digilent\u2019s<\/a> <a href=\"https:\/\/digilent.com\/shop\/analog-discovery-2-100msps-usb-oscilloscope-logic-analyzer-and-variable-power-supply\/\">Analog Discovery 2<\/a> is the pocket sized equivalent of both an oscilloscope and a function generator, plus a <em>ton <\/em>of other cool stuff (which you can read about more in depth by clicking <a href=\"https:\/\/digilent.com\/reference\/analog_discovery_2:refmanual\">here<\/a>).<\/p>\n<p>By <a href=\"https:\/\/digilent.com\/shop\/waveforms-2015-download-only\/\">downloading<\/a> <a href=\"https:\/\/digilent.com\/reference\/waveforms3#documentation\">Waveforms<\/a>,\u00a0an easy to use waveform analyzer software, we can use the <a href=\"https:\/\/digilent.com\/shop\/analog-discovery-2-100msps-usb-oscilloscope-logic-analyzer-and-variable-power-supply\/\">Analog Discovery 2<\/a>\u00a0 like we would an oscilloscope. All we have to do is hook it up to our computer.<\/p>\n<p>Our simple non-linear circuit is called <a href=\"https:\/\/en.wikipedia.org\/wiki\/Chua%27s_circuit\">Chua\u2019s circuit<\/a>, conveniently named after <a href=\"https:\/\/en.wikipedia.org\/wiki\/Leon_O._Chua\">the guy who invented it<\/a>. Click <a href=\"http:\/\/www.chuacircuits.com\/howtobuild1.php\">here<\/a> for a step-by-step run through on how to build one.<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-14297 aligncenter\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/05\/chua-circuit-600x318.png\" alt=\"chua circuit\" width=\"364\" height=\"193\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/05\/chua-circuit-600x318.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/05\/chua-circuit-351x185.png 351w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/05\/chua-circuit.png 692w\" sizes=\"auto, (max-width: 364px) 100vw, 364px\" \/>Chua circuit diagram (<a href=\"https:\/\/en.wikipedia.org\/wiki\/Chua%27s_circuit\">Wikipedia<\/a>)<\/p>\n<p>We can also run the <a href=\"https:\/\/digilent.com\/shop\/analog-discovery-2-100msps-usb-oscilloscope-logic-analyzer-and-variable-power-supply\/\">Analog Discovery 2<\/a> as both a function generator and a 2-channel oscilloscope simultaneously&#8230;which is nothing short of GENIUS!<\/p>\n<figure style=\"width: 486px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/img11.deviantart.net\/40f9\/i\/2008\/338\/8\/7\/evil_laugh_by_leoma_silfren.jpg\" width=\"486\" height=\"305\" \/><figcaption class=\"wp-caption-text\">Image courtesy of http:\/\/img11.deviantart.net\/40f9\/i\/2008\/338\/8\/7\/evil_laugh_by_leoma_silfren.jpg<\/figcaption><\/figure>\n<p>Head over to our Wiki to see <a href=\"https:\/\/digilent.com\/reference\/waveforms3\/refmanual\">how<\/a>.<\/p>\n<p>If we run a continuous sine wave across the circuit using the function generator, we see a sine wave as the output of the circuit on the oscilloscope. As we increase the voltage, the period of our sine waves double, quadruple, and all of the sudden the waveform goes chaotic.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-14298 aligncenter\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/05\/Double_scroll_attractor_from_Matlab_simulation-600x450.jpg\" alt=\"Double_scroll_attractor_from_Matlab_simulation\" width=\"399\" height=\"299\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/05\/Double_scroll_attractor_from_Matlab_simulation-600x450.jpg 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/05\/Double_scroll_attractor_from_Matlab_simulation-768x576.jpg 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/05\/Double_scroll_attractor_from_Matlab_simulation-1024x768.jpg 1024w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/05\/Double_scroll_attractor_from_Matlab_simulation-800x600.jpg 800w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/05\/Double_scroll_attractor_from_Matlab_simulation.jpg 1056w\" sizes=\"auto, (max-width: 399px) 100vw, 399px\" \/><\/p>\n<p style=\"text-align: center;\">An example of chaotic behavior modeled in 3D (<a href=\"https:\/\/en.wikipedia.org\/wiki\/Chua%27s_circuit\">Wikipedia<\/a>)<\/p>\n<p>What the heck is happening?<\/p>\n<p>Technically, <a href=\"https:\/\/en.wikipedia.org\/wiki\/Bifurcation_theory\">quantum bifurcation<\/a>.\u00a0Less technically, the high voltage is forcing the period of our sine wave to halve each time the voltage is increased. A tipping point is reached once the period can\u2019t be halved anymore, and the result is chaos.<\/p>\n<p>Taking a perfectly-content sine wave and forcing it into chaos sounds a little dismal, so why would we ever want to do this? Well, applications of understanding and replicating chaotic behavior range from helping <a href=\"https:\/\/www.sciencedaily.com\/releases\/2010\/07\/100721145105.htm\">predict heart attacks<\/a> to more secure <a href=\"https:\/\/www.researchgate.net\/publication\/3432338_Chaos-based_cryptography_A_brief_overview\">cryptography<\/a>.<\/p>\n<p>Want to see what else we\u2019re doing with the <a href=\"https:\/\/digilent.com\/shop\/analog-discovery-2-100msps-usb-oscilloscope-logic-analyzer-and-variable-power-supply\/\">Analog Discovery 2<\/a> and other cool projects? <a href=\"http:\/\/digilentinc.us8.list-manage1.com\/subscribe?u=cf6d73f14b5a712de344b738a&amp;id=7953e871f4\">Subscribe to our newsletter<\/a> and stay up to date on our blog!<\/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-14295 jlk' data-task='like' data-post_id='14295' data-nonce='1c819b3974' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Like' \/><span class='lc-14295 lc'>0<\/span><\/a><\/div><div class='action-unlike'><a class='unlbg-style6 unlike-14295 jlk' data-task='unlike' data-post_id='14295' data-nonce='1c819b3974' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Unlike' \/><span class='unlc-14295 unlc'>0<\/span><\/a><\/div><\/div> <div class='status-14295 status align-left'>Be the 1st to vote.<\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>Ella explores the world of chaos with Digilent&#8217;s Analog Discovery 2!<\/p>\n","protected":false},"author":41,"featured_media":14298,"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":[18,4312],"tags":[1736,452],"ppma_author":[4492],"class_list":["post-14295","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-academia","category-usb-scopes-analyzers-generators","tag-analog-discovery-2","tag-waveforms"],"jetpack_featured_media_url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/05\/Double_scroll_attractor_from_Matlab_simulation.jpg","authors":[{"term_id":4492,"user_id":41,"is_guest":0,"slug":"erickerson","display_name":"Ella Rickerson","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/6fe955cc73725d3ad87e297d094c41be82c3845c2a4488842c1a74a78ca36b60?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\/14295","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\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/comments?post=14295"}],"version-history":[{"count":0,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/14295\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media\/14298"}],"wp:attachment":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media?parent=14295"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/categories?post=14295"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/tags?post=14295"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=14295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}