Friday, July 18, 2008

To live in a bike city

The other day a friend of mine who just moved over near Chapel Hill, NC asked me to send him some pictures of some of bike-friendly Davis for a bike planning committee there. Although Davis is a pretty expensive place to live, it is nice island in commuter-drive, suburbia-ridden America. The following pictures were taken on a 10-minute ride across town. If I were seeking things out, I would have also photographed the Dave Pelz Bike Overpass. Bikes save more than just gas--they save space and enforce good city planning.







Thursday, June 26, 2008

Adding a Master Volume to the Traynor Bassmaster

(Usual tube amp disclaimer: These amplifiers contain voltages that can kill you if you do not understand what you're doing, so please understand what you're doing if you decide to attempt anything described on this page.)

Today, I want to discuss the addition of a master volume control to the Traynor YBA-1. When I first heard about amplifiers that lacked a master volume, I was actually pretty confused because I thought this meant the amplifier had a fixed gain and no volume control. Fortunately, this is not the case, and non-master volume amplifiers have only a single volume control, and it is located in the preamp stage of the amplifier. Below is the general signal flow from guitar to speaker in one of these setups:



So here you can control the volume of the output by just one switch. Some people at this point might be thinking: now why would you need TWO volume pots for a device that has a single output? This is a reasonable thought, since a single volume control can control the output. However, each tube has a slightly different "flavor" of potentially desirable distortion. With one knob, the guitar player can certainly create distortion but distortion from the tubes will only occur at a specific volume. Your amp will need to be quite loud to create nice juicy distortion, potentially annoying all of your neighbors/roommates/bandmates. Master volume helps with this problem by pulling out some of the power right before the signal reaches the output stage. This allows only the preamp (and Phase Inverter) stages of the amplifier to be run "all out," while some of the signal is drained to ground prior to entering the output stage, thereby allowing a quieter sound from the speaker yet maintaining the distortion. The distortion characteristics of so-called "preamp distortion" certainly differ from "all out" distortion where the output tubes and speakers are involved as well.

Common Master Volume Method

On a push-pull output amplifier, a typical place to put the Master Volume is right after the phase inverter (PI). The 6D30 I just built has the master volume there, and I will implement the MV in simulation below in the Push-Pull EL84 example from Duncan Amps using LTSpice (free simulation software). If you're thinking about learning circuits, I can't say enough times how nice it is to have a good simulator handy. I think if you can read schematics that the tutorial here should be enough to follow along with the master volume implementation I will show. I start with the Duncan Amps push-pull EL84. A picture of the full schematic is shown below:


I have circled the individual stages of the amplifier as a guide to understand what's going on. Working from left to right, the RED box indicates the input. The next green box is the preamp stage. In this case, it adds about 30 dB of gain. The next stage (yellow) is the power output stage, followed by what I consider the "actuator stage." The actuator stage is basically where the signal goes from being an electrical current to a sound. The top area consists of the power supply. Since the master volume resides at the power output stage, let's focus on that. It is cut out below:


Basically, the resistance between the two points on the left side will determine the amount of signal passed to the 6CA7 tubes. Right now, the resistance between A and B is infinite. If you choose a large valued resistor and make it variable, it can function as a master volume here. A 1 MegaOhm resistance seems pretty common as a value that functions as an approximation to infinity in this position. Let's see how this works:

The gain at 1 kHz BEFORE the addition of R14 is 53 dB, and with the addition of R14, and after the addition, it is still approximately 53 dB. Therefore we have successfully added something, that does not affect our circuit (at least as far as gain is concerned). Dialing R14 down to from 1000k to 10k (two decades), the gain at 1 kHz is reduced to 50 dB (-3 dB => half). This trend continues at 1k where the gain is reduced to 38 dB. Given the very wide range of values required for this effect to take place, it is worth mentioning that you would only want to use an audio-tapered potentiometer in this position for it's logarithmic response (smooth over wider range). So there you have it, one method for implementing master volume!

Another MV Method Implemented On Traynor YBA-1
On the Traynor YBA-1, I implemented a slightly different MV control. The output section looked a little weird to me, so I opted for tapping some of the voltage off to ground before it made it to the output section. If you are interested in YBA-1 schematics, I have posted them here. The schematic for this mod is shown below:

The area on the left is the output from the preamp/phase inverter stages, and the 1 Meg potentiometer is added in sequence. Physically achieving this on the stock amplifier was not a terrible challenge and required no drilling, since I had an extra hole on the chassis where I had removed the 'ground switch.' As far as I could tell, the two-pronged plug with a ground switch was basically just a device for sending 120VAC from your arm to whatever was grounded. People always say to convert 2-prong tube amps to 3-pronged with proper grounding. Well, this amplifier made me a believer. A photo of the modded amplifier below:

The bright yellow wire that is heat-shrinked to the dull yellow wire running from the front panel to the back shows where the mod is connected. Basically, it works pretty well, although it is a little annoying that the MV is at the back of the amp. Ah well, there is no room on the front regardless.

Recap
Okay, today we have gone through two methods of implementing master volume on tube amplifiers that lack this feature. As always, these new 'features' do not come for free. The first method mentioned adds a HP filter that changes with the volume level, and you might find a similar effect with the second method, depending on the tone circuit in the preceding stage. You might try experimenting around with these MV methods in LTSpice to choose the one you want to implement if you're thinking about it. Or just plug them in and see which one you like better. Another MV method I did not talk about but will probably implement on the Traynor at some point is one I've heard referred to as the Ken Fischer #3. From what I understand, this is a master volume that drains the gain from all stages of the amplifier at the same time via a "ganged" potentiometer. This is a pretty interesting idea that I believe would change the overdrive characteristics by a good bit.

Sunday, June 8, 2008

Examination of a 6SN7 Preamp Circuit

Today, I will simulate a cathode-biased amplifier using 6SN7 tube model and compare the simulation to the data sheet. Using the data sheet acquired from the Tube Data Sheet Locater, we can see the schematic for a cathode-biased amplifier circuit and various values for resistances in the circuit. This example is derived from the excellent tube HOWTO at Boozhound Labs. A similar circuit analysis will be simulated here with a test for the accuracy of the onset of distortion in the 6SN7 tube in the simulation.

Input Capacitor

Viewing the circuit in the above chart, you can see Esig, which is the input signal for the circuit. There is initially a capacitor in the circuit for the purpose of coupling the signal to a prior stage or instrument. In case this has not been mentioned previously, the purpose of a capacitor in this position is two-fold:

1) Block the DC voltage from a prior stage

2) Pass the AC signal to the amplification stage

Input Resistor

So the signal travels from a source (such as a guitar or record player) through this capacitor. The next thing in the chain is the input resistor Rg1. The basic requirement for this resistor is that it be large enough to dominate the voltage divider formed by the source impedance. As you can see, we can choose any value in the 3rd column for this resistor, ranging from .1 to 10 MOhms. Following the example on Boozhound, I am choosing 100k. This is a pretty typical value for a record or guitar amplifier. Now the voltage across Rg1 is our input signal, which exists at the grid of the 6SN7.

Load Resistor

The next decision we must make is based on what we will be driving with this tube. Again, following the Boozhound example, we will be driving the input to a subsequent stage of the circuit. In this case, we are driving a 240kOhm resistance. So far we have

Rg1 = 100k

Rs = 240k

Therefore we direct our attention to the only row where Rg1 and Rs have these values (row 2). Here you can see we have a few options as far as the plate voltage goes: 90V, 180V, and 300V. You can see by comparing the columns for Eo at each voltage that the plate voltage determines how much output the amplifier can drive. For instance, looking at the row we have chosen to work with based on the input and load resistance (again, row 2), if Ebb=90V, the maximum output from this amplification stage is 16 volts RMS before the onset of distortion. Increasing Ebb to 180V allows the tube to produce 33 Vrms before the onset of distortion. I have chosen 180V. After decisions for input resistance, output load, and plate voltage are made, you pretty much just need to match the values to the parts in the schematics and simulate. I have made this file for LTSpice and stored it here. A drawing of the file is here:

Accuracy of Simulation Compared to Data Sheet

According to the first table, we expect the amplifier to have a voltage gain of 15 with the onset of distortion occurring when the amplifier tries to produce a signal with an RMS value of 33V. Using an input signal of 1V for normalization, we can get the following plot to test the transfer function of the equation:

Reading this plot, you can see that the gain is approximately 24 dB. “Argh,” I hear you moan in response to having to compare dB to a simple multiplicative gain. Honestly, I completely agree with you—this is annoying. However, decibels are nice for describing amplification because numbers like 1500X as loud start sounding a little silly. And even though this stage is only 15X the original signal, it will be fed into another stage that will multiply that signal by more, so the overall gain gets out of hand pretty quick. Back to the question at hand of whether the simulation is accurate, we must answer whether 24 dB gain is the same as 15X the original signal. The equation for the output gain in dB is

# dB = 20 * log(Vout/Vin)

Solving for dB, using Vout/Vin = 15 yields 10^1.2, which is approximately 15.8. Therefore, the simulation is pretty true to the data sheet. While we’re at it, I think it would be instructive to discuss the onset of distortion. Distortion is an important topic for both Hi-Fi tube amplifiers and guitar amplifiers, since you generally want to avoid distortion in the former and sometimes you want to create it in the latter. Viewing the data sheet you can see that the amplifier will experience 5% harmonic distortion when trying to create an output with an RMS-voltage of 33V. This time, I will use the transient response capabilities of LTSpice to simulate the scenario where the amplification creates a 33V output signal. I will use a 1 kHz signal for the simulation. From the frequency response, you can see the 1 kHz signal will be amplified by about 22 dB (12.6X the original signal using the above equation). Using the gain and definition of RMS voltage, you can find that a voltage of 3.6V will cause the gain stage to try to drive approximately 33V RMS, thereby introducing 5% harmonic distortion. This is shown below.

You can see a small amount of asymmetry in the negative cycles of the waveform, but this looks pretty nice, so presumably 5% harmonic distortion, although probably not an acceptable parameter for audiophiles with good ears, is not visible to the eye at least. To test if we are near a threshold point, I am running the simulation again with a 6V input signal at 1 kHz (shown below):

Here you can see the characteristic onset of distortion in the negative cycle of the waveform. This is all pretty cool, if I do say so myself, since it seems the simulation and data sheet match fairly well.

Cathode Bypass Gain Switch

I will do an analysis a bit later regarding how this sounds, but for now, I would like to discuss a simple method of adding a gain switch to this preamp stage. This method of adding gain is very simple. All I am going to do is add a switch to the cathode capacitor (Capacitor C1 in the circuit). The tube’s amplification abilities are related to the voltage at the cathode. There is always an AC signal at the cathode related to the input signal due to the nature of the tube. The role of C1, called the cathode bypass capacitor, is to filter this signal so that the node at the cathode is mostly zero. Removal of this capacitor allows the AC signal to exist at the cathode, thereby creating fluctuations in the cathode voltage. These fluctuations result in a reduced gain. The frequency response of the amp without the capacitor is shown below:

Wow! We have reduced the gain from 24 dB to 19 dB. You will also note that this capacitor was acting as a HP filter when in the circuit, since the low frequency response is much more flat. Two things can be learned from this: 1) you can put a switch to connect or disconnect the capacitor C1 to create a +5 dB gain stage and 2) if you want to maintain a flat frequency response, you should be careful in choosing your cathode bypass capacitors, since they are HP filters.

I will wax philosophical for a moment here and would love any input from more experienced builders regarding the topic of cathode bypass. From the above analysis, it seems like this is one place where the goals of a guitar amplifier and Hi-Fi amp might be at odds. Generally, it seems like Hi-Fi amps would want to avoid bypass caps as much as possible to maintain signal fidelity, while guitar amplifiers might want to use the capacitors to achieve higher gain, earlier onset of preamp distortion, etc.. Any thoughts?

Okay amp lovers. Today we have learned

1) How to pick parts for building a cathode-biased preamplifier stage using the data sheet for a 6SN7 tube

2) How to simulate said circuit in LTSpice

3) Made comparisons between data sheet and simulation for amplification parameters and distortion onset

4) Discussed the use of cathode bypass capacitors as a gain switch

That is all for now. Now, go huff some solder fumes, grill some bratwurst, have a beer, or go biking. Personally, I am gonna do all four.

Thursday, May 15, 2008

Preamp stage of 6D30 simulated

I've been doing a lot of wiring on the amp and realizing some of the subtleties of circuit design, as well as the practical aspects of fitting all of this stuff into a combo cabinet. The final sound is really where the proof lies, but elegance can be recognized anywhere. In the spirit of learning about each stage of the amp, I will try to simulate as many of them as possible. Below is the schematic for the first preamp stage of the 6D30. I have employed here, the generic triode model from Duncan Amps.

In case you are interested, the file for the schematic is here.

The above circuit seems innocent enough: two inputs running into the circuit via the ubiquitous 68k resistor and separate 12AX7 stages mixed at the output with a gain of ~30 (15 dB). Thus, given a 300 mV sinusoid, the voltage across the 500kOhm resistor will be ~8.7V sinusoid. This can be seen below:


The image plots the input signal and the voltage across the 500k resistor on the output. 300 mV is a reasonable approximation to a guitar signal. As you can see, this is a pretty big amplification from a small signal. This is why the wiring from the input jack should be both SHORT and SHIELDED. Due to the low signal level at the input, a smaller amount of noise can drive your signal to noise ratio (SNR) very low fast. Then every stage downstream amplifies your noisy signal resulting in .. loud noise mucking up your sweet guitar tone! :(

The other thing worth noting in this circuit is the high-pass filter that couples this stage to the next stage. This consists of C2 and R6 and is a typical RC circuit. The -3 dB (half-amplitude) point for this circuit is ~600 Hz (found by using 1/(2*pi*R*C)). Why am I mentioning this? The fundamental frequency range for guitar is from 80 Hz to 1 kHz. Since 600 Hz and below are attenuated by more than half in the first stage of this circuit, the guitar will certainly be affected. Frequencies above 1 kHz account for the "timbre" of a guitar, so none of that is lost. If channel 1 has too many highs, this might not be a bad place to throw in some more low frequencies by increasing the value of the C2, and dropping the -3 dB to more like 400 Hz.

As a note to anyone building this amp, the resistor on the layout says 1M, but the package contains a 500K resistor, and 500K is what the schematics say. I have noticed one should trust the schematic more than anything with the kit. The wiring layout is really confusing to me, since it seems to be mirrored and upside down. Maybe I'm just not thinking about it right.

Tuesday, May 13, 2008

Amp arrived


Sweet. My amp parts arrived. It's a Weber 6D30. If you're interested, you can check the schematic/layout there. I will try to take pictures as it is built.

(note: also switched the red ale to secondary and added oak chips and 2 oz hops!)

Sunday, May 4, 2008

National Homebrew Day

man + drill + bucket = mandrilbuket



We rang in National Homebrew day by making 2 5 gallon batches of beer and some BBQ'ing in the sun. One of the recipes is a delicious red ale recipe from MoreBeer (http://www.morebeer.com). It's called Fire In The Hole, and the ingredients are listed below:

Malts:
7 lbs Ultralight Extract
Grain:
2 lbs 2-Row
1 lbs Flaked Wheat
1 lbs Ctystal 75 L
.5 lbs Rye
.5 lbs Munich
.18 lbs Carafa

Hops:
1 Oz Magnum Hops 60 mins
2 oz Centennial Hops 5 mins

Water Treatment:
Wirfloc Tab 20 mins

Secondary
2 oz Columbus
1 oz Oak Chips

I think it is a really excellent red ale, so you should get their kit if you're looking for a new brew to try, but not wanting to write up a new original recipe. It's my second time to make it. The first time, it was delicious, but I came away with only 3.5 gallons of beer due to a slight mishap with the wort and my butter fingers directly after chilling. I will just be thankful the wort wasn't hot when over a gallon spilled on my floor :) Anyhow, that experience inspired this second batch, so it's kind of hard to complain. The other recipe du jour brewed by my buddy was Vagabond Gingered Beer:


1lb of crystal
1lb of chocolate
dark malt extract (7lbs-ish)
one chuck of finely chopped ginger (recipe called for between 2 and 4oz by weight)
domestic nugget for bittering
fuggles for aroma
white labs california ale yeast

Based on the Charlie book recipe. The ginger looked delicious, and I am excited to try it. The only time I've ever placed such a strong flavor agent into a beer was with a bourbon vanilla porter (BVP). Basically prior to brewing, people were warning me, "don't put too much bourbon or vanilla beans into it!!!" My BVP turned out to be pretty vanilla-ey, despite this advice, and I've heard of more than one story about other strong flavoring agents that take a long time to mellow; jalepeno peppers and sarsaparilla roots to name a couple. I relayed this information to Chas when he was cutting up his organic ginger, so we'll see. I'm sure it will be good.

Brew Gear

One fun thing about brewing to me is that it's always fun to work with and optimize the setup. In the photo below, Chas creates a mash tun by drilling 1/8" holes into a bucket. This will operate as a removable false bottom when making a full-mash brew. I'm pretty stoked to see how it will work. I use a Gott cooler mash tun, which is reasonable, but I have my suspicions about the fluid circulation, since it does not have wonderful efficiency.



The day also saw my second attempt with counter-flow chilling, and an inadvertent experiment of concurrent flow chilling (woops). The chiller I built is from the following design:

http://texanbrew.com/article.php?story=BuildACFC


Counterflow is no doubt more efficient, although the the arrangement is a little more tedious. I think fixing the chiller in a specific location on a brewing rack would be ideal. Another option would be the addition of pumps to the system, which would eliminate the danger of placing a large volume of fluid at 212 F six feet in the air. All things to consider for next time.

Sunday, April 27, 2008

Rockville Hills Park

Hello from "mini-Moab" - Small rant: I like most graffiti, but not so much this one. This would have to be the easiest place in the world to tag, since its in the middle of the woods, and the art sux.
Possible with a rope?

View of Fairfield (note: if you zoom in on this pic, you can see some people on the trail below.
Pick a line--I suggest the one to the right.