{"id":482,"date":"2021-08-20T10:00:34","date_gmt":"2021-08-20T08:00:34","guid":{"rendered":"https:\/\/automatico.freevar.com\/?page_id=482"},"modified":"2021-10-15T07:36:25","modified_gmt":"2021-10-15T05:36:25","slug":"vu-meter","status":"publish","type":"page","link":"https:\/\/automatico.freevar.com\/index.php\/elettronica\/vu-meter\/","title":{"rendered":"Analogic VUmeter"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-677 alignleft\" src=\"https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/09\/vu-meter-70433_640-300x225.jpg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/09\/vu-meter-70433_640-300x225.jpg 300w, https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/09\/vu-meter-70433_640.jpg 640w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p><span style=\"font-size: 14pt;\">For my stereo tube amplifier I wanted to add two VU-meters to get an idea of \u200b\u200bthe output power, looking on the net I found only \u201cactive\u201d suggestions, that is a milliammeter driven by transistors or even by operational amplifiers.<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">The VU-meters indicate the gain of the amplifier in dB which is a unit of measurement with a logarithmic trend to better follow the acoustic perception of the human ear. My desire was to find a simple way to condition the linear signal, output from the amplifier, in logarithmic. Looking better I found a wiring diagram that I define brilliant and you can see at this link <a href=\"http:\/\/elizeueletrotecnico.blogspot.com\/2021\/01\/circuito-esquema-vu-meter-analogico.html\">http:\/\/elizeueletrotecnico.blogspot.com\/2021\/01\/circuito-esquema-vu-meter-analogico.html<\/a><\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 14pt;\">As you can see in the image on\u00a0 the side there is only\u00a0 a diag<\/span><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-819 size-full alignleft\" src=\"https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/10\/simpleVUmeter.jpg\" alt=\"\" width=\"456\" height=\"459\" srcset=\"https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/10\/simpleVUmeter.jpg 456w, https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/10\/simpleVUmeter-298x300.jpg 298w, https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/10\/simpleVUmeter-150x150.jpg 150w\" sizes=\"(max-width: 456px) 100vw, 456px\" \/><span style=\"font-size: 14pt;\">ram with components list.\u00a0 What I did not understand was the direction of the diode D2, for me it was wrong. Suddenly observing the circuit better, I realized that the diode D2\u00a0 provides a voltage with a logarithmic trend to the instrument. <\/span><span class=\"Y2IQFc\" lang=\"en\" style=\"font-size: 14pt;\">With this principle I designed a circuit that can be used with amplifiers up to 100 W.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/10\/diodolog-1.bmp\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-878 alignleft\" src=\"https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/10\/diodolog-1.bmp\" alt=\"\" width=\"267\" height=\"211\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 14pt;\">We have seen that the operating principle is the logarithmic voltage behavior of the diode, caused by the variation of the current flowing through it, between <span style=\"font-size: 18pt;\">0.35<\/span> V and <span style=\"font-size: 18pt;\">0.66<\/span> V. In the drawing we simplify by indicating the input voltage as V and the exit voltage as V <sub>d<\/sub>.\u00a0The voltage V\u00a0<sub>d<\/sub>\u00a0is linked by logarithmic law to the current I\u00a0<sub>d<\/sub>\u00a0which flows through the diode\u00a0:<\/span><\/p>\n<p style=\"text-align: center;\"><span style=\"font-size: 14pt;\">V<sub>d\u00a0<\/sub>= \u03b7*V<sub>T<\/sub>*log<sub>n<\/sub> (I<sub>d<\/sub>\/I<sub>s<\/sub>)<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 14pt;\">Where:<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">V\u00a0<sub>d<\/sub>\u00a0is the voltage across the diode<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">I\u00a0<sub>d<\/sub>\u00a0is the current running through the diode<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">I\u00a0<sub>s<\/sub>\u00a0is the inverse saturation current which is worth about\u00a0<span style=\"font-size: 18pt;\">10<sup>-12<\/sup><\/span>\u00a0A<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u03b7 is equal to 1 in the conduction zone or 2 in the case of very large current values<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">V\u00a0<sub>T<\/sub>\u00a0thermal voltage which is approximately <span style=\"font-size: 18pt;\">25<\/span> mV at <span style=\"font-size: 18pt;\">300<\/span> K<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">Without bothering algebra and non-linear networks, let&#8217;s try my circuit in LTSpice:<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/10\/vumeter-1.bmp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-861 size-full\" src=\"https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/10\/vumeter-1.bmp\" alt=\"\" width=\"890\" height=\"568\" srcset=\"https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/10\/vumeter-1.bmp 890w, https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/10\/vumeter-1-300x191.jpg 300w, https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/10\/vumeter-1-768x490.jpg 768w\" sizes=\"(max-width: 890px) 100vw, 890px\" \/><\/a><\/p>\n<p><span style=\"font-size: 14pt;\"><span class=\"\">The <\/span><span class=\"Y2IQFc\" lang=\"en\">milliammeter <\/span><span class=\"\">I used is the classic 630 \u03a9 with 0.530 \u03bcA at full scale, so the maximum value to apply to it is about 0.334 V. The first part of the circuit reduces the voltage level, from wires connected to speakers,\u00a0 and makes the envelope of the signal to the following resistors and diodes network. <\/span>Diode BAT54 is a Schottky effect diode with low threshold voltage (just over 0.15 V), high switching speed and above all a reverse voltage of at least 100 V.\u00a0 Now, the current flowing in the first 1N4148 diode causes a voltage drop that follows the law indicated above (logarithmic). However, the signal becomes linear for voltages over 0.66 V so the third part of the circuit performs the same operation as the second part but with two diodes in series up to 1.32 V. After this value, the signal remains linear. At this point a variable resistor brings the signal, made quite logarithmic in the power excursion, to the milliammeter. <span class=\"Y2IQFc\" lang=\"en\">With this circuit we can have a VU-meter that works up to 25 V of output from the amplifier (into 8 Ohms) which means an electrical power of about 100 W.\u00a0<\/span><\/span><\/p>\n<p><a href=\"https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/10\/iD2.bmp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-858 size-full\" src=\"https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/10\/iD2.bmp\" alt=\"\" width=\"664\" height=\"436\" srcset=\"https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/10\/iD2.bmp 664w, https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/10\/iD2-300x197.jpg 300w\" sizes=\"(max-width: 664px) 100vw, 664px\" \/><\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-859 size-full\" src=\"https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/10\/iD3D4.bmp\" alt=\"\" width=\"664\" height=\"436\" srcset=\"https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/10\/iD3D4.bmp 664w, https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/10\/iD3D4-300x197.jpg 300w\" sizes=\"(max-width: 664px) 100vw, 664px\" \/><\/p>\n<p><span style=\"font-size: 14pt;\">My stereo tube amplifier provides about 3 W per channel on 8 \u03a9 load, that means a voltage of about 4.9 V applied to the speaker (W = V <sup>2<\/sup> \/ R) and after the diode D1 we have an effective voltage vaule of 4.9*1.414=6.92 V<sub>RMS<\/sub>. The diagram below shows the DC sweep between 0 and 20 V applied to the circuit. <span class=\"Y2IQFc\" lang=\"en\">Important! the current flowing in R2 is about 17 mA therefore the electrical power that must dissipate is 0.017 * 0.017 * 1000 = 0.289 W so the resistor must be at least 1\/2 W or more if the circuit is used with an amplifier that supplies 100 W.<\/span><\/span><\/p>\n<p><span style=\"font-size: 14pt;\">In the following diagram we have a blu trace that is the voltage before the variable resistor U1 , while the green trace is the theoretical logarithmic curve where v(n002) is voltage of V1. I did not need the maximum accuracy in the measurement, it was enough that it was indicative, so I can consider myself satisfied with the result.\u00a0<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-848 size-full\" src=\"https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/10\/immagine_2021-10-12_154105.png\" alt=\"\" width=\"1416\" height=\"346\" srcset=\"https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/10\/immagine_2021-10-12_154105.png 1416w, https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/10\/immagine_2021-10-12_154105-300x73.png 300w, https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/10\/immagine_2021-10-12_154105-1024x250.png 1024w, https:\/\/automatico.freevar.com\/wp-content\/uploads\/2021\/10\/immagine_2021-10-12_154105-768x188.png 768w\" sizes=\"(max-width: 1416px) 100vw, 1416px\" \/><\/p>\n<p><span class=\"VIiyi\" lang=\"en\" style=\"font-size: 14pt;\"><span class=\"JLqJ4b ChMk0b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"it\" data-phrase-index=\"0\">The charge time T of capacitor is dictated by the pair R2 and C1 of <span style=\"font-size: 18pt;\">1<\/span> k<span style=\"font-size: 14pt;\"><span class=\"\">\u03a9<\/span><\/span> and <span style=\"font-size: 18pt;\">4.7<\/span> \u03bcF respectively:<\/span><\/span><\/p>\n<p style=\"text-align: center;\"><span class=\"VIiyi\" lang=\"en\" style=\"font-size: 14pt;\"><span class=\"JLqJ4b ChMk0b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"it\" data-phrase-index=\"0\"><span style=\"font-size: 24px;\">T<\/span><span style=\"font-size: 14pt;\">= R2 x C1 = <\/span><span style=\"font-size: 18pt;\">1000 * 4.7 x 10<sup> -6<\/sup> <\/span><span style=\"font-size: 14pt;\">= <\/span><span style=\"font-size: 18pt;\">4.7<\/span><span style=\"font-size: 14pt;\"> milliseconds<\/span><\/span><\/span><\/p>\n<p><span class=\"VIiyi\" lang=\"en\" style=\"font-size: 14pt;\"><span class=\"JLqJ4b ChMk0b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"it\" data-phrase-index=\"1\"><span style=\"font-size: 14pt;\">\u00a0This <span style=\"font-size: 18pt;\">T<\/span> is approximately 4.6 times the time costant so tau is about <span style=\"font-size: 18pt;\">1<\/span> millisecond that\u00a0<\/span><\/span><\/span><span class=\"VIiyi\" lang=\"en\" style=\"font-size: 14pt;\"><span class=\"JLqJ4b ChMk0b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"it\" data-phrase-index=\"1\">is small enough to don&#8217;t affect the time delay of the indicator instrument which is typically <span style=\"font-size: 18pt;\">300<\/span> milliseconds.\u00a0<\/span><\/span><\/p>\n<p><span style=\"font-size: 14pt;\">Correct calibration is not laborious but requires the use of a 1000 Hz sinusoidal signal generator and an oscilloscope.\u00a0The volume is adjusted until it reaches <span style=\"font-size: 18pt;\">4.9<\/span> V (for <span style=\"font-size: 18pt;\">3<\/span> W output) and then the variable resistor is adjusted until the instrument index reaches <span style=\"font-size: 18pt;\">0<\/span> dB.<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">The LTspice file can be downloaded here\u00a0\u00a0<a href=\"https:\/\/automatico.freevar.com\/dump\/vumeter.asc\">https:\/\/automatico.freevar.com\/dump\/vumeter.asc<\/a><\/span><\/p>\n<p><span style=\"font-size: 14pt;\">Potentiometer model with installation instructions in LTSpice are here\u00a0\u00a0\u00a0<a href=\"https:\/\/automatico.freevar.com\/dump\/potentiometer.zip\">https:\/\/automatico.freevar.com\/dump\/potentiometer.zip<\/a><\/span><\/p>\n<p>&nbsp;<\/p>\n<pre id=\"tw-target-text\" class=\"tw-data-text tw-text-large XcVN5d tw-ta\" dir=\"ltr\" data-placeholder=\"Traduzione\"><\/pre>\n<p>&nbsp;<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_482\" class=\"pvc_stats all  \" data-element-id=\"482\" 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>&nbsp; For my stereo tube amplifier I wanted to add two VU-meters to get an idea of \u200b\u200bthe output power, looking on the net I found only \u201cactive\u201d suggestions, that is a milliammeter driven by transistors or even by operational amplifiers. The VU-meters indicate the gain of the amplifier in dB which is a unit [&hellip;]<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_482\" class=\"pvc_stats all  \" data-element-id=\"482\" 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":97,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-482","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/automatico.freevar.com\/index.php\/wp-json\/wp\/v2\/pages\/482"}],"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=482"}],"version-history":[{"count":94,"href":"https:\/\/automatico.freevar.com\/index.php\/wp-json\/wp\/v2\/pages\/482\/revisions"}],"predecessor-version":[{"id":882,"href":"https:\/\/automatico.freevar.com\/index.php\/wp-json\/wp\/v2\/pages\/482\/revisions\/882"}],"up":[{"embeddable":true,"href":"https:\/\/automatico.freevar.com\/index.php\/wp-json\/wp\/v2\/pages\/97"}],"wp:attachment":[{"href":"https:\/\/automatico.freevar.com\/index.php\/wp-json\/wp\/v2\/media?parent=482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}