{"id":886,"date":"2021-11-10T10:06:57","date_gmt":"2021-11-10T09:06:57","guid":{"rendered":"https:\/\/automatico.freevar.com\/?page_id=886"},"modified":"2021-11-13T17:42:06","modified_gmt":"2021-11-13T16:42:06","slug":"noise-generator-model","status":"publish","type":"page","link":"https:\/\/automatico.freevar.com\/index.php\/elettronica\/ltspice\/noise-generator-model\/","title":{"rendered":"Noise Generator Model"},"content":{"rendered":"<p><span style=\"font-size: 14pt;\">Our aim is to create an oscillator that provides an output voltage with a random trend and from this create random pulses in turn to simulate the operation of a Geiger-M\u00fcller ionization chamber tube. For this we will use a Colpitts oscillator which will get trapped in the noisy phase before the regular periodic oscillation and a voltage comparator to filter the voltage levels below a given value.<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">Resonance in an LC circuit occurs when the oscillation frequency has the greatest amplitude and this is when the inductive impedance and capacitive impedance have the same value.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-919 aligncenter\" src=\"https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/11\/immagine_2021-11-10_090814-300x276.png\" alt=\"\" width=\"300\" height=\"276\" srcset=\"https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/11\/immagine_2021-11-10_090814-300x276.png 300w, https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/11\/immagine_2021-11-10_090814.png 370w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p class=\"math inherit-color\">\\[ Z=R+(X_{L}-X_{C}) \\]<\/p>\n<p><span style=\"font-size: 14pt;\">We know that\u00a0<\/span>\\[ X_{L}=\\omega L \\] <span style=\"font-size: 14pt;\">and\u00a0 <\/span>\\[ X_{C}=\\frac{1}{\\omega C} \\]<\/p>\n<p><span style=\"font-size: 14pt;\">Because <\/span>\\[ X_{L}=X_{C} \\] <span style=\"font-size: 14pt;\"><sub>\u00a0<\/sub>we have <\/span>\\[ \\omega L=\\frac{1}{\\omega C} \\] <span style=\"font-size: 14pt;\">so if we specify in \u03c9 we obtain<\/span><\/p>\n<p style=\"text-align: center;\">\\[ \\omega=\\frac{1}{\\sqrt{LC}} \\]<\/p>\n<p><span style=\"font-size: 14pt;\">We also know that \\[ \\omega=2\\pi f \\] therefore the resonant frequency holds<\/span><\/p>\n<p style=\"text-align: center;\">\\[ f=\\frac{1}{2\\pi\\sqrt{LC}} \\]<\/p>\n<p><span style=\"font-size: 14pt;\">All this in the ideal case with R equals 0.<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">Now if we divide C into two capacities we have the Colpitts oscillator:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-910 aligncenter\" src=\"https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/11\/immagine_2021-11-09_184617-300x234.png\" alt=\"\" width=\"300\" height=\"234\" srcset=\"https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/11\/immagine_2021-11-09_184617-300x234.png 300w, https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/11\/immagine_2021-11-09_184617-768x599.png 768w, https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/11\/immagine_2021-11-09_184617.png 830w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p><span style=\"font-size: 14pt;\">The value of C is given by the series of the two capacities:<\/span><\/p>\n<p class=\"math inherit-color _focus\">\\[ C=\\frac{C_{1}*C_{2}}{C_{1}+C_{2}} \\]<\/p>\n<p><span style=\"font-size: 14pt;\">During the oscillation in the real circuit there is a loss of energy due to the resistance R. An active device is needed to compensate for this lost energy and thus sustain the oscillation.<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">The oscillation in the Colpitts circuit depends on the phase shift of the signal as well described in the Barkhausen criterion for oscillators. According to the Barkhausen criterion, the gain of the circuit should be slightly greater than unity and the phase shift of the signal should be 2\u03c0 radians or 0 radians. Therefore, during this case, to output oscillation, the circuit must provide a phase shift of 0 radians (or 2\u03c0 radians). The LC circuit contributes a \u03c0 radians phase shift and a further \u03c0 radians phase shift is given by the active circuit.<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">The trigger of the oscillation is given by the voltage difference present at the ends of the two capacitors of different capacities C1 and C2. Determining the feedback voltage is a crucial part of the circuit because a low feedback voltage value would not trigger oscillation while a large amount of feedback voltage would destroy the output sine wave and induce distortion.<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">Let&#8217;s now see the active part of the oscillator circuit:<\/span><\/p>\n<p><a href=\"https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/11\/opampInv.bmp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-942 size-full\" src=\"https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/11\/opampInv-e1636821707984.bmp\" alt=\"\" width=\"740\" height=\"400\" srcset=\"https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/11\/opampInv-e1636821707984.bmp 740w, https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/11\/opampInv-e1636821707984-300x162.bmp 300w\" sizes=\"(max-width: 740px) 100vw, 740px\" \/><\/a><\/p>\n<p><span style=\"font-size: 14pt;\">To build our oscillator we will use an operational amplifier circuit in inverting configuration where the output voltage is related to the following law:<\/span><\/p>\n<p class=\"math inherit-color\">\\[ V_{out}=V_{in}\\frac{R_{f}}{R_{in}} \\]<\/p>\n<p><span style=\"font-size: 14pt;\">Let&#8217;s now see at the component values for a sinusoidal oscillation. Let&#8217;s assume that the capacitance of C1 is 2.2 \u03bcF and the capacitance of C2 is 1 \u03bcF, furthermore that the inductance L is worth 100 \u03bcH. Let&#8217;s calculate the series between the two capacities:<\/span><\/p>\n<p class=\"math inherit-color _focus\">\\[ C=\\frac{C_{1}*C_{2}}{C_{1}+C_{2}}=\\frac{2.2*1}{2.2+1}\\mu F\\approx0.6785\\mu F \\]<\/p>\n<p><span style=\"font-size: 14pt;\">With these values we therefore have a fundamental resonance frequency of:<\/span><\/p>\n<p class=\"math inherit-color\">\\[ f_{0}=\\frac{1}{2\\pi\\sqrt{LC}}=\\frac{1}{2\\pi\\sqrt{100*10^{-6}H*0.6785*10^{-6}F}}\\approx19195Hz \\]<\/p>\n<p><span style=\"font-size: 14pt;\">The \u03b2 value indicates how much signal returns to the LC group, its inverse indicates how much the signal must be amplified to have a unity gain according to the Barkhausen criterion:<\/span><\/p>\n<p class=\"math inherit-color\">\\[ \\beta=\\frac{X_{C1}}{X_{C1}+X_{L}} \\]<\/p>\n<p><span style=\"font-size: 14pt;\">where<\/span><\/p>\n<p class=\"math inherit-color\">\\[ X_{C}=\\frac{1}{2\\pi*f_{0}*C}\\approx\\frac{1}{2\\pi*19195Hz*2.2*10^{-6}F}\\approx3.77\\Omega \\]<\/p>\n<p class=\"math inherit-color _focus\">\\[ X_{L}=2\\pi*f_{0}*L\\approx 2\\pi*19195Hz*100*10^{-6}H\\approx12.06\\Omega \\]<\/p>\n<p><span style=\"font-size: 14pt;\">So<\/span><\/p>\n<p style=\"text-align: center;\">\\[ \\beta=\\frac{3.77}{3.77+12.06}\\approx0.238 \\]<\/p>\n<pre id=\"tw-target-text\" class=\"tw-data-text tw-text-large tw-ta\" dir=\"ltr\" data-placeholder=\"Traduzione\"><span class=\"Y2IQFc\" lang=\"en\" style=\"font-size: 14pt; font-family: georgia, palatino, serif;\">From the \u03b2 value we can simply calculate the gain of the active part of the oscillator<\/span><\/pre>\n<p class=\"math inherit-color\">\\[ A_{V}=\\frac{1}{\\beta}=\\frac{R_{f}}{R_{in}}\\approx4.2 \\]<\/p>\n<p class=\"math inherit-color\">\\[ \\frac{R_{f}}{R_{in}}=\\frac{42k\\Omega}{10k\\Omega} \\]<\/p>\n<p><span style=\"font-size: 14pt;\">So we have L<sub>1<\/sub>=100\u03bcH, C<sub>1<\/sub> = 2.2 \u03bcF, C<sub>2<\/sub> = 1 \u03bcF, R<sub>1<\/sub> = 10k\u03a9, R<sub>2<\/sub> = 42k\u03a9 to get a sinusoidal oscillation frequency of 19.195 Hz.<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">Now, to have spurious oscillations it is necessary to alter the value of 1\/\u03b2 and bring it to 10.<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">With this new A<sub>V<\/sub>\u00a0value we have a 10 times gain and finally get the two new values R<sub>1<\/sub> = 10k\u03a9, R<sub>2<\/sub> = 100k\u03a9.<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">So our circuit could be composed as follows:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-935 size-full\" src=\"https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/11\/immagine_2021-11-10_105829.png\" alt=\"\" width=\"950\" height=\"345\" srcset=\"https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/11\/immagine_2021-11-10_105829.png 950w, https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/11\/immagine_2021-11-10_105829-300x109.png 300w, https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/11\/immagine_2021-11-10_105829-768x279.png 768w\" sizes=\"(max-width: 950px) 100vw, 950px\" \/><\/p>\n<p><span style=\"font-size: 14pt;\">In the image above we finally have the Colpitts oscillator circuit based on an operational amplifier. The operational amplifier is in inverting configuration. Resistors R<sub>1<\/sub> and R<sub>2<\/sub> are sized to provide the required output from the operational amplifier. The inverting operational amplifier is connected in parallel to the inductance L and to the capacitors C<sub>1<\/sub> and C<sub>2<\/sub> in series each other. Then the operational amplifier input is connected to the oscillating circuit feedback. With these parameters the circuit oscillates at a little less than 20 kHz.<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">During start-up, the operational amplifier amplifies the noise signal given by the different charge of the two capacitors. A pulse generator via resistor R<sub>3<\/sub> sends a 1 Volt signal 100 times per second to trigger the oscillation that gets trapped in the noisy phase.<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">The result is in the following diagram:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-933 size-full\" src=\"https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/11\/immagine_2021-11-10_105710.png\" alt=\"\" width=\"1416\" height=\"346\" srcset=\"https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/11\/immagine_2021-11-10_105710.png 1416w, https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/11\/immagine_2021-11-10_105710-300x73.png 300w, https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/11\/immagine_2021-11-10_105710-1024x250.png 1024w, https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/11\/immagine_2021-11-10_105710-768x188.png 768w\" sizes=\"(max-width: 1416px) 100vw, 1416px\" \/><\/p>\n<p>&nbsp;<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_886\" class=\"pvc_stats all  \" data-element-id=\"886\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/automatico.freevar.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Our aim is to create an oscillator that provides an output voltage with a random trend and from this create random pulses in turn to simulate the operation of a Geiger-M\u00fcller ionization chamber tube. For this we will use a Colpitts oscillator which will get trapped in the noisy phase before the regular periodic oscillation [&hellip;]<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_886\" class=\"pvc_stats all  \" data-element-id=\"886\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/automatico.freevar.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":0,"parent":303,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-886","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/automatico.freevar.com\/index.php\/wp-json\/wp\/v2\/pages\/886"}],"collection":[{"href":"https:\/\/automatico.freevar.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/automatico.freevar.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/automatico.freevar.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/automatico.freevar.com\/index.php\/wp-json\/wp\/v2\/comments?post=886"}],"version-history":[{"count":30,"href":"https:\/\/automatico.freevar.com\/index.php\/wp-json\/wp\/v2\/pages\/886\/revisions"}],"predecessor-version":[{"id":938,"href":"https:\/\/automatico.freevar.com\/index.php\/wp-json\/wp\/v2\/pages\/886\/revisions\/938"}],"up":[{"embeddable":true,"href":"https:\/\/automatico.freevar.com\/index.php\/wp-json\/wp\/v2\/pages\/303"}],"wp:attachment":[{"href":"https:\/\/automatico.freevar.com\/index.php\/wp-json\/wp\/v2\/media?parent=886"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}