Tuesday, August 28, 2012

PWM amplifier 1 - The PWM modulator design III.

On my previous analysis, I didn't pleased with the quality of triangle signal, but a little modification made better result. In the second article, the triangle (and the PWM) signal is better, but not perfect. This is the reason why I simulated the modulator design with another oscillator circuit.



The design is very simple, simplest then the previous signal generator version. This new contains simple CMOS oscillator. The design is small, simple, and the output signal is perfect. The duty-cycle is always 50%, the amplitude of square signal is 5...15V if required. The frequency setting is very easy, on 10 MHz the square signal is really nice.

The red is the square output of CMOS circuit, the green is the triangle signal.

The triangle and the square signal is much better compared to the analog oscillator circuit.

This is the schematic, the difference between R1 and R2 is 10x, the capacitor can be very small value, the frequency is very stable.
Unfortunately, the upper ideal stage will be wrong if I continues the design with comparator circuit on the simulation. (See the schematic, I did not continued the triangle output to the comparator input). If the triangle signal after CMOS (or TTL) circuit wired to the comparator, the signal will be non-usable:
The square signal stay good, but the triangle signal going wrong on the simulation.

 The usefulness triangle signal.

I did nothing else, I just continued the signal with comparator.

The upper problem can be solved with a small modification, see the images and the power source of the comparator on the schematic:


On the circuit, I using independent DC power source for comparator chip only. After I getting back the nice signals, but with this design the comparator doesn't made PWM signal from sources. If I used common ground, the comparator started to work, but the triangle (and the PWM) signal is going wrong again:

Transient analysis result when the CMOS oscillator and the comparator have common ground:

At this moment I don't know how to solve the problem on the simulator. I wonder, (and not sure) about the result of real circuit. The simulation is usefulness, but the oscillator design is better and simpler before using comparator. So at this moment, the analog oscillator design is much better than this new one.

PWM amplifier 1 - The PWM modulator design II.

I have successfully cleared the last design example of PWM modulator circuit. This PWM modulator will be used before TAS H-bridge chip. In this article, I don't really like the signal at the end, and I made mistakes about power sources (with Zener diodes) on the last simulation schematic. Not too much, but I modified the design, and I got better result. I deleted the dead-time logic, because for the TAS chip not required, the soft start only is easier. At the end of this newer design, I got nice signal from both TTL and CMOS outputs and comparator without dead-time logic. See images.

In this image the green is the triangle signal, the red is 10 kHz sinus, a yellow is the PWM output on the CMOS 4009 inverter.

I know, that not really important, but how I know about the quality of modulated PWM signal? I have to convert back to the original with RLC network. This is the blue line.
I changed the CMOS 4009 (15V power for comparator and CMOS circuit) to TTL 7414 (5V power for comparator and TTL circuit). The TTL output is the yellow line.

 The decoded result at the end of TTL circuit is the blue signal.

I made small modifications on the circuit around the comparator. I changed Z diodes DC power sources, the output of the comprator continued with only one TTL or CMOS gate (inverter). I analyzed the PWM signal after the TTL/CMOS chip, but the output of comparator is really good too with this schematic:

Friday, August 17, 2012

PWM amplifier 1 - The PWM modulator design I.

Newly detected TAS5630 chip can solve my problems about the PWM amplifier. This chip have analog inputs, the package contains all required parts (A/D converter, PWM modulator), and the parallel mode is possible if less than 4 Ohm output impedance required. with this package we have one paralleled mono or one stereo poweramp with analog input.

But I have TAS5261 chips, without analog input. For this design required TAS55xx PWM modulators and analog/digital converters. These chips recommended for home DVD  players, the power supply is 3.3 volts only. I don't think that this solution is ideal for instrument amplification.

In this post, I writing about the method and simulation of analog PWM modulator.

First I need a triangle function generator. I found too much... The clock of PWM input TAS chip is 192-384 kHz, what is understandable if digital chips placed before chip. For this frequency, not too easy to find triangle signal generator with very good output.

Can be found one-chip function generators. One of them is LM566 (with this chip I found a schematic) not available here and now, or we can use XR2206 or ICL8038 chips. These chips are very simple solutions for triangle output, maybe I will try some of them. The maximum frequency on the datasheet is 0.5MHz, typical is 1MHz, but the 8038 have 300kHz maximum. I have no experiences with these function generator chips, so I don't know about the output quality. This is the reason, why I seek discreet analog function generator for triangle output. The another reason, is, function generator chips are not available on Multisim.


The first tryouts I have no success:
This function generator promised for perfect output, but the triangle with 20 kHz only is really bad. So I don't need to try this design for 200-300 kHz.

I tried more triangle generators with op-amps, but the output is not good enough. Finally I found a really good analog triangle generator with nice triangle and square outputs. This circuit can be used up to 4MHz what is more than enough.

I have good result on 300kHz:
See the simulation output, this is 235 kHz. Very easy to set the frequency and duty cycle.

I tested this discreet (but easy to set) schematic  on higher frequency. Here ate the test results:

1.3 MHz:
2MHz:
3.5 MHz:
6 MHz:

I think, if the upper schematic is good enough on 2-4 MHz, then this is good for around 300 kHz only.

The triangle output of this circuit wired to the fast comparator. the most of comparators doesn't worked on Multisim for me, but finally I found one what is very good for output simulation:
 
Example about the signals in the circuit:
The purple line is the triangle output of function generator, the green is the part of 1kHz sinus (audio) input, the red is the TTL PWM modulated square with variable duty cycle.
In this image can be seen how duty cycle modulated by the sinus input signal:

Continued the circuit simulation, the next is the comparator. This part AD8611 is good on Multisim, but I think another comparator (for example LM311) is good on real life too. The triangle signal and the audio (sinus) input have to be connected to the comparator's inputs.


The most important question is, the quality of the PWM modulated output. What I get back, if the PWM modulated square signal converted back to the original sinus wave. The quality of this method cannot seen by the quality of the PWM modulated output. See the image:

The green line is the original audio sine wave signal. I have to get back this wave from the PWM outputs. The dark-red is the (good) result if the PWM output converted back to the original sine. What is the blue line, I will tell you soon....

After the comparator chip, I put TTL logic. This logic made soft start while the triangle generator up, and disabled the input of TAS H-bridge. This method made inverted and non-inverted PWM outputs. Finally this is the "deat time" logic. The TAS5261 contains "dead time" logic, and the most if comparators have inverted and non-inverted outputs. This TTL logic required, if the output of PWM amplifier is simple MOSFETs, not H-bridge chips with internal logic what I want to use.

......the blue line (what is really wrong and distorted) is the converted output of TTL chips.
Here are the signals in this design: The sine is 20 kHz now, the blue line is the triangle signal on 235 kHz, the red line is the TTL PWM output, the tall brown line is the output of comparator. The result is much better on the comparator output.


After simulation results I have many problems.

The first question is about the precision of simulation. How about the simulation and the  reality, whats about the differences, depending on the PCB design and the quality of parts.
After these PWM modulated square waves, I have to put TAS H-bridhe chips, and I can use these outputs for audio. Maybe this method have good result, but maybe not. Maybe the TTL outputs (what is really wrong after decoding on the simulation result) good enough for discreet MOSFET drivers. Finally I have to test the DC offset of comparator inputs and outputs, and the linear frequency range of the decoded output. These solutions is on the next post.

Thursday, July 26, 2012

Prototype PCB with soldering mask

I made this movie how I made very good quality prototype PCB with soldering mask.

Tuesday, July 24, 2012

New PWM power chips with analog inputs

In the previous article I thinking about the poweramps of my guitar/vocal amplifier. The power supply is ready, I have 1200VA, this is the reason why I want to include more than one guitar amp to this new design. But whats about the top of this amplifier case, where I need poweramps and preamps?

I think for the guitar amp I will use bridged TDA7293 because for 8 or 16 Ohm speakers the bridged amp solution is better. But for keyboard/vocal I wanted to use Class-D TAS chips. These chips have 125W output power for 8 Ohm, but 315W for 4 Ohm. The impedance of additional cabinet for vocal or for guitar can be 4 Ohm (or less) if required. In my previous DIY amplifier I used bridged TDA chips, and I really like it. This is the reason why I want "hybrid" solution. One analog amplifier for guitar with TDA chips, and another one for all others with PWM solution.


This is one example that the 4x200W TDA bridged solution is more than enough for clubs for guitar and vocal (but this is gym):



For the PWM solution I think about TAS5261 chips. This is small power bridge with PWM input, but PWM modulator and A/D converter required. I have no experience with these chips, and these solutions have very small size, I am not sure that I can assemble them.

This chip is 2x210W PWM power-bridge with the smaller package.

This is TAS5261 chip, 1x350W power bridge.

I like these solutions, error and speaker protections included, chips have very good efficiency, no large heatshink required. The efficiency of TDA solution is about 60%, but his PWM chip have more than 90%.

But these TAS chips offered for home theater or home DVD systems, maybe not for instrument amplification. See the datasheet:
  • 315W - 4 Ohm
  • 220W - 6 Ohm
  • 125W - 8 Ohm
This is the reason why I don't want to use this solution for 8 Ohm guitar speakers, but maybe want to use for 4 Ohm vocal or additional cabinets.


The another thing that I don't want to use required additional circuits like A/D converters and PWM modulators. These chips have very small package, and the power is 3.3V only.

The PWM modulator:

The one pin of this chip 0.2mm width, the distance between the middle line of pins are 0.5mm. Very hard to solder and assemble these parts.


But now the TAS PWM power bridges have analog inputs. PWM modulators and A/D converters not required. The package of these new solutions have 44 pin DKD, and the new 64 pin PHD. The 44 pin DKD package is same as like the previous TAS5261 chip. The biggest version of new analog input TAS chips have 600W power output, what is really great on very small size. See the datasheet page 18.

The benefits:
  • Very good efficiency (85...93%) no large heatshink (and cooler) required
  • Have analog inputs, no PWM modulators and A/D converters needed
  • The chip have error protection
But:

  • The 600W available on on 2 Ohm cabinet (the output of chips are paralleled)
  • 4 Ohm - 300W, what is not bad, but the previous chip have same feature.
  • 3 Ohm - 400W (paralleled outputs)
  • 6 Ohm - 210W
  • 8 Ohm - 160W.
But with these output powers have distortion 10% what is not small enough. If we need better quality, max. 1% distortion, the possible power will much smaller, the chip cannot be paralleled:
  • 4 Ohm - 240W. This is same as TDA bridged amplifier but on 8 Ohm impedance.
  • 6 Ohm - 160W
  • 8 Ohm - 125W
With smaller impedance with paralleled outputs on 1% distortion:
  • 3 Ohm - 310W
  • 2 Ohm - 480W
I found these solutions if I want to use PWM amplifier. The PWM chip is better than older solutions if I have speaker cabinet with 4 Ohm or less. I am not decided yet what will the poweramp on the top case of my guitar combo:


About the top of my new guitar amplifier design


This project stopped for years, but the wood case of my new guitar amplifier is ready. The rason of long time delay while I did nothing is that I used my old amplifiers. One is my previous DIY guitar amp have been disasembled, and I have a Carlsbro GLX100 amplifier with Eminence ReadCoat speaker, whats are very good solutions. This is the reason why I don't hurry with my new idea, but now I take apart my old DIY amplifier and the power supply have been moved to the new wood-case.

My old rack mounted amplifier was stereo for guitar, because I  using multieffect. I have Boss GT8, where not only the effects have stereo outputs, this is dual guitar effect, where I can use different amplifiers for left and right channels. This is the reason, why I have combo design but with two speakers for stereo solution:


After the wood case, I have metal cases for electronic circuits:

This is the back of the wood case:
....now without the middle slat because I need space to fix the speakers.

 The power supply built to the bottom of wood-case. I know that all other industrial solution have same case with other circuits on the top, but now I have more space on the top for amplifiers and equalizers. I think the larger distance between transformer and circuits have benefits:



The design of wood case was realy good, I made model of paper, and got to the professional carpenter, who manufactured and assembled:

The bottom of this amplifier is done, this is the power supply. From the power supply the required voltages wired to the top of amplifier case:
Here I have +/- 40V for poweramps, +/-18V for preamps, +24V for LED-s relays, and coolers.

But the most important question is what I have on the top

Because the power supply built to the bottom, I have more space on the top. The power of toroid transformer is 1200VA. I want to place guitar preamplifiers and amplifier (stereo for multieffect), and one more stereo poweramp for additional cabinets for vocal or keyboards. I need parametric equalizer, if I have enough space on the top-case, separated for left and right channels. I need audio mixer with mic preamps for vocal or another audio sources with headphone and line outputs.


But the most important question is, what will be the power amplifier on the top case. On this time, I want to build some digital class-D poweramp maybe for vocal only not for guitar. I have PWM power bridges, what is 1x315W, and I have 2x210W TAS chips:
1x350W with TAS5261 is would be enough for guitar, but this power available for 4 Ohm only. The guitar speakers are 8 or 16 Ohms. On 8 Ohm this chip have 125W output power. Now I think, for guitar (where the speaker is 8 Ohm) I will use bridged TDA7293 chips, where I got 200-220W for 8 Ohm speakers. This chip is very popular on guitar amplifier market, Marshall, Carlsbro using this solution. And for example the Crate Powerblock is PWM poweramp.


Because the vocal or additional guitar speakers have less than 8 Ohm impedance, the PWM chip is good solution. The benefit of PWM chip is the very high efficiency. But the disadvantage is the very small size of chip, TAS5261 have digital PWM inputs only, so I need PWM modulator like TAS5028 for example. TAS5028 is more small than TAS5261, so more harder to build the PCB. Finally the PWM modulators have digital inputs, so I need A/D converter for analog input devices.
I'm not sure that I can build complex design with these very small chips. The another detriment is that the PWM modulator and the A/D converter need 3.3V only, what is used for DVD players orfor computer soundcards. I don't think that the vocal or guitar amplifier design is same as like the home theater systems. The power stage of this idea need only non-symmetrical power voltage, +50V. I have +/-40V for TDA bridged solution, what is much better. I can bridged the TDA chips, but I can't bridge TAS power chips, because this is already internally bridged. At he moment I think the bridged TDA circuits are better and easier to build for guitar and vocal.

I take apart my old amplifier, old circuits for sale

I "disassembled" my good old power amplifier. This version was very good but the part of this device needed to my new idea. I used this old version for 10 years, without problem. This amplifier contains two stereo devices, one for guitar, and one for microphones/keyboards. I built this double-stereo amp to 2 rack mounted cases: one for power supply, and one for the amplifiers.

The old power supply:
It was the old power supply on the rack case #1. The toroid transformer is  1200VA, the Greatz on the heatshink is 10A, softstart, stabilized power supply for preamplifiers and EQ, simple power supply for amplifiers. By the speakon connectors the output voltage can be changed from +/-10v to +/- 70V for poweramps only. One speakon is the output for poweramps, and one 5 pin connector is for preamplifiers and mixers. The toroid transformer have 4x10W and 4X15V output AC voltages for poweramps, and 2x15V for preamps, and 1x18V for LED, relays, and coolers.

This power supply is good solution for my new guitar amp project, but without speakons, because the different output voltages are not required for the new design. Now I have only one speakon for poweramps, and one 5 pin connector for all others:
This is the box of new power supply, assembled from the parts of old one. This case placed to the bottom of new combo. The required power voltages will be wired to the top of amplifier. The content of upper case not ready, and I want to design something new.

The old amplifier:

The poweramp, 6 input mixer,10 channel equalizer built to another rack mounted case. This is old photo with one poweramp on heatshink, but this part of amplifier has been duplicated. One of then used for guitar, the another one is for keyboard and vocal. This is all-in-one sulution, but for small or larger clubs was good solution:


There are the list of very good circuits what I don't  need for new amplifier design, so there are for sale:

4x200W poweramps with TDA7293 assembled to heatshink with cooler:
The poweramps are two stereo circuits with bridged TDA7293/7294 circuits. Very reliable circuits. All stereo boards have speaker protection with UPC1237 chip.

The equalizer:
10 bands stereo RANE copy equalizer. This is active filter circuit design, the "Q" of EQ is permanent for all bands, what is very interesting solution. See more... With small PCB relays the have true bypass, and the circuit can be switch between +/-6 and +/-12 dB modes.
6 input audio mixer:
Very simple audio mixer with 6 stereo inputs. All inputs have gain and volume pots. Two of them have jFET preamplifiers for guitars with 4x gain, 4 of them have op-amp preamplifiers for all others with 100x gain.


Here are the gallery of my "disasembled" but error-free circuits and prototypes. Write me if you need something:


Monday, July 9, 2012

The power supply moved to new amp

The power supply of my stereo guitar amp is moved to the new place and ready. The old circuits can be fixed to the new "box", what is smaller but higher. The toroid transformer is 1200VA, with 4x15V, 4x10V AC for high power circuits, 2x15V AC for small power circuits, 1x18V AC for relay and LED. The DC and 24V AC voltages wired to the top of combo with 5 point cable, the +/-41V DC power for amplifier wired with speakon connector to the top of amplifier case:

Friday, April 27, 2012

Homemade PCB with soldering mask

New PCB boards made with new method. New boards have soldering mask. 

Images:

Monday, February 20, 2012

4 input headphone amplifier with TPA6120 chip

I already have schematic and PCB design with TPA6120 chip with 2 inputs. Now I made same design but with 4 inputs and one line output. The new design contains PCB transformer, dual +/- 15V power supply, 4 channel mixer without preamplifiers, unbalanced/balanced converters, and line output with level adjustment.

The schematic:


The device contains 4 audio inputs with volume adjustment. The input connector must be soldered to the bottom of PCB (blue) and the volume must be potentiometers soldered to the top (yellow) of PCB. The input and line output connectors can be 6.3mm jack OR stereo RCA connector. The headphone output can be 6.3mm jack only. The PCB contains header for 4 power filter circuits (whats are optional if not required) for 4 dual operational amplifiers. The operational amplifier chips are compatible with TL072 for cheapest solution, NE5532 for better quality, and with LT1124 for the best quality. These chips used for the input mixer, for unbalanced/balanced converters, and for the line output amplifiers.

The PCB design:


See also:

PCB sales of this project
Module name Size
(mm)
Area
(cm2)
PDF SCH PCB image Tested Price (US$)
Des. Sim.1 Full2 Sim.1 Full2 Man3
4 input headphone amplifier
189x112 212 No
Yes Yes - - No 30
39 Ask
How to order? Please read the rules carefully!