I created a tone-control/karaoke-circuit using several techniques and circuit elements which was covered this semester. This device is often used by DJ’s in order to adjust the bass and treble of music, and is used in higher-end speaker systems as well. The project utilizes 5 different blocks, each with their own purpose. The first block combines the two channels of sound into one sound. The second block utilizes the Baxandall tone circuit in order to allow for adjustments to the bass and treble frequencies of the sound. The third block allows for volume control. The fourth block has the LED’s that shows the volume level. The last block amplifies the sound to an acceptable level in order for the output to be of an appropriate volume.
This block accepts two inputs and routes them into an OpAmp. This block consists of two different modes, controlled by an SPDT switch. The mixer mode is achieved with an inverted-summing amplifier, while the kareoke mode is achieved using a subtracting amplifier. 1% tolerance resistors were used in this block as this block requires a very precise resistance. The inputs to this block is from a 3.5mm audio jack, which consists of the left, right, and ground channel. This block outputs to the second block.
This block utilizes two important concepts pertaining to Op-Amps. The mixer mode utilizes an inverted-summing amplifier, while the karaoke mode utilizes the subtraction amplifier.
The formula for the inverted-summing exam is as follows:
The formula for the subtraction amplifier is as follows:
We need the output voltage of the subtraction amplifier to be -(L+R). This can be achieved by using resistor values of 1k$\Omega$.
Similarly, for the subtraction amplifier, we need an output of (L-R). This can also be achieved using 1k$\Omega$ resistor values.
This capture has been generated in a simulation using values identical to the measured values in the actual experiment. This waveform exactly matches an oscilloscope capture from the actual experiment, with the SPDT switch put on both ends.
Note that the green line represents the left input, the red line represents the right input, and the orange line represents the output.
The purpose of this block is to adjust the treble and bass frequencies of the input signal. This feature is widely used in the music industry, and it allows for certain sound frequencies to be highlighted. We want the gain range to be between 1/10 and 10.
This block utilizes the baxandall-tone circuit, which has a different gain for the bass and treble components. We need to ensure that, with a 100k$\Omega$ voltage source, the gain remains between 1/10 and 10. The regular gain equation for a Op-Amp can be used in this case, as will be seen in the derivation. In addition, any value of capacitors in the Baxandall-tone circuit is acceptable as long as the capacitor between the potentiometers is significantly smaller than the one on the top of the circuit. This will ensure that the circuit works properly.
We need to start by using the maximum gain to derive the equation. Before starting, we know that the equations for the bass and treble part of the circuit will be the same, hence the same resistors will be used in both sections. This simplifies the calculations quite significantly. For the maximum gain, we ensure that the potentiometer is set to 0 as it allows the top resistor (
We know that
We also know that, for the smallest gain, the denominator must be far larger than the numerator. Therefore, the potentiometer must be set 100% of the way to the right.
When you combine the above two equations using simultaneous equations, you get that the resistance R is
This capture has been generated in a simulation using values identical to the measured values in the actual experiment. This waveform exactly matches an oscilloscope capture from the actual experiment.
The first image demonstrates the output when both potentiometers are set to 0. The second image shows when the bass potentiometer is set to 100 while the other is 0, and the third image shows when the treble potentiometer is set to 100 with the other at 0.
Note that the blue line represents the input and the red line represents the output.
The purpose of this block is to control the volume of the circuit. The volume should adjust from 0 until the maximum volume of the input. This can be done using a potentiometer.
This block utilizes a simple potentiometer. A potentiometer works by allowing for the resistance to be adjusted, but this can be converted into a voltage divider by grounding the bottom terminal and utilizing the middle terminal as an output. This allows the voltage to be altered, thereby adjusting the volume of the input.
A potentiometer works by allowing you to adjust the resistance of an element. It works as such:
This can be determined through voltage division, as the potentiometer allows for the resistance below the dial to increase and decrease. Since the resistance below the dial is connected to ground, it also controls the voltage. Since the amplitude of a sinusoid is the voltage, this allows for the sound to be controlled as well.
This block accepts a signal and outputs LED lighting to represent the volume level. There should be 4 lights, with them turning on at 0.25V, 0.5V, 1V, and 1.5V respectively.
This block will utilize a comparator Op-Amp circuit. This circuit works by comparing the voltages between the positive and negative ports of the Op-Amp. If the voltage on the positive port is larger, then the light will turn on. Otherwise, the light will turn off.
A comparator circuit requires certain pieces of information in order to work properly. Firstly, we must make sure that there is a baseline for the comparator op-amps to compare voltages to. This can be done by supplying DC power to the circuit, and dividing the voltages using resistors. We know that we need 0.25V, 0.5V, 1V, and 1.5V. This can be done by placing two 0.25$k\Omega$ resistors on the bottom, two 0.5$k\Omega$ resistors above that, and a 13.5$k\Omega$. This can be verified as
It is also necessary for there to be a limiting resistance before the LED. The limiting resistance can be found with:
Where
When we plug all the values in, we obtain 1170k$\Omega$.
The purpose of this block is to counteract the gains from the op-amps in the previous blocks in order for the output to be at an acceptable volume.
This block utilizes a simple inverting op-amp. The gain of this block should be designed to counteract the gains of all the previous blocks. The equation for the gain is
The goal of this block is to counteract the gains of the previous blocks. We know that the gain of the first block is 1 because all the resistors are the same. We also know that the maximum possible gain for both the treble and the bass parts of the Baxandall-tone circuit is
This capture has been generated in a simulation using values identical to the measured values in the actual experiment. This waveform exactly matches an oscilloscope capture from the actual experiment.
The first image demonstrates the output when both potentiometers are set to 0. The second image shows when the bass potentiometer is set to 100 while the other is 0, and the third image shows when the treble potentiometer is set to 100 with the other at 0.
Note that the blue line represents the input and the red line represents the output.
Red: Block 1
Yellow: Block 2
Green: Block 3
Blue: Block 4
Purple: Block 5
This project was a smashing success for me. I was able to complete the breadboard prototype and the PCB in time, and they both worked perfectly.
There were several hiccups that I encountered. Firstly, I ran out of wires quite quickly for the breadboard, and this was mainly because I used a relatively large breadboard. Secondly, I had trouble debugging my wiring on the breadboard as the wires and elements started to be placed too close to each other, leading to a lot of confusion. I also had a lot of trouble soldering the PCB, with me soldering the 9V battery the wrong way in, requiring me to cut the wire and resolder it the right way.
Overall, this project really allowed me to experience the life of an engineer. I thoroughly enjoyed it and hope to see similar projects in my future courses at Penn State.