<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Electronics on Matias Di Bernardo</title><link>https://dibernardo.netlify.app/categories/electronics/</link><description>Recent content in Electronics on Matias Di Bernardo</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>Matías Di Bernardo</copyright><lastBuildDate>Tue, 26 Nov 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://dibernardo.netlify.app/categories/electronics/index.xml" rel="self" type="application/rss+xml"/><item><title>THD+N Meter</title><link>https://dibernardo.netlify.app/p/thd-n-meter/</link><pubDate>Tue, 26 Nov 2024 00:00:00 +0000</pubDate><guid>https://dibernardo.netlify.app/p/thd-n-meter/</guid><description>&lt;img src="https://dibernardo.netlify.app/p/thd-n-meter/port.jpeg" alt="Featured image of post THD+N Meter" />&lt;h1 id="thdn-meter">THD+N Meter
&lt;/h1>&lt;p>A THD+N meter measures the harmonic distortion of a device. In audio, this is crucial for assessing the quality of equipment. This project was developed as part of the subject &amp;ldquo;Instrumentos y Mediciones Electrónicas&amp;rdquo; at UNTREF. In this course, students design and develop various electronic instruments, and projects are carried forward by successive student groups. This particular project was already underway, and our focus was on developing a phase shifter to align two signals.&lt;/p>
&lt;h2 id="teory-of-thd-measurement">Teory of THD measurement
&lt;/h2>&lt;p>To measure the distortion of a system, a sinusoidal signal with minimal distortion is input to the device under test. The goal is to evaluate how much distortion the device adds to the signal. This is quantified by measuring the power of the original signal and the power of the signal after passing through the device, excluding the fundamental harmonic.&lt;/p>
&lt;p>A differential amplifier is used to subtract the device&amp;rsquo;s output signal from the reference signal, leaving only the higher-order harmonics.&lt;/p>
&lt;p>The THD+N is then calculated as a percentage using the following equation:&lt;/p>
$$
THD+N = \frac{V_{filt}}{V_{tot}} \cdot 100
$$&lt;p>Where:
$V_{filt}$ is the RMS value of the filtered signal (excluding the fundamental harmonic).
$V_{tot}$ is the RMS value of the original signal.&lt;/p>
&lt;h2 id="phase-shifter">Phase Shifter
&lt;/h2>&lt;p>To achieve effective cancellation in the differential section, precise phase and gain adjustments of the two signals are required. The gain adjustment had been successfully implemented by the previous group working on the project. However, achieving the necessary 360-degree phase rotation across the entire audible frequency range (20 Hz to 20 kHz) presented a challenge.&lt;/p>
&lt;p>To address this, we designed two all-pass filters in series and calculated the component values to achieve the desired phase rotation over the target frequency range.&lt;/p>
&lt;p>The design was modular to facilitate seamless integration with the previous stages.&lt;/p>
&lt;p>&lt;img src="https://dibernardo.netlify.app/p/thd-n-meter/esquem_thd.PNG"
width="991"
height="597"
srcset="https://dibernardo.netlify.app/p/thd-n-meter/esquem_thd_hu7854488014118793125.PNG 480w, https://dibernardo.netlify.app/p/thd-n-meter/esquem_thd_hu5535924513728456883.PNG 1024w"
loading="lazy"
alt="Esquematic of the phase shifter desing for the meter"
class="gallery-image"
data-flex-grow="165"
data-flex-basis="398px"
>&lt;/p>
&lt;p>We tested the circuit on a protoboard before designing the PCB using &lt;em>Altium Designer&lt;/em>.&lt;/p>
&lt;p>&lt;img src="https://dibernardo.netlify.app/p/thd-n-meter/pcb_thd.PNG"
width="757"
height="496"
srcset="https://dibernardo.netlify.app/p/thd-n-meter/pcb_thd_hu3351495035239025609.PNG 480w, https://dibernardo.netlify.app/p/thd-n-meter/pcb_thd_hu4551021193416416361.PNG 1024w"
loading="lazy"
alt="PCB design of the circuit"
class="gallery-image"
data-flex-grow="152"
data-flex-basis="366px"
>&lt;/p>
&lt;h2 id="the-device">The device
&lt;/h2>&lt;p>The device features several controls for adjusting phase and gain. Both the phase and gain adjustments include fine-tuning potentiometers to ensure maximum precision.&lt;/p>
&lt;div id="carousel0" class="carousel" duration="70000">
&lt;ul>
&lt;li id="c0_slide1" style="min-width: calc(100%/1); padding-bottom: 600px;">&lt;img src="https://dibernardo.netlify.app/images/thd/thd1.jpeg" alt="" />&lt;div>&lt;div>&lt;/div>&lt;/div>&lt;/li>
&lt;li id="c0_slide2" style="min-width: calc(100%/1); padding-bottom: 600px;">&lt;img src="https://dibernardo.netlify.app/images/thd/thd2.jpeg" alt="" />&lt;div>&lt;div>&lt;/div>&lt;/div>&lt;/li>
&lt;li id="c0_slide3" style="min-width: calc(100%/1); padding-bottom: 600px;">&lt;img src="https://dibernardo.netlify.app/images/thd/thd3.jpeg" alt="" />&lt;div>&lt;div>&lt;/div>&lt;/div>&lt;/li>
&lt;/ul>
&lt;ol>
&lt;li>&lt;a href="#c0_slide1">&lt;/a>&lt;/li>
&lt;li>&lt;a href="#c0_slide2">&lt;/a>&lt;/li>
&lt;li>&lt;a href="#c0_slide3">&lt;/a>&lt;/li>
&lt;/ol>
&lt;div class="prev">&amp;lsaquo;&lt;/div>
&lt;div class="next">&amp;rsaquo;&lt;/div>
&lt;/div>
&lt;p>It is equipped with BNC inputs and outputs, allowing users to visualize the output on an oscilloscope and achieve maximum attenuation.&lt;/p>
&lt;h2 id="results">Results
&lt;/h2>&lt;p>This device was compared against a commercial THD meter (GW INSTEK GAD-201G), and the results were highly similar. The primary limitation was the base noise level of the measurement environment, which significantly restricted the lowest THD value we could measure.&lt;/p>
&lt;p>The specifications of the device are summarized in the following table (in Spanish):&lt;/p>
&lt;p>&lt;img src="https://dibernardo.netlify.app/p/thd-n-meter/specs_thd.PNG"
width="1192"
height="887"
srcset="https://dibernardo.netlify.app/p/thd-n-meter/specs_thd_hu7856985861425421171.PNG 480w, https://dibernardo.netlify.app/p/thd-n-meter/specs_thd_hu9340525222663809333.PNG 1024w"
loading="lazy"
alt="Technical specifications for the device"
class="gallery-image"
data-flex-grow="134"
data-flex-basis="322px"
>&lt;/p>
&lt;p>A detailed analysis of the device is available in this &lt;a class="link" href="https://drive.google.com/file/d/1b36O_s27LkEJAZ6-y5TcdTT5wKB1xdGk/view?usp=sharing" target="_blank" rel="noopener"
>final report&lt;/a> (written in spanish).&lt;/p></description></item><item><title>Building and design of a personal loudspeaker</title><link>https://dibernardo.netlify.app/p/building-and-design-of-a-personal-loudspeaker/</link><pubDate>Wed, 20 Nov 2024 00:00:00 +0000</pubDate><guid>https://dibernardo.netlify.app/p/building-and-design-of-a-personal-loudspeaker/</guid><description>&lt;img src="https://dibernardo.netlify.app/p/building-and-design-of-a-personal-loudspeaker/front_bass.PNG" alt="Featured image of post Building and design of a personal loudspeaker" />&lt;h1 id="bassado-a-semi-portable-low-cost-home-speaker">&amp;ldquo;BassAdo&amp;rdquo;: A Semi-Portable Low-Cost Home Speaker
&lt;/h1>&lt;p>This project is part of the Electroacoustics II course at UNTREF within the Sound Engineering program. The task was to design a speaker system from scratch by applying the theory and concepts explained in class.
The project was developed over the entire semester, with various stages to complete and present in reports. The speaker is intended for use in large spaces, potentially outdoors, to play music in a social gathering setting. It was named BassAdo to blend the Argentine tradition of &amp;ldquo;asado&amp;rdquo; (a typical barbecue gathering) with the word &amp;ldquo;bass,&amp;rdquo; emphasizing the speaker’s low-frequency performance.&lt;/p>
&lt;h2 id="design">Design
&lt;/h2>&lt;p>The goal was to design an accessible home audio system that allowed exploration of topics discussed in the course. The design aimed to emphasize bass response, characteristic of commercial systems, prioritizing low-frequency bandwidth extension over minimal group delay and system time control.&lt;/p>
&lt;p>Regarding the transducers, the team had access to Yharo-brand units, which are classified as non-professional, consumer-grade, and suitable for automotive or home systems. The impedance response of the units was evaluated, and an 8” woofer was selected for low frequencies, along with two 4” units for mid/high frequencies.&lt;/p>
&lt;p>Measuring the Thiele-Small parameters of the speakers revealed a high &lt;em>Vas&lt;/em> (Equivalent Suspension Acoustic Volume), necessitating a large cabinet volume for proper control. To address this, and given the availability of two 8” woofers, the team opted for an isobaric speaker configuration, acoustically coupling the woofers to improve control and reduce cabinet size. Additionally, the cabinet was designed as vented to enhance low-frequency response.&lt;/p>
&lt;p>The Thiele-Small parameters were obtained using the software &lt;a class="link" href="https://www.roomeqwizard.com/" target="_blank" rel="noopener"
>REW&lt;/a>. With these parameters, simulations were performed in &lt;a class="link" href="https://www.tolvan.com/index.php?page=/basta/basta.php" target="_blank" rel="noopener"
>Basta!&lt;/a> to optimize the design for the desired response. A key focus was tuning the port’s resonance frequency to achieve strong low-frequency performance. The transducer had an &lt;em>fs&lt;/em> of 45 Hz, and the port was tuned to 40 Hz by adjusting the tube length and cabinet air volume.&lt;/p>
&lt;p>Based on these results, a 3D model of the cabinet was created using &lt;a class="link" href="https://www.solidworks.com/" target="_blank" rel="noopener"
>SolidWorks&lt;/a>, and the design was used to cut the materials for construction.&lt;/p>
&lt;p>&lt;img src="https://dibernardo.netlify.app/p/building-and-design-of-a-personal-loudspeaker/dise%C3%B1o_gab.PNG"
width="422"
height="306"
srcset="https://dibernardo.netlify.app/p/building-and-design-of-a-personal-loudspeaker/dise%C3%B1o_gab_hu4105664598446689879.PNG 480w, https://dibernardo.netlify.app/p/building-and-design-of-a-personal-loudspeaker/dise%C3%B1o_gab_hu11734023399320749680.PNG 1024w"
loading="lazy"
alt="3D modeing of the loudspeaker box"
class="gallery-image"
data-flex-grow="137"
data-flex-basis="330px"
>&lt;/p>
&lt;p>Details of this process are documented in the following &lt;a class="link" href="https://drive.google.com/file/d/1uej1m6gwg99JoPEw5Jbu3cTq74ViIG58/view?usp=sharing" target="_blank" rel="noopener"
>design report&lt;/a>.&lt;/p>
&lt;h2 id="construction">Construction
&lt;/h2>&lt;p>The wood was cut according to the 3D model, and the cabinet was assembled.&lt;/p>
&lt;div id="carousel0" class="carousel" duration="700000">
&lt;ul>
&lt;li id="c0_slide1" style="min-width: calc(100%/1); padding-bottom: 700px;">&lt;img src="https://dibernardo.netlify.app/images/bassado/b1.jpeg" alt="" />&lt;div>&lt;div>&lt;/div>&lt;/div>&lt;/li>
&lt;li id="c0_slide2" style="min-width: calc(100%/1); padding-bottom: 700px;">&lt;img src="https://dibernardo.netlify.app/images/bassado/b2.jpeg" alt="" />&lt;div>&lt;div>&lt;/div>&lt;/div>&lt;/li>
&lt;li id="c0_slide3" style="min-width: calc(100%/1); padding-bottom: 700px;">&lt;img src="https://dibernardo.netlify.app/images/bassado/b3.jpeg" alt="" />&lt;div>&lt;div>&lt;/div>&lt;/div>&lt;/li>
&lt;li id="c0_slide4" style="min-width: calc(100%/1); padding-bottom: 700px;">&lt;img src="https://dibernardo.netlify.app/images/bassado/b4.jpeg" alt="" />&lt;div>&lt;div>&lt;/div>&lt;/div>&lt;/li>
&lt;li id="c0_slide5" style="min-width: calc(100%/1); padding-bottom: 700px;">&lt;img src="https://dibernardo.netlify.app/images/bassado/b5.jpeg" alt="" />&lt;div>&lt;div>&lt;/div>&lt;/div>&lt;/li>
&lt;li id="c0_slide6" style="min-width: calc(100%/1); padding-bottom: 700px;">&lt;img src="https://dibernardo.netlify.app/images/bassado/b6.jpeg" alt="" />&lt;div>&lt;div>&lt;/div>&lt;/div>&lt;/li>
&lt;/ul>
&lt;ol>
&lt;li>&lt;a href="#c0_slide1">&lt;/a>&lt;/li>
&lt;li>&lt;a href="#c0_slide2">&lt;/a>&lt;/li>
&lt;li>&lt;a href="#c0_slide3">&lt;/a>&lt;/li>
&lt;li>&lt;a href="#c0_slide4">&lt;/a>&lt;/li>
&lt;li>&lt;a href="#c0_slide5">&lt;/a>&lt;/li>
&lt;li>&lt;a href="#c0_slide6">&lt;/a>&lt;/li>
&lt;/ol>
&lt;div class="prev">&amp;lsaquo;&lt;/div>
&lt;div class="next">&amp;rsaquo;&lt;/div>
&lt;/div>
&lt;p>As shown in the images, rock wool was added as an acoustic absorber. Measurements revealed this was excessive (the port resonance was overly damped), so some rock wool was removed to achieve the desired result.&lt;/p>
&lt;h2 id="measurement-and-calibration">Measurement and Calibration
&lt;/h2>&lt;p>Frequency response and directivity measurements were conducted in the university’s laboratory using the following equipment:&lt;/p>
&lt;ul>
&lt;li>Powersoft M50Q amplifier&lt;/li>
&lt;li>Earthworks M50 microphone&lt;/li>
&lt;li>RME Fireface UCX audio interface&lt;/li>
&lt;li>OUTLINE ET250-3D turntable&lt;/li>
&lt;/ul>
&lt;p>Using this setup and the &lt;a class="link" href="https://artalabs.hr/" target="_blank" rel="noopener"
>Arta&lt;/a> software, the acoustic response of individual transducers was characterized (useful for crossover filter simulation). Vertical and horizontal directivity responses were also evaluated to determine the best orientation for use. Frequency response graphs for both transducers were generated.&lt;/p>
&lt;p>&lt;img src="https://dibernardo.netlify.app/p/building-and-design-of-a-personal-loudspeaker/patron_polar.PNG"
width="943"
height="584"
srcset="https://dibernardo.netlify.app/p/building-and-design-of-a-personal-loudspeaker/patron_polar_hu10205775189482527862.PNG 480w, https://dibernardo.netlify.app/p/building-and-design-of-a-personal-loudspeaker/patron_polar_hu2898494236095029192.PNG 1024w"
loading="lazy"
alt="Polar response for the mid/high driver"
class="gallery-image"
data-flex-grow="161"
data-flex-basis="387px"
>&lt;/p>
&lt;p>All measurements and in-depth analysis are included in the following &lt;a class="link" href="https://drive.google.com/file/d/1dPwJAqadPM3Ja80anA1P1Ei3EP9M8w-q/view?usp=sharing" target="_blank" rel="noopener"
>measurement report&lt;/a>.&lt;/p>
&lt;h2 id="crossover-filter-design">Crossover Filter Design
&lt;/h2>&lt;p>Finally, the crossover filter stage was designed. Using the previous measurements, data were uploaded to &lt;a class="link" href="https://kimmosaunisto.net/" target="_blank" rel="noopener"
>VituixCad&lt;/a> to calculate the simulations. The goal of the crossover filter was to achieve a pleasant frequency response for music playback and to enhance low frequencies. Vertical polar response uniformity was also a priority.&lt;/p>
&lt;p>Since the power stage required an active supply, an active crossover filter with a Sallen-Key topology was implemented. The number of filters was defined based on space and cost, and adjustments were made in the software to achieve the desired response. For example, the low-frequency driver used the following configuration:&lt;/p>
&lt;p>&lt;img src="https://dibernardo.netlify.app/p/building-and-design-of-a-personal-loudspeaker/filtro_cruce.PNG"
width="1221"
height="648"
srcset="https://dibernardo.netlify.app/p/building-and-design-of-a-personal-loudspeaker/filtro_cruce_hu13251352229816192527.PNG 480w, https://dibernardo.netlify.app/p/building-and-design-of-a-personal-loudspeaker/filtro_cruce_hu16925353032023854787.PNG 1024w"
loading="lazy"
alt="Crossover filter for the low frequency driver"
class="gallery-image"
data-flex-grow="188"
data-flex-basis="452px"
>&lt;/p>
&lt;p>Where:&lt;/p>
&lt;ul>
&lt;li>F1: High-pass fs=30 Hz | Q=0.67&lt;/li>
&lt;li>F2: Low-pass fs=480 Hz | Q=0.5&lt;/li>
&lt;li>F3: Notch filter at 220 Hz&lt;/li>
&lt;li>F4: Notch filter at 400 Hz&lt;/li>
&lt;/ul>
&lt;p>Before building the filter, the proposed configuration was tested with a digital filter to practically evaluate the system’s response.
Details of this section are provided in the following &lt;a class="link" href="https://drive.google.com/file/d/121wkPnp_QsODk99a2Jm44jfb-Xbl6ZKn/view?usp=sharing" target="_blank" rel="noopener"
>crossover filter report&lt;/a>.&lt;/p>
&lt;h2 id="conclusions">Conclusions
&lt;/h2>&lt;p>This project allowed us to apply theoretical concepts in practice and gain a deeper understanding of the development and challenges involved in designing an electroacoustic system.&lt;/p></description></item></channel></rss>