DIYstompboxes.com

DIY Stompboxes => Building your own stompbox => Topic started by: Nick C. on August 06, 2015, 10:07:37 AM

Title: CD4049UBE Hot Harmonics Weirdness
Post by: Nick C. on August 06, 2015, 10:07:37 AM
I just boxed up a new build. Switchable 2 mode like ROG Double D, but 1/2 modded Tube Sound Fuzz and 1/2 modded Hot Harmonics.
Here's the problem, by itself the pedal works great, but with any buffered pedal before it Hot Harmonics mode sounds awful with lots of high pitched noise. The version of the curcuit is the simple one(http://members.shaw.ca/fclarke/fx/hotharm2.gif)
I bumped the 150k to 470k and dropped the 1m5 and 2m2 biasing resistors. Aren't cmos' self biasing?

Anyway I would like to put it on my board after an OD to slam the TSF and I don't have a true by-pass OD. Any ideas on what is going on or a simple fix? Could it be the missing 1m5 or 2m2? How about some series resistance at beginning?
Title: Re: CD4049UBE Hot Harmonics Weirdness
Post by: samhay on August 06, 2015, 10:17:38 AM
^How about some series resistance at beginning?

That's what I would try first. You can experiment using a pot wired as a variable resistor in series with the input.
Title: Re: CD4049UBE Hot Harmonics Weirdness
Post by: FuzzFanatic71 on August 06, 2015, 10:22:31 AM
I don't know how to fix the problem you describe except to tell you to build a true bypass O.D to put before it. You can never build too many decent overdrive pedals.
Title: Re: CD4049UBE Hot Harmonics Weirdness
Post by: Mark Hammer on August 06, 2015, 10:35:34 AM
There is no real lowpass filtering in there to tame to high end.  Stick a 330pf-470pf in parallel with the 150k feedback resistor.  Hopefully, that should tame things a little.
Title: Re: CD4049UBE Hot Harmonics Weirdness
Post by: Nick C. on August 06, 2015, 11:08:08 AM
Quote from: samhay on August 06, 2015, 10:17:38 AM
That's what I would try first. You can experiment using a pot wired as a variable resistor in series with the input.
Yea, I'm going to try this tonight, thanks.

Quote from: FuzzFanatic71 on August 06, 2015, 10:22:31 AM
You can never build too many decent overdrive pedals.
This was going to be my last one :icon_lol: Also, I like to put wah (which is buffered) before OD.

Quote from: Mark Hammer on August 06, 2015, 10:35:34 AM
There is no real lowpass filtering in there to tame to high end.  Stick a 330pf-470pf in parallel with the 150k feedback resistor.  Hopefully, that should tame things a little.
I do have a 100p there and a LP tone pot at the end and there's still too much to tame.

The thing is that it sounds great when driven by just the guitar, but almost squealing when driven by the high current low impedance of a buffer.
Title: Re: CD4049UBE Hot Harmonics Weirdness
Post by: LiLFX on August 06, 2015, 11:41:14 AM
Try putting the AMZ pickup simulator between your buffered pedal and the input of this.
Title: Re: CD4049UBE Hot Harmonics Weirdness
Post by: Mark Hammer on August 06, 2015, 12:13:04 PM
Quote from: Nick C. on August 06, 2015, 11:08:08 AMI do have a 100p there and a LP tone pot at the end and there's still too much to tame.

100pf is still kinda low.  BY my calculations that is still just a 6db/oct rolloff starting around 10khz.  Seriously, increase the cap value.
Title: Re: CD4049UBE Hot Harmonics Weirdness
Post by: anotherjim on August 06, 2015, 04:52:11 PM
Nick says he has 470k instead of 150k, so 100pF across it will start to roll off at about 3.3Khz.

Input impedance could well be an issue. With a passive guitar input, the guitars source impedance is a major part of the input impedance, so a buffered low impedance source instead is a completely different game.

Raising the 150k to 470k might not have helped either. Let's assume the original design had 150k for a reason. A CMOS inverter in linear mode only has an open loop gain around 8 to 10, if feedback resistance is too high compared to input impedance, it cannot boost the signal at the output enough to balance the feedback path current with the input path current.

The input resistors to ground are not there for bias as such, they force an offset from the 1/2Vcc bias you get via the feedback resistor. 2 reasons I can think of...
1: The offset makes clipping asymmetrical - which adds even order harmonics.
2: The offset reduces average current consumption. When the inverters are biased to 1/2Vcc, they suffer "Shoot Thru", which is a current path through the complementary pair from Vcc to Ground because they are both turned on in this state. The offset reduces the current by turning one of the pair towards off.
I think those resistors are important!

Adding, say, 4.7k resistor in series with the input might be all that's needed. As suggested by LilFX, a pickup simulator ought to give performance more like a direct guitar input.

Title: Re: CD4049UBE Hot Harmonics Weirdness
Post by: Mark Hammer on August 06, 2015, 06:20:02 PM
Quote from: anotherjim on August 06, 2015, 04:52:11 PM
Nick says he has 470k instead of 150k, so 100pF across it will start to roll off at about 3.3Khz.

Input impedance could well be an issue. With a passive guitar input, the guitars source impedance is a major part of the input impedance, so a buffered low impedance source instead is a completely different game.

Raising the 150k to 470k might not have helped either. Let's assume the original design had 150k for a reason. A CMOS inverter in linear mode only has an open loop gain around 8 to 10, if feedback resistance is too high compared to input impedance, it cannot boost the signal at the output enough to balance the feedback path current with the input path current.

The input resistors to ground are not there for bias as such, they force an offset from the 1/2Vcc bias you get via the feedback resistor. 2 reasons I can think of...
1: The offset makes clipping asymmetrical - which adds even order harmonics.
2: The offset reduces average current consumption. When the inverters are biased to 1/2Vcc, they suffer "Shoot Thru", which is a current path through the complementary pair from Vcc to Ground because they are both turned on in this state. The offset reduces the current by turning one of the pair towards off.
I think those resistors are important!

Adding, say, 4.7k resistor in series with the input might be all that's needed. As suggested by LilFX, a pickup simulator ought to give performance more like a direct guitar input.

I guess that's what happens when you try and fit forum browsing into a full-time day job!   :icon_redface:

You're right, of course, the rolloff is lower than I first thought.
Title: Re: CD4049UBE Hot Harmonics Weirdness
Post by: snap on August 06, 2015, 06:45:07 PM
What is: "1/2 TSF & 1/2 HH" ? Is there a full schematic of it? (including indication of which inverter on the chip is which inverter in the schematic drawing?)
Title: Re: CD4049UBE Hot Harmonics Weirdness
Post by: Bill Mountain on August 07, 2015, 08:33:51 AM
I think it is most definitely the lack of input resistance on the first stage.  The buffered signal has more highs and lows and lower source impedance which will slam the shit out of the front end of the first stage.  With that much gain and little to no filtering you're bound to squeal and fart out.

Add a filtering, a buffer, and series resistance to the circuit and you'll have consistency across many rigs configurations.
Title: Re: CD4049UBE Hot Harmonics Weirdness
Post by: Nick C. on August 07, 2015, 09:43:17 AM
Quote from: anotherjim on August 06, 2015, 04:52:11 PM
Input impedance could well be an issue. With a passive guitar input, the guitars source impedance is a major part of the input impedance, so a buffered low impedance source instead is a completely different game.

Quote from: Bill Mountain on August 07, 2015, 08:33:51 AM
I think it is most definitely the lack of input resistance on the first stage.  The buffered signal has more highs and lows and lower source impedance which will slam the shit out of the front end of the first stage.  With that much gain and little to no filtering you're bound to squeal and fart out.

Yep and yep!

After reading what Jack Orman said in the AMZ pickup simulator page, "To simulate the response of a guitar pickup, it is often recommended that some resistance should be added in series with the input of the effect. Typically 10k to 15k..." I decided to try the simple series resistor at the input and low and behold about 10k calmed things down nicely. I remember reading that without an input resistor that the gain of the CMOS inverter is derived from source impedance of the previous stage and that these things are very nonlinear, so yea the gain must have been very high and non-linear causing all kinds of weirdness.

The unfortunate byproduct of the 10k at the input is that my gain is down and I've lost the saturation that I liked to begin with, so I'll try to make it up at stage 2 or 3.

Speaking of stage 3, anyone understand how that is working? 20k/220k=.09, so it's reducing gain? Does it add anything? Maybe harmonics?

Thanks for the help from all. The CMOS sure is a strange beast, but it can make some sweet sounds.

Title: Re: CD4049UBE Hot Harmonics Weirdness
Post by: anotherjim on August 07, 2015, 10:21:02 AM
The 3rd stage has me baffled. It is attenuating but also inverting too, so it looses "true polarity" with a total of 3 inverting stages. I think there is a version of this type of effect with a "Fetzer" jfet input stage which would make it immune to different input impedances and give correct polarity -  but it's name escapes me.

If there's room in the box, you could fit a switch that shorts out your additional input resistor?

Title: Re: CD4049UBE Hot Harmonics Weirdness
Post by: duck_arse on August 07, 2015, 11:22:24 AM
Nick C - do you have any unused inverters in that ic? if so, you must tie their input pins high or low, doesn't matter which. they may be a contributor to bad behaviour if left unattended.
Title: Re: CD4049UBE Hot Harmonics Weirdness
Post by: Mark Hammer on August 07, 2015, 12:47:14 PM
Duck's right about that.

As I've mentioned here more times than people would prefer to have heard, I think the best characteristics of invertor-based overdrives come out when one doesn't oblige them to provide ALL of the gain, but keeps their gain modest, and hits them with a harder signal.  Which is why I like to precede them with an op-amp, or similar, gain stage that also includes some tone shaping of its own, to "prepare" the signal pushing the invertors.  Here's a needlessly complex example of that: http://gaussmarkov.net/wordpress/circuits/forty-niner/
Title: Re: CD4049UBE Hot Harmonics Weirdness
Post by: anotherjim on August 08, 2015, 07:03:00 AM
It's an interesting test to input a triangle wave into an inverter. Watch it on a 'scope as you raise the input level and see the soft clipping make it look more like a sine wave. It will appear to resist becoming a square wave.
So, yes, as Mark just said, cmos inverters are not gain machines, but rather useful wave shapers.
Title: Re: CD4049UBE Hot Harmonics Weirdness
Post by: Nick C. on August 09, 2015, 03:49:20 PM
Happy to report, all is well. Behaving well with or without a pedal infront of it. I had to rebuild it a few times to get the right gain and tone. Wish I had tried it with a pedal when I was breadboarding it.

I liked the simplicity of this version of Hot Harmonics over the other versions which have an op amp. Why add an op amp when I have all these perfectly good extra amplifiers in one package ;)
Title: Re: CD4049UBE Hot Harmonics Weirdness
Post by: Nick C. on August 10, 2015, 11:52:04 AM
Here's the final schem
(http://ncoppola.angelfire.com/TSFsch.jpg)
Title: Re: CD4049UBE Hot Harmonics Weirdness
Post by: snap on August 10, 2015, 12:02:14 PM
I`d be afraid of even more weirdness, building according to that schematic. (including switchpop)
Title: Re: CD4049UBE Hot Harmonics Weirdness
Post by: Mark Hammer on August 10, 2015, 12:22:29 PM
Simple solution is to insert a 1M resistor between each of the sub-circuit outputs and C7, and use the toggle to bridge the resistor to whatever half you want to use.

I will also note that the two outputs are 180 degrees out of phase with each other, because of the 3-vs-2 invertor structure.  In a great many instances that won't matter in any audible way.  But be aware of it for those odd exceptions.
Title: Re: CD4049UBE Hot Harmonics Weirdness
Post by: Nick C. on August 10, 2015, 12:54:25 PM
Quote from: snap on August 10, 2015, 12:02:14 PM
I`d be afraid of even more weirdness, building according to that schematic. (including switchpop)

Both circuits are now surprisingly very quiet and controlled even when driven by another overdrive pedal. My channel switch is on a toggle not stomp, so pop isn't an issue. Due to volume and tone variations, separate tone and vol pots would be needed, so not really 2 channel, more 2 mode.

In the end the Hot Harmonics mode is not terribly different than than TSF maxed out, just more compressed and saturated. I'm really liking the sound coming out of the 4049, I'll have to play around with a lower gain circuit in the future. The TSF should be a much more popular effect. I imagin calling it a Fuzz or Llama didn't help :)
Title: Re: CD4049UBE Hot Harmonics Weirdness
Post by: snap on August 10, 2015, 06:12:45 PM
no cap at no rail?
Title: Re: CD4049UBE Hot Harmonics Weirdness
Post by: Mark Hammer on August 10, 2015, 09:08:55 PM
I've noted it before but I'll mention it again: a number of solid-state Laney amps use invertors as their overdrive element.  Here's an example of one:

(http://elektrotanya.com/PREVIEWS/63463243/23432455/laney/laney_hc25r_sm.pdf_1.png)
Title: Re: CD4049UBE Hot Harmonics Weirdness
Post by: Nick C. on August 11, 2015, 12:26:11 PM
Quote from: snap on August 10, 2015, 06:12:45 PM
no cap at no rail?

Hastily drawn using LTSpice, yea I've got a 100uF // to D1.

Quote from: Mark Hammer on August 10, 2015, 09:08:55 PM
I've noted it before but I'll mention it again: a number of solid-state Laney amps use invertors as their overdrive element.  Here's an example of one:
Interesting, and they drive them with an opamp. I wonder if Anderton was the first to OD a CMOS with a guitar or maybe someone else had a happy accident. 
Title: Re: CD4049UBE Hot Harmonics Weirdness
Post by: snap on August 11, 2015, 02:21:00 PM
You don`t know how lucky you are! One high gainer with open input while the other one is engaged. Maybe it works because the inverters are intermodulating their supplyvoltages in R4?
Title: Re: CD4049UBE Hot Harmonics Weirdness
Post by: Mark Hammer on August 11, 2015, 03:28:39 PM
Actually, you know, the 4 invertor stages that encompass the driver before the first half of the Drive Gain dual-ganged pot, and the two stages prior to the Drive Volume control, might make for an interesting overdrive on its own, minus the switching FETs.

If we could only read the component values.
Title: Re: CD4049UBE Hot Harmonics Weirdness
Post by: snap on August 11, 2015, 04:05:35 PM
Download/save to HD the elekrotanya image following their instructions. Click it and see the .pdf (64kb) clearly.
Title: Re: CD4049UBE Hot Harmonics Weirdness
Post by: Mark Hammer on August 12, 2015, 09:12:43 PM
So here is the Laney overdrive circuit, extracted from one of their amps.  Note that it uses a CD4069UBE invertor as its core, not a 4049.  I have no idea how readily the circuit can be adapted to a 4049.

Does it absolutely need +/-15V?  No.  Does it absolutely need the op-amp stage at the input?  Maybe.  It has a gain of around 5x, and the first invertor stage doesn't seem to have much gain, so while one could just feedC8 directly from the input,  I suspect a greater range of tones is available with the inclusion of the op-amp stage.  The diagram says TL072, but you could pretty much use any single op-amp.

I have to confess, I just don't get R17/R18/C12.  Why have a parallel pathway through a cap if the two input resistances are identical?  Something doesn't make sense here.

I have a mountain of projects to get to, so I won't attempt building it...unless somebody else does and proclaims "Where has this BEEN all my life?!"

(http://img.photobucket.com/albums/v474/mhammer/Laney%20Overdrive_zps9gl8ss0q.png)
Title: Re: CD4049UBE Hot Harmonics Weirdness
Post by: Keppy on August 13, 2015, 12:43:05 AM
Quote from: Mark Hammer on August 12, 2015, 09:12:43 PM
I have to confess, I just don't get R17/R18/C12.  Why have a parallel pathway through a cap if the two input resistances are identical?  Something doesn't make sense here.
The input resistances are not identical. Frequencies that pass through the cap will pass through the resistors in parallel, meaning an input resistance of 23.5k instead of 47k and thus twice as much gain in that stage at those frequencies. R16/C12 is really a modified Tube Screamer filter, with the same corner frequency of ~720Hz but with a high shelf instead of a high pass response.
Title: Re: CD4049UBE Hot Harmonics Weirdness
Post by: anotherjim on August 13, 2015, 06:22:35 AM
R17/R18/C12 and R28/C21 pre-emphasis boost followed by R26/C16 and R25/C17 de-emphasis cut? A noise reduction technique? Inverter amps can be quite noisy -  all those series resistors etc.


Title: Re: CD4049UBE Hot Harmonics Weirdness
Post by: Mark Hammer on August 13, 2015, 11:44:35 AM
Quote from: Keppy on August 13, 2015, 12:43:05 AM
Quote from: Mark Hammer on August 12, 2015, 09:12:43 PM
I have to confess, I just don't get R17/R18/C12.  Why have a parallel pathway through a cap if the two input resistances are identical?  Something doesn't make sense here.
The input resistances are not identical. Frequencies that pass through the cap will pass through the resistors in parallel, meaning an input resistance of 23.5k instead of 47k and thus twice as much gain in that stage at those frequencies. R16/C12 is really a modified Tube Screamer filter, with the same corner frequency of ~720Hz but with a high shelf instead of a high pass response.

Okay, that makes more sense, now.  I guess I have to just imagine that R17/R16 is a 23.5k resistance for lower freqs, and a 47k resistance for higher ones.  I'm just used to seeing different-value resistors in such networks, used for purposes of boosting high end.  Using it to boost low-end instead, is somewhat counter-intuitive.  But it makes sense, now.  Thanks.
Title: Re: CD4049UBE Hot Harmonics Weirdness
Post by: anotherjim on August 13, 2015, 04:57:27 PM
Beg to differ.
C12 halves Rin for high frequencies by adding a parallel resistor - it is a treble boost.
C21 does the same  - differently - it bypasses a series resistor, but I don't know why they did it different in these 2 cases.
Title: Re: CD4049UBE Hot Harmonics Weirdness
Post by: Keppy on August 14, 2015, 01:08:34 AM
Quote from: Mark Hammer on August 13, 2015, 11:44:35 AM
Quote from: Keppy on August 13, 2015, 12:43:05 AM
Quote from: Mark Hammer on August 12, 2015, 09:12:43 PM
I have to confess, I just don't get R17/R18/C12.  Why have a parallel pathway through a cap if the two input resistances are identical?  Something doesn't make sense here.
The input resistances are not identical. Frequencies that pass through the cap will pass through the resistors in parallel, meaning an input resistance of 23.5k instead of 47k and thus twice as much gain in that stage at those frequencies. R16/C12 is really a modified Tube Screamer filter, with the same corner frequency of ~720Hz but with a high shelf instead of a high pass response.

Okay, that makes more sense, now.  I guess I have to just imagine that R17/R16 is a 23.5k resistance for lower freqs, and a 47k resistance for higher ones.  I'm just used to seeing different-value resistors in such networks, used for purposes of boosting high end.  Using it to boost low-end instead, is somewhat counter-intuitive.  But it makes sense, now.  Thanks.
Glad to help.

Quote from: anotherjim on August 13, 2015, 04:57:27 PM
C12 halves Rin for high frequencies by adding a parallel resistor - it is a treble boost.
C21 does the same  - differently - it bypasses a series resistor, but I don't know why they did it different in these 2 cases.
I thought that was weird too. The corner frequency and the effect on gain are the same. Why do the same thing in a different way? Maybe it made the layout easier.
Title: Re: CD4049UBE Hot Harmonics Weirdness
Post by: anotherjim on August 14, 2015, 07:43:15 AM
Thought I'd better check the freq's.
2 poles Hf boost aimed about 720Hz
1 pole Hf cut aimed about 2.25kHz
1 pole Hf cut over 33Khz!
Looks like a mid boost to me.
Ok, nix what I said about noise reduction!

Title: Re: CD4049UBE Hot Harmonics Weirdness
Post by: teemuk on August 14, 2015, 10:39:15 AM
Here's more inverter ingeniousity:
(http://music-electronics-forum.com/attachments/21140d1354755183-alpha-12revb.gif)

One inverter stage in the preamp for waveshaping, quad of inverters driving spring reverb in push pull, and yet another inverter as voltage amp / driver stage of the power amp! A power amp that clips softly like a MOSFET inverter. Nice. I also like how floating power supply and DC servos are implemented to it. You don't see power amp designs like this everyday.

--

I wish I could relocate schematics of Lab Series L3 and L6 amps. These, if I remember right, used the MOSFETs within the IC both in "conventional" push-pull arrangement, or as discrete MOSFET gain stages alone. Also, if I remember right, these amps had active tone controls that were implemented to feedback loop stages of inverters/MOSFETs.

--

Then there are, of course, these Fender amps:
(http://www.stratopastor.org.uk/strato/amps/twoseriessolidstatefenders/harvardreverbiischematic.jpg)


...But yeah, it's just another overdriven inverter stage. I do like the "outside-the-box" design of the Sunn amp.  :)
Title: Re: CD4049UBE Hot Harmonics Weirdness
Post by: anotherjim on August 16, 2015, 07:23:24 AM
Fender approach is interesting though. All 3 inverters in a CD4007 used in parallel. Lower power supply volts reduces shoot-through current (gives moderate increase in open-loop gain too). Series resistance too (R34-35). Deliberate power sag tactics?
The Sunn reverb driver is similar to a plan I had to drive a small audio transformer - going with the thought that a valve amp sim should include a transformer stage.