I decided to share the experience of creating a sound indicator on the 6E1P lamp. When creating a tube audio amplifier for headphones, it was decided to visualize the audio signal. The choice fell on this Soviet lamp. The result of the work was a small printed circuit board with a size of 30x33 mm. This article provides a diagram of this board and a description of the operation algorithm.
The 6E1P lamp is not scarce and is relatively easy to get at a price of about 200 rubles. This article will not address the issues of creating an audio amplifier and audio quality , it will deal exclusively with the connection circuit and control of the 6E1P lamp. Anyone can repeat my scheme, modify or use the individual nodes of the scheme in their devices (source code attached).
When creating a tube amplifier, it was decided to decorate, to make the appearance of the tube amplifier for headphones more alive due to the animation of the sound signal. The amplifier itself is assembled on two double 6N23P triodes according to the SRPP cascade scheme. The design of the amplifier repeats a trapeze: 6N23P lamps are placed at the back, the 6E1P lamp is located at the front. Read more about the amplifier here .
Photo amplifier (large)
As an introduction, I will give the main points that were at the time of the beginning of the development of the lamp control circuit, and identified the final implementation:
The 6E1P lamp glows with a pleasant green light and looks original among many other lamp indicators of the past. The lamp mounting is vertical, which is much more convenient than end lamps, especially when used in conjunction with other vacuum tubes in the amplifier, which are typically mounted vertically on the top panel.
The required supply voltages are combined with the supply voltages of other vacuum tubes, which does not require a separate power supply. True, at this point there is a certain feature (see below).
Immediately the task was to draw a joint audio signal from two channels to one 6E1P lamp. Usually placed on each channel by its indicator lamp or use the output of only one of the stereo channels for visualization. Here the task was to make an “honest” display of the audio signal.
The solution of point 3 requires a signal adder, which, of course, can be implemented on vacuum tubes, but then the control circuit of the indicator lamp becomes equal in complexity to the circuit of the amplifier itself. The classical 6E1P lamp switching circuit provides for the removal of a signal from either the anode of the amplifier's output lamp, or the use of a special matching transformer, which is much harder to get than the 61 lamp itself. Also, classical schemes do not give auto-tuning of the signal amplitude, which leads to the dependence of the degree of lamp opening on the volume level. This dependence becomes critical when using headphones, since The headphone impedance can vary between 32-600 ohms, which gives a change in the amplitude of the output signal tenfold. Therefore, it was immediately decided: to use integrated amplifiers; to implement auto-tuning, use a digital potentiometer controlled by a microcontroller; implement digital filtering of the audio signal by the controller.
It is considered that it is not beautiful to use integrated circuits in tube audio equipment. I have no such preconceptions and, as was written above, the quality of the audio signal is not discussed in this article. It will be exclusively about the quality control circuit of the 6E1P lamp.
Let's get started!
PART 1. POWER AND CONNECTION OF LAMP
The 6E1P lamp uses standard filament and anode voltages. Glow: 6.3V / 300 mA -> 1.9 W Anode: 250V / 6 mA -> 1.5 W
In my project I used TAN 21-127 / 220-50 to power the 6E1P lamp, the rest of the amplifier lamps and the power supply of the microcontroller. Anode voltage + 270V was used in the final circuit.
You can read more about TAN transformers here . If you aim only at visualization, then the use of a TAN may not be appropriate. It would be more reasonable to use power adapters with the subsequent formation of high voltage, heating voltage and power supply of the controller using switching power supplies. For example, this option is used for gas-discharge lamps in Nixie lamp watches.
I would recommend choosing a 24V power adapter. This will make the upconverter circuit simpler and more efficient and will allow you to make a virtual ground for the lamp (see below).
Now about connecting the lamp. The heating leads (4 and 5) of the 6E1P lamp are isolated from the rest of the lamp leads, so you can connect them as you please, the main thing is that there is a voltage of about 6V between them. Can be constant, can be variable. Only in the case of the use of TAN, it is recommended to make a tightening of conclusions 4 and 5 to conclusion 2 (ground) in order to exclude the breakdown between the heat and the cathode. Pins 3, 7, 8, 9 are connected to high voltage. And now, the most interesting thing - pin 1 (grid) controls the opening of the lamp with the help of negative voltage! Voltage -12 ... -15V on the grid relative to the cathode corresponds to the full disclosure of the lamp, and voltage 0 - full closure. And even worse, in reality, when the grid is grounded to the cathode, the lamp does not fully close: instead of a thin even luminous strip, there is a bold luminous cone. This is solved by applying a small positive voltage to the grid (+ 5V is enough). Thus, the lamp is controlled by voltage relative to the cathode from -15V to + 5V. That, to put it mildly, is uncomfortable.
Power scheme
And so, the microcontroller power circuit (+ 5V) looks like this:
One of the TAN windings at ~ 20V was used. Rectifier assembled at + 28V. Chip is used low-power pulser TPS62120. The chip was available and has small dimensions, so the choice fell on her, but her maximum input voltage is 15V. Therefore, the voltage from 28V to 15V falls on the limiting resistor R4 and additionally protects the microcircuit Zener diode to 15V. I cannot recommend such a hybrid power supply for repetition, but, nevertheless, it works stably for a current of 10 mA. Having a zener diode is better to assemble a parametric stabilizer . Voltage + 28V I use to control the lamp. Voltage + 5V is used to power the rest of the board (amplifiers, microcontroller, potentiometer). To control the lamp, we create a virtual ground + 21V with the following scheme: We use power + 28V and with the help of a stabilitron on 21V we create a virtual ground AMP_GND on + 21V. It is this virtual earth that needs to be connected to pin 2 of the lamp. This is possible because all windings of the TAN are insulated, and the earth of the board is not connected to the earth of the lamp supply (+ 250V). Then to control the lamp we get the voltage range from -21V to + 7V. In case you use power from a 24V power adapter and generate a high voltage with a pulse source, then form a virtual earth of about 18V with the same exact circuit (replacing the zener diode with 18V).
PART 2. ANALOG CHANNEL DIAGRAM
Let's turn to the audio signal conversion circuit. The audio channel should provide the summation of the signal from two channels and bringing it to the input range of the controller's ADC (signal range not exceeding 5V).
We have two channels. Since when connecting any circuit, it distorts the source signal, and the amplifier's output is the least sensitive to this, we connect directly to the amplifier's output (parallel to the load, to the headphones). The signal is decoupled on a constant by input capacitors 0.1 microfarad. Diodes VD4 and VD5 are to protect the circuit from possible surges on the input. Next on each channel is a inverting amplifier (DA1A and DA1B) with a gain of 0.34. They perform 2 tasks. Firstly, for high-impedance headphones, the signal swing is reduced by 3 times, leading it to the 5V range. Since, for example, for a 600 ohm headphone, the signal sweep can be up to 16V. Secondly, they serve as buffer amplifiers for the subsequent adder. If they did not exist, and the signal was immediately sent to the adder, then, in fact, both channels would be connected to each other through 20 kOhm resistors to each other, which would worsen channel separation.
Next, the signal goes to the adder and the amplifier with auto-tuning (DA1C). The gain can vary from 1 to 1000. The digital potentiometer AD5160 is one of the most readily available and cheapest. He has 256 positions. The amplifier is selected AD8608 quadrupled case. The last fourth amplifier (DA1D) used to create a virtual earth + 2.5V:
In principle, a similar scheme could be made for the virtual earth + 21V lamp.
PART 3. MANAGEMENT DIAGRAM
ATiny25 / 45 is selected as a microcontroller. Productivity sufficient for this task, food 5V, the small case. Usually, programming the AVR8 family of controllers is simple and intuitive, but the ATiny25 / 45 is an ultra-low integration controller with almost no hardware blocks. Therefore, the work with the ATiny25 / 45 universal transceiver is not pleasant: almost everything has to be done programmatically.
The 6E1P lamp control circuit itself is built on an IRLML2803 field-effect transistor and is a simple PWM with a low-pass filter. Transistor switches voltage + 28V or ground. Regarding the output of 2 lamps, it will be + 7V or -21V.
Also in my device I decided to add a miniature dual relay for switching. With the help of it, I commute the anode voltage of the amplifier after the lamps warm up and control the LED in the power switch, changing its color from red to green after warming up. There is one special feature in this: the PB5 port of the controller is used as a RESET and is not available until the corresponding FUSE bit is flashed, but after its firmware programming via SPI will become impossible. So we activate the PB5 port at the very last turn, when everything is debugged and works as it should.
PART 4. MANAGEMENT ALGORITHM
As a result of lengthy experiments with various audio signal processing methods and selection of various parameters, the best option was found, which gives good visualization. Anyone can develop their own regulation algorithm, which would be better suited to its hardware solution or to listen to music content.
My method includes: pre-filtering the signal, determining the local maxima of the signal, generating a lamp control signal, controlling the gain of the amplifier.
Now in order I will describe the operation of the algorithm.
The total signal of both channels is read by the ADC with the maximum sampling rate for this microcontroller - 77kSPS.
The signal is filtered. A simple method is used to calculate the average of 4 counts. Thus, we reduce the sampling rate to 19.2kSPS.
The signal is variable with a constant component of + 2.5V (0x7f). Straighten it (subtracting 0x7f) and remove the noise near zero.
Based on accumulated 5 counts (averaged), a local maximum (peak) is searched using a sliding window, which reduces the frequency bandwidth to about 2.4 kHz.
We adjust the PWM output to the lamp depending on the peak value obtained. I introduced the regulation with asymmetric constraint. Those. I increase PWM with a big step, and I decrease with a small one.
Adjust the gain with a digital potentiometer. Algorithm of regulation I propose the following:
a) We find the maximum of all the peaks at a certain time interval. In my version, on average, this interval is about 300ms.
b) If at this interval the maximum peak is more than 90% of the input range, then decrease the gain.
c) If at this interval the maximum peak is less than 50% of the input range, then increase the gain.
d) The proposed analog circuit has the following drawback: the regulation of the gain is non-linear due to the applied method of switching on the potentiometer. Especially strong non-linearity with high gain, i.e. changing the potentiometer by one step leads to a multiple increase in the gain and, as a result, to overload the input of the ADC. Therefore, I had to abandon the use of the last few steps of the potentiometer (254 and 255), and instead amplify the signal, simply multiplying it by 2 ÷ 8.
Real oscilloscope measurements showed that the algorithm, on average, updates the PWM data with a frequency of 1 kHz. The frequency floats strongly and depends on the amplitude of the input signal. But, in any case, the update of the PWM data occurs at least with a frequency of 100 Hz, which is sufficient for good visualization. The gain change occurs from 2 to 10 times per second.
Video with the result of the lamp for different musical compositions
The lamp responds well to both high-pitched and low-pitched sounds. Works out clearly, without delay. The magnitude of the response is adequate to the volume of the sound. On this I consider the task as solved.
I want to note that, although this option is final and no further refinement is planned, however, this version leaves room for improvement. If the task of refinement had come together before me, I would improve the scheme in the following points:
Would change the power supply circuit to fully pulsed. Linear stabilizer would not be set, because transformer winding produces only 47mA.
Would change the potentiometer circuit to eliminate non-linearity.
Would use a parametric stabilizer to form a virtual ground + 21V and reduce the capacitors C18-C20.
That's all for now. In the future I plan to write an article on the manufacture of the mechanical part of the amplifier and share my experience in manufacturing REA cases made of wood, manufacturing parts from sheet metal, painting, varnishing and marking through stencils and dies.
Thanks for attention. Waiting for your questions and comments.
PS I worry in advance that the topic could develop into a discussion of tube audio and audio quality issues. Therefore, I ask you to discuss only issues related to the visualization of the audio signal. Thank you in advance.