Google statistics

Monday 5 December 2016

Dirty Little Secret: Assembly 2

DLS Assembly

Figure below shows a top view of the effect baseboard with 5 potentiometers: Treble, Mid, Bass, Gain, Volume, LED and toggle switch; 3PDT footswitch connected to baseboard with a 6-wire flat cable and 9V battery. 
The 3PDT toggle switch is oversized and it's much taller than potentiometers, in the following version I will probably try to replace it with a lower profile 3PDT slide switch
The enclosure is a 1590B, it is too narrow to properly fit audio jacks and DC jack on the top side, I discovered that a 1550B enclosure is probably more suited to fit the baseboard. I had to file the corners in order to fit the baseboard closer to the top side but still there is a gap.
DLS top side view with enclosure. Baseboard, 3PDT footswitch, 9V battery and 1590B enclosure
 The figure below shows the bottom side with the JFET mezzanine board mounted on baseboard. I had to make some slots in order to plug the mezzanine because of the audio jacks were too deep.
DLS bottom side view with JFET mezzanine mounted 
 The figure below shows the baseboard bottom side with audio jacks (stereo for input and mono for output). FB1 and FB2 are input and output ferrite filters, CF1 is an EMI 9V power supply input filter, D3 is a reverse 9V voltage input protection, U3 is the 9V to 3.3V DC-DC regulator, L1 is switching inductor and L2 is an additional inductor of an LC filter. U4 is a mid-point 1.65V reference voltage. Some resistors and capacitors are part of a Marshall type equalizer filter with treble, mid and bass potentiometers soldered on the opposite side. JP2 is the 2-wire 9V battery connection and JP1 is the 6-wire connection to the true bypass 3PDT footswitch using a 0.1'' pitch flat cable. The two board-to-board connector are used to plug in the effect mezzanine board.
DLS base board bottom side view
The figure below shows the DLS JFET mezzanine board with 3 one turn potentiometers for top JFETs biasing adjust. The DLS JFET effect contains 3 amplifier stages with 2 JFETs each (MMBF4117)
DLS MOSFET mezzanine board
The figure below shows the DLS MOSFET mezzanine board with 3 one turn potentiometers for MOSFET biasing adjust. The DLS MOSFET effect contains 2 amplifier stages and one output buffer stage (Fairchild FDV301VN or Diodes DMG301NU-13)
DLS JFET mezzanine board
The figure below shows a view of the two DLS effect mezzanine boards: JFET on top and MOSFET on bottom.
DLS: JFET mezzanine on top, MOSFET mezzanine on bottom


Sunday 20 November 2016

Dirty Little Secret: Schematics, PCB layout Assembly and Test

Schematics

In order to test both versions of the pedal, JFET and MOSFET, threee different PCBs are built:
  • Base board including power supply, equalizer, conectors, potentiometers, switches and LED
  • Mezzanine board with JFET DLS effect
  • Mezzanine board with MOSFET DLS effect
Schematics first page is the base board that includes input stereo jack with ferrite filter, gain potentiometer, equalizer including capacitors, resistors and potentiometers, volumen potentiometer, output mono jack with ferrite filter, 3PDT switch for super lead / super bass option, +9 VDC input to +3.3 VDC regulator, effect on LED, connector to external 3PDT footswitch, 2 connectors to mezzanine board and the layout for an optional +1.65V mid-point voltage reference that is not used on this particular effect.

This baseboard can be used as a generic base for other effects.
Baseboard Schematics
Second page schematics contains MOSFET DLS effect
Three MOSFET amplifier stages are used. MOSFET has a biasing resistor network that includes a potentiometer to adjust biasing voltage on the MOSFET gate.
Gain is placed between the first and second stage.
Equalizer is placed between the second and third stage.
Third stage is just a buffer with no gain.
MOSFET DLS effect schematics
Third page schematics contains JFET DLS effect.
Three dual JFET amplifier stages are used. Top JFET has a biasing resistor network that includes a potentiometer to adjust biasing voltage on the top JFET gate.
Gain is placed between the first and second stage.
Equalizer is placed between the second and third stage.
JFET DLS effect schematics
The figure below shows top layer PCB layout . A panel has been made containing the three PCBs: baseboard, MOSFET mezzanine and JFET mezzanine. V-cut separation method is used.

Top layer PCB layout
The figure below shows bottom layer PCB layout. A panel has been made containing the three PCBs: baseboard, MOSFET mezzanine and JFET mezzanine. V-cut separation method is used.
Bottom layer PCB layout

Test

Both effects (JFET and MOSFET) have been tested using a 300mVpp 440 Hz sinewave signal on input.

JFET effect

The figure below shows the signal observed at the output of the first amplifier stage (Q1D1). A 1090mVpp sinewave is obtained which corresponds to a 11dB gain.
440Hw sinewave 1090mVpp signal at the first amplifier stage output (gain=3.6, 11dB) (q1d1)
The figure below shows the signal observed at the output of the second amplifier stage (TONEIN2). A 2110mVpp distorted sinewave is obtained which corresponds to a 17dB gain.
2110mVpp signal at the 2nd amplifier stage output (gain=7, 17dB) (tonein2)
The figure below shows the signal observed at the output of the equalizer and input to the 3rd amplifier stage (Q6G). A 850mVpp distorted sinewave is obtained which corresponds to a 9dB gain.
850mVpp signal at the equalizer output (gain=2.8, 9dB) (q6g)
The figure below shows the signal observed at the output of the 3rd amplifier stage output (FXOUT2). A 1730mVpp distorted sinewave is obtained which corresponds to a 15.2dB gain.
1730mVpp signal at the third stage amplifier output (gain=5.8, 15.2dB) (fxout2)

MOSFET effect

Three different biasing values have been used: low, mid, high.
The figure below shows the signal observed at the output of the first amplifier stage (Q1D) with low bias. A 1730mVpp distorted sinewave is obtained which corresponds to a 15dB gain.
1730 mVpp signal at the first amplifier stage output with low bias  (gain=5.8, 15dB) (q1d)
The figure below shows the signal observed at the output of the first amplifier stage (Q1D) with mid bias. A 3060mVpp distorted sinewave is obtained which corresponds to a 20dB gain.
3060 mVpp signal at the first amplifier stage output with mid bias  (gain=10.2, 20dB) (q1d)
The figure below shows the signal observed at the output of the first amplifier stage (Q1D) with high bias. A 700mVpp distorted sinewave is obtained which corresponds to a 7.4dB gain.
700 mVpp signal at the first amplifier stage output with high bias  (gain=2.3, 7.4dB) (q1d)
The figure below shows the signal observed at the output of the second amplifier stage (Q2D) with low bias. A 970mVpp distorted sinewave is obtained which corresponds to a 10.2dB gain.
970 mVpp signal at the second amplifier stage output with low bias  (gain=3.23, 10.2dB) (q2d)
The figure below shows the signal observed at the output of the second amplifier stage (Q2D) with mid bias. A 3220mVpp distorted sinewave is obtained which corresponds to a 20.6dB gain.
3220 mVpp signal at the second amplifier stage output with mid bias  (gain=10.7, 20.6dB) (q2d)
The figure below shows the signal observed at the output of the second amplifier stage (Q2D) with high bias. A 940mVpp distorted sinewave is obtained which corresponds to a 10dB gain.
940 mVpp signal at the second amplifier stage output with high bias  (gain=3.1, 10dB) (q2d)
The figure below shows the signal observed at the final buffer output (FXOUT1) with low bias. A 630mVpp distorted sinewave is obtained which corresponds to a 6.4dB gain.
630 mVpp signal at the final buffer output with low bias  (gain=2.1, 6.4dB) (fxout1)
The figure below shows the signal observed at the final buffer output (FXOUT1) with mid bias. A 2170mVpp distorted sinewave is obtained which corresponds to a 17.2dB gain.
2170 mVpp signal at the final buffer output with mid bias  (gain=7.2, 17.2dB) (fxout1)
The figure below shows the signal observed at the final buffer output (FXOUT1) with high bias. A 330mVpp distorted sinewave is obtained which corresponds to a 0.83dB gain
330 mVpp signal at the final buffer output with high bias  (gain=1.1, 0.8dB) (fxout1)

Assembly

DLS guitar pedal has been mounted on a 1550B enclosure
The figure below shows a bottom view of the Hammond 1550B enclosure open without lid showing the DLS guitar pedal with audio jacks and DC jack, the 3PDT footswitch, the 9V battery


The figure below shows a top view of the Hammond 1550B enclosure showing audio jacks, DC jack, potentiometers, LED, toggle switch and the 3PDT footswitch:




Monday 26 September 2016

Dirty Little Secret MOSFET 3.3V version: LTSpice analysis

Why JFET and not MOSFET?

JFET is a rare bird these days, you just have to go to a distributor and check the number of references of each of them, for example at Digikey there are less than 900 references of JFET devices and more than 40K of MOSFET devices. Transistor curves are quite similar, but it's much easier to find a proper MOSFET device that works well at 3.3V, N-JFET devices are biased with Vgs<0, while MOSFET devices are biased with Vgs>0. There are lots of MOSFET devices called "logic level gate" with low Vgs biasing values that are easy to bias from 3.3V power, while the offer of JFET devices that can work at 3.3V is quite limited, since as we saw in a previous post, JFET devices with low pinch-off voltages, and close to 0 Vgs have to be chosen.

These are the typical curves Id vs Vds for different Vgs values of Fairchild  FDV301VN:

The basic MOSFET amplifier only has one transistor compared to the 2 used on JFET circuit, because it is easier to bias the device:
The small signal frequency response shows a maximum gain of 37.5dB at 1kHz and 37.4dB at 10Hz for bias potentiometer set at 0.3

Dirty Little Secret 3.3V MOSFET version

The figure below shows schematics of the DLS MOS 3.3V circuit using Fairchild FDV301N:

The figure below shows the time response for a decaying 600mVpp 440kHz sinewave and gain from 0 to 1 in 0.1 steps:
The figure below shows the frequency response with gain from 0 to 1 in 0.1 steps and tone controls set with bass=0.3, mid=0.6 and treble=0.6:
The figure below shows the frequency response with gain=0.5, bass=0 to 1 (0.1 steps), mid=0.6 and treble=0.6:
The figure below shows the frequency response with gain=0.5, bass=0.3, mid=0 to 1 (0.1 steps),  and treble=0.6:
The figure below shows the frequency response with gain=0.5, bass=0.3, mid=0.6 and treble=0 to 1 (0.1 steps):

Sunday 25 September 2016

Dirty Little Secret 3v3 clone: LTSpice analysis

The Catalinbread Dirty Little Secret is an overdrive/distortion pedal that tries to emulate super-lead o super-bass Marshall amplifiers using JFET transistors instead of tube valves.
The tone filter section is identical to the one used on Marshall amplifiers.
Catalinbread Dirty Little Secret overdrive/distortion pedal
Starting with the Klon Centaur boost/overdrive pedal I am trying to show that guitar pedals circuitry can be powered at lower voltages than the standard 9V, using the appropriate components and circuits.
When I started Spice simulations the task seemed quite challenging, it was quite difficult to make the JFETs work at 3.3V and even when they worked at 3.3V it was quite difficult to properly bias the JFET to avoid distortion.


The secret to make a JFET work at low voltages is to find JFETs with low pinch-off voltages. The pinch-off voltage is defined by the dotted line on the left of the figure above, this line represents the boundary between the ohmic region and the active (or saturation) region. A JFET transistor should work in the active region. The problem is that the selection tools that offer distributors like Digikey or Mouser to choose a transistor don't provide the pinch-off voltages, they usually provide the Vgs cut-off (Vgs at which the JFET start conducting) and the drain current at Vgs=0. I finally find a JFET manufacturer specialist (InterFET) that provides these pinch-off voltages.

The JFET amplifier selection guide offers audio and general purpose tables. In these tables we can find that the tow N-channel JFETs models that have lower pinch-off voltages (Vp) are the J201 and 2N4117 (or MMBFJ201 and MMBF4117 in their SMD version). 2N4117 has Vp min = -0.6V and Vp max = -1.8V . The J201 has Vp min =  -0.30V and Vp max = -1.5V.

Apparently the MMBFJ201 should be more suitable for its lower pinch-off voltage, but as we will see later, the MMBF4117 has lower drain currents which are more suited for working at lower voltages and higher resistor values.

JFET characteristic curves

The first thing is to find Spice models for those JFET transistors, actually I found different models that showed different behaviors during simulations.

Then I traced the JFET characteristics, Id vs Vds (from 0 to 3.3V) at different Vgs values (-1.65 to 0V at steps of 0.1v) using the following circuit:
The following figure shows the Id vs Vds curve for mmbf4117:
Maximum pinch-off voltage is 0.97V at Vgs=0V and Id= 70uA

The following figure shows the Id vs Vds curve for mmbfj201:
The pinch-off voltage is already as high as -2.3V at Vgs=-1.65V, For Vgs=-075V the pinch-off voltage is 3.3V. As we can see, this device is not suitable to be used at 3.3V, the drain currents are quite high for very negative Vgs voltages (9mA at Vgs=-1.65V) so it cannot be properly biased, and the pinch-off voltages are very high making impossible to work in the active region with them.
These curves from a Fairchild Semiconductor J201 Spice model do not correspond with the values announced in the InterFET page but they actually correspond with the curves found on the datasheet, so I think that the InterFET J201 model it's quite different form the Fairchild Semiconductor J201 device that it's currently found through distributors.

I actually found a J201 Spice model that had very good characteristics corresponding to those announced by InterFET:
with a maximum pinch-off voltage of -0.54V at Vgs=0, and Id=600uA.

But as the device that is readily available is the Fairchild one, MMBFJ201 device had to be discarded.

JFET biasing

In order to better understand why low pinch-off voltage is important at low power voltages, let's analyse a simple circuit that shows JFET biasing and voltage margin.

In order to have maximum voltage margin, the JFET has to be biased in a way that Vds is set at half the power supply voltage, so if power supply voltage is 3.3V, Vds has to be set at 1,65V. In the following circuit and for a given drain resistance Rd, we must find the biasing value of Vgs at which Vds = 1.65V. At Id=0, Vds=3.3V for any value of Rd, but we must find an Rd value that at low values of Vds still keeps in the active region to avoid saturation, hence the lower the pinch-off voltage, the easier to find a low enough Rd that cuts the JFET curves at low voltages in the active region. The slope of the straight line is inversely proportional to Rd, we could always find a value of Rd that is high enough to keep in the active region, but if Rd is too high, currents are too low, our circuit becomes too sensitive to noise and it cannot accept any load.

The red curve below shows the drain current Id for different values of Vgs from 0V to -1V in steps of 100mV. The green lines represent the current through Rd vs Vds, the higher Rd value the lower the slope. To find the proper biasing point, we find a point where a green line crosses a red line at approximately 1.65V, but where the green line crosses a red line in the ohmic region at quite low Vds voltage. For Rd=250k we find a biasing point at Vds=1.65 and Id=6.6uA, for Vgs= -700mV

Let's do a time response with a 300mV sine 1kHz input and biasing DC at -0.7V, Rd=250K and output resistance at 1Mohm.

The output voltage has been amplified to 2.78Vpp



Another important characteristic is that the biasing Vgs voltage is as close as 0V as possible, N-channel JFETs are biased at negative voltages, if Vgs is very negative it will be difficult or even impossible to bias it. The way to bias Vgs to a negative voltage is adding a source to ground resistor (Rs) that will keep Vs higher than Vg. But this resistance Rs will add to Vds affecting the output voltage, unless that it is coupled with a capacitor in parallel so that Rs is only seen at DC biasing but small signal sees a short to GND through the capacitor.

A Rs=120k will bias Vgs to 700mV when Id=6uA.

We obtain a similar time response with a 300mV sine 1kHz input but no input bias, with Rd=250K, output resistance of 1Mohm and Rs=120k in parallel with 1uF.

Two JFET amplifier biasing

Let's analyse the biasing of the two JFET amplifier circuit that will be the basis of DLS pedal.
The same biasing current will circulate through both JFETs, which means that Vgs bias will have to be identical for both, then the voltage on the gate of the top JFET will have to be Vin+Vout, where Vin is the biasing voltage of the bottom JFET.
The obtained curve  is shown below. The biasing point will be selected from a point where blue and cyan curves cross and the current of both JFETs is identical as close as possible to Vds=1.65V (power supply mid-point) The selected blue curve will give us the Vgs biasing point (160mV)
Vds=1.65V, Id = 94uA and Vgs=158mV.

The small signal frequency response shows a maximum gain of 34.5dB at 1kHz and 32.7dB at 10Hz for bias potentiometer set at 0.4.
The time response of a decaying 1kHz sinewave 600mVpp shows a  maximum output voltage of 2.26Vpp (gain of 3.8 = 11.5dB)

Dirty Little Secret 3V3

The figure below shows schematics of the DLS 3.3V circuit using MMBF4117 JFET:

The figure below shows the time response for a decaying 600mVpp 440kHz sinewave and gain from 0 to 1 in 0.1 steps:
The figure below shows the frequency response with gain from 0 to 1 in 0.1 steps and tone controls set with bass=0.3, mid=0.6 and treble=0.6: 

The figure below shows the frequency response with gain=0.5, bass=0 to 1 (0.1 steps), mid=0.6 and treble=0.6: 



The figure below shows the frequency response with gain=0.5, bass=0.3, mid=0 to 1 (0.1 steps),  and treble=0.6:
The figure below shows the frequency response with gain=0.5, bass=0.3, mid=0.6 and treble=0 to 1 (0.1 steps):

In order to be able to compare below are the frequency response with gain from 0 to 1 in 0.1 steps and tone controls set with bass=0.3, mid=0.6 and treble=0.6 for the original DLS circuit powered at 9V using MPF4393 JFET transitor. Almost no difference using a 2N5457 model:

And the time response for a decaying 600mVpp 440kHz sinewave and gain from 0 to 1 in 0.1 steps: