Author Topic: Driving an LED with the guitar signal?  (Read 6393 times)

ashcat_lt

Re: Driving an LED with the guitar signal?
« Reply #20 on: February 25, 2016, 12:03:39 PM »
OR

* Add a heavy bleed resistor.

The heavy bleed resistor got the circuit up and running! Thanks! However, I'm going to explore an actual envelope detector as Kipper suggested I think. For some reason, the guitar signal from the 386 seems to somehow be making it's way back into my main circuit... the modulated rate is working, but the very distorted guitar signal is constantly in the background.
This is the same reason I am always suspicious of "asymmetrical" clipping arrangements.  It completely doesn't work to use assymetrical diode pairs in a circuit like the Rat, and this is why.  It might start asymetrical, but pretty quickly floats to be centered between the diode thresholds.

The bleed could be just proximity with other wires/components, but it could also be that you're pushing and pulling on the "ground" pretty hard.  It's not supposed to move, but when I lived in New Orleans, I could feel the streetcar coming sometimes before I heard it.

Edit - Actually, as proud as I am of that streetcar thing, you're really pulling just as hard on the positive rail.  It's quite possible that both are wiggling some.  That old thing of careful decoupling.  Put a BAC across the 386's power pins as physically close to the chip as possible.  Might help to do the same with other amp stages in the circuit.
« Last Edit: February 25, 2016, 12:10:29 PM by ashcat_lt »

kforte318

Re: Driving an LED with the guitar signal?
« Reply #21 on: February 25, 2016, 12:19:56 PM »
Oh man, that rail car analogy was so gooood. Well done. Forgive me, but what is a BAC?

ashcat_lt

Re: Driving an LED with the guitar signal?
« Reply #22 on: February 25, 2016, 12:25:53 PM »
Oh man, that rail car analogy was so gooood. Well done. Forgive me, but what is a BAC?
Big Ass Cap

kforte318

Re: Driving an LED with the guitar signal?
« Reply #23 on: February 25, 2016, 12:28:02 PM »

PRR

Re: Driving an LED with the guitar signal?
« Reply #24 on: February 25, 2016, 07:29:51 PM »
> return to a working state after a minute

This suggests the LED back-leakage is extremely low. A 2uFd e-cap would likely self-bleed almost that fast.

As you see, 10 Ohms makes the bleed really quick. Most of one cycle's charge is bled-off before the next cycle.

> is what I am currently doing technically just a very crude envelope detector?

On its own, it reproduces half-cycles directly.

An "envelope follower" normally filters the violent rectified wave into a smooth outline of the short-term average of the wave. To do this it needs some notion of how "fast" the envelope can change. Plucked strings need a rapid attack. If left to ring, the decay is always slow. If damped (or muted), the decay can be abrupt, so an envelope follower should not be too slow. We usually compromise with a small tail after an abrupt mute.

The raw LED "does work" if used to modulate a photo-resistor, because foto-Rs have a somewhat slow response to light on and a long decay after lights out. Different chemicals and cookings give different time constants. Different circuit impedances give different effective times on the same foto-R, because as R goes up the action gets slower.

kforte318

Re: Driving an LED with the guitar signal?
« Reply #25 on: February 26, 2016, 03:00:45 PM »
@Kipper4

So I've been working with the Sweller circuit trying to derive the envelope detector from it.



I had it printed out to examine, and circled the bits I figured were important. Based on my ~intensive~ Wikipedia research, is the right-most circle the heart of the detector? What are the two left-most circles for (I assume input buffering and amplification of the signal before it gets to the detector)? Also, could I simply replace the Pad, Attack, and Decay pots with resistors if I didn't want controls for those parameters?

Kipper4

Re: Driving an LED with the guitar signal?
« Reply #26 on: February 26, 2016, 03:41:42 PM »
Good work.
Ic2a is as you say just a buffer for the coming signal.
You can leave out the pad and attack pots if you want and play with the decay outs value.
Then you can play with the values of the caps c4 and c5 to suit your needs.
Ic1b is the envelope detector and is driving the vactrol led too.
Hope this helps.
Jellybean dodging since 2012.
Smoke me a Kipper. I'll be back for breakfast.

kforte318

Re: Driving an LED with the guitar signal?
« Reply #27 on: February 27, 2016, 09:58:47 AM »
Probably a dumb question, but with the attack and decay pots wired as they are in that schematic, wouldn't they just act as resistors as opposed to variable resistors?

Kipper4

Re: Driving an LED with the guitar signal?
« Reply #28 on: February 27, 2016, 10:12:55 AM »
No dumb questions here.
They're wired as variable resistors. Since two of the lugs are tied.
Jellybean dodging since 2012.
Smoke me a Kipper. I'll be back for breakfast.

kforte318

Re: Driving an LED with the guitar signal?
« Reply #29 on: February 27, 2016, 10:15:18 AM »
Does that work that way?! This whole time I've been using one of the outside pins and the center pin, leaving the third disconnected.

Kipper4

Re: Driving an LED with the guitar signal?
« Reply #30 on: February 27, 2016, 10:27:10 AM »
Yer it works like that. Sure you can leave out the other but if one soldered lug fails you have no resistance at all, this way at least you have some resistance if not all.
Just a kinda protection wiring.
That make sense?

Edit.
I may have got my terminology wrong.
Here you go.....


http://www.allaboutcircuits.com/textbook/experiments/chpt-3/potentiometer-rheostat/
« Last Edit: February 27, 2016, 10:30:57 AM by Kipper4 »
Jellybean dodging since 2012.
Smoke me a Kipper. I'll be back for breakfast.

kforte318

Re: Driving an LED with the guitar signal?
« Reply #31 on: February 27, 2016, 03:24:57 PM »
Yes it does! Good to know. Thanks again.

kforte318

Re: Driving an LED with the guitar signal?
« Reply #32 on: February 29, 2016, 03:27:28 PM »
So I wired up the portion of the Sweller (@Kipper4), omitting the Pad and Attack pots entirely and replacing the Decay pot with a 1M resistor. The result seems to be the LED simply blinking along with the LFO and not reacting to the incoming guitar signal at all. Any ideas of what I may have done wrong?

EDIT: I replaced the 10n cap between the output of the first op-amp with a 100n cap, and it seems now to be responding slightly to the guitar (but still blinking along with the LFO when it's on instead of solely reacting to the guitar).
« Last Edit: February 29, 2016, 03:30:21 PM by kforte318 »

Kipper4

Re: Driving an LED with the guitar signal?
« Reply #33 on: February 29, 2016, 04:13:36 PM »
Take note it's an envelope detector ic1
 Not an lfo .
Unless you have an lfo as well.
Note to I'm using TL072 for input buffer ic2
 

The envelope detector ic1is a lm358.
A lm741 ic will probably work well too for ic1
A fixed resistor instead of decay pot gives you no adjustment of how quick the led reacts.
Try a pot.
Change r5 to something much bigger 1M to 6M
Jellybean dodging since 2012.
Smoke me a Kipper. I'll be back for breakfast.

kforte318

Re: Driving an LED with the guitar signal?
« Reply #34 on: February 29, 2016, 10:57:37 PM »
I have an LFO elsewhere. Ah! That might be part of it though. I was using a TLO72 for both op-amps. Didn't notice that the detector was a 358.

I'll try and pot and maybe mess around some with some different R5 values. Mostly I always just want the LED to react as quickly as possible so I wasn't too worried about not having control over the parameter.

Kipper4

Re: Driving an LED with the guitar signal?
« Reply #35 on: February 29, 2016, 11:10:53 PM »
Righty Ho.
Remind me what the "driving an led with the guitar signal" was for.

Jellybean dodging since 2012.
Smoke me a Kipper. I'll be back for breakfast.

kforte318

Re: Driving an LED with the guitar signal?
« Reply #36 on: February 29, 2016, 11:12:08 PM »
I want to modulate the rate of an LFO with the guitar signal (strum the guitar, spike the rate). Basically just want to light up the LED in a vactrol.

Kipper4

Re: Driving an LED with the guitar signal?
« Reply #37 on: February 29, 2016, 11:25:58 PM »
I'm not even sure this is possible.
Show us where your up to ? Post a schematic please.
Jellybean dodging since 2012.
Smoke me a Kipper. I'll be back for breakfast.

kforte318

Re: Driving an LED with the guitar signal?
« Reply #38 on: February 29, 2016, 11:28:48 PM »
I'll have to do it in the morning, but can do! It was actually working with the Uglyface fragment and the heavy bleed resistor suggested by PRR, but I could hear the distorted guitar signal from the 386 in the output (which I did not want at all).

armdnrdy

Re: Driving an LED with the guitar signal?
« Reply #39 on: February 29, 2016, 11:32:35 PM »
Google peak level indicator circuit.
You should be able to modify the circuit to do what you are trying to do.  ;)
I just designed a new fuzz circuit! It almost sounds a little different than the last fifty fuzz circuits I designed! ;)