What is this circuit section doing??

Started by armdnrdy, August 08, 2013, 02:00:15 PM

Previous topic - Next topic

slacker

Can you elaborate? What's it linearising and how?

Gus

I posted what it is doing in the other thread

It is a servo control to control the LED light output

Digital Larry

#22
The op-amp and trimmer circuit form a light-bias circuit for the right hand LDR.  Pretty sure that the LED current does not change except in response to the trimmer.  Even though the circuit looks somewhat like a comparator, think of it as a really high gain amplifier (which it is).

As the trimmer increases the (+) input voltage, the output voltage goes up and more current goes through the transistor and LED.  This reduces the resistance of the LDR on the left and the (-) input goes up.  How far does the (-) input go up?  It goes up until it matches the (+) input, if it can.  If it goes a little higher than the (+) input, then the transistor base voltage starts to drop, reducing the collector current, etc. so it balances out.   This is the servo circuit in action.  It adjusts the current to whatever it needs to be, within the limits, to get the (-) voltage to match the (+) voltage.  It automatically creates a non linear current/illumination curve in order to get a linear resistance curve.  The same illumination is used for the audio control LDR.  Fortunately you adjust it by ear so that you can accommodate any differences in their sensitivity or illumination.

There are limits to (1) how much current you can pull through the LED and (2) how low the LDR resistance will go.  The op-amp's output voltage is (when the circuit is working properly) not slammed high or low as it would be for a comparator.  Once you hit one of those limits, the output voltage can't move far enough to reduce the error voltage to zero and so the op-amp output WILL be slammed into the rails.

I think figure 15 in the link I posted awhile back is instructive.  In that example there are two separate LDR/LED assemblies, but the LEDs are connected in series and the nonlinearity of the LED current to LDR resistance relationship are assumed to be identical for both devices (which might not be true, but it's as close as we're going to get).  In this example there is one LED shining on two LDRs and most likely the intensity is not the same, but that is just a matter of a gain correction factor (er... or it might explain why the left hand LDR is looking at the LED from the side).
Digital Larry
Want to quickly design your own effects patches for the Spin FV-1 DSP chip?
https://github.com/HolyCityAudio/SpinCAD-Designer

PRR

#23
> the LED current does not change except in response to the trimmer.

Exactly so for a hacker's guide.

It keeps the LED's *brightness* CONSTANT.

Secondarily it corrects LED and LDR temperature drift, age drift, and perhaps battery voltage drop.

Imagine you want to keep a 100fc lamp at 85fc, despite wall-voltage surge/sag or lamp glass darkening with age. You put a light meter on it. You compare the meter to the desired 85fc. If you read 80fc, you dump more power to the light; if 90fc you put less power in. This is a dummy job. If the light-meter output and the desired light level are both voltage signals, any (DC) amplifier can do it. Depending on the lamp, it may be necessary or convenient to buffer the lamp, hence Q3.

Sadly it does not linearize the LDR's curvature. (However a fair fit can be had by "bending" the shutter, either with a curve-taper slot or in the linkage to your shoe.)

What the trimmer probably does here is correct for the flanger's JFETs turn-on/off voltage or voltage-range. If you have alignment instructions(?) this will probably make sense: you trim for best response when the shutter is not blocking.

  • SUPPORTER

Lurco

somehow I had fig.3 in mind, which by accident just had crossed me earlier yesterday: http://www.keith-snook.info/Wireless-World-Stuff/Wireless-World-1976/Wideband%20compander%20design.pdf . Call it optical feedback or servo, ymmv.

slacker

Slaps head, I was being a complete buffoon, got too carried away with looking at what happened at the extremes of the LDR's resistance and forgot about all the points in between.
Thanks to Larry's explanation it now makes sense to me. Can I have some points for getting the right answer even though my working was wrong?

Digital Larry

Quote from: slacker on August 09, 2013, 07:32:53 AM
Can I have some points for getting the right answer even though my working was wrong?

This circuit, a non inverting op-amp stage, and an inverting op-amp stage all can be understood on a few fundamental principals.
1) There is a feedback path from the output to the (-) input.  The difference between the (+) and (-) inputs is considered the "error" voltage.
2) The circuit, due to its extremely high gain, moves the output voltage to "whatever is necessary" to keep the voltage at the (+) and (-) inputs the same, reducing the "error" to zero.
3) The op-amp's input impedance is infinite (no current flows into either input) - this is an oversimplification.
4) The op-amp's output impedance is zero (another oversimplification).

A comparator lacks negative feedback, so (1) and (2) do not hold in that case.  (3) and (4) are still valid.
Digital Larry
Want to quickly design your own effects patches for the Spin FV-1 DSP chip?
https://github.com/HolyCityAudio/SpinCAD-Designer

armdnrdy

We've got a winner!!

Thanks Larry for the explanation!

I was completely wrong in my assumption that this circuit had something to do with a cheese grating attachment!  :icon_wink:

I'm working on a prototype of the LDR/LED tubes with dimensions provided by Dino. The idea is to fabricate them from easily obtainable plumbing/sprinkler parts.

So Larry, when are you or Mick going to post one of those cool sounding FV-1 projects?
I just designed a new fuzz circuit! It almost sounds a little different than the last fifty fuzz circuits I designed! ;)

Digital Larry

#28
Quote from: armdnrdy on August 09, 2013, 09:55:51 AM
So Larry, when are you or Mick going to post one of those cool sounding FV-1 projects?
Hi Larry,

Glad to have helped.  Part of my enjoyment hanging out here is dusting off my ancient analog skilz.

If you MUST know, I have a couple top-secret possibly revolutionary designs in progress.  These leverage the FV-1 in a way that I have not seen done and also tie into some things which are very commonly discussed here.  Interested yet?   ;D  By the way I sure hope it works!

I was at first motivated by the contest but I started a new job a few months back and so I don't think I'll be able to make the deadline and still give it enough time.  Hopefully by the end of the year.
Digital Larry
Want to quickly design your own effects patches for the Spin FV-1 DSP chip?
https://github.com/HolyCityAudio/SpinCAD-Designer

armdnrdy

Quote from: Digital Larry on August 09, 2013, 10:16:26 AM
If you MUST know, I have a couple top-secret possibly revolutionary designs in progress.  These leverage the FV-1 in a way that I have not seen done and also tie into some things which are very commonly discussed here.  Interested yet?   ;D 

Does this design have anything to do with easily obtainable plumbing/sprinkler parts?  ;D

You threw out just enough to make me curious! Let me see....Octave divider perhaps?


I just designed a new fuzz circuit! It almost sounds a little different than the last fifty fuzz circuits I designed! ;)

digi2t

Quote from: armdnrdy on August 09, 2013, 11:16:38 AM
Quote from: Digital Larry on August 09, 2013, 10:16:26 AM
If you MUST know, I have a couple top-secret possibly revolutionary designs in progress.  These leverage the FV-1 in a way that I have not seen done and also tie into some things which are very commonly discussed here.  Interested yet?   ;D 

Does this design have anything to do with easily obtainable plumbing/sprinkler parts?  ;D

You threw out just enough to make me curious! Let me see....Octave divider perhaps?




The octave divider might be something to consider, but I`m definately in for the cheese grater attachment.  :icon_wink:

Thanks for the explination. Especially in terms that I can understand.
  • SUPPORTER
Dead End FX
http://www.deadendfx.com/

Asian Icemen rise again...
http://www.soundclick.com/bands/default.cfm?bandID=903467

"My ears don't distinguish good from great.  It's a blessing, really." EBK

Digital Larry

Quote from: digi2t on August 09, 2013, 03:43:41 PM
Quote from: armdnrdy on August 09, 2013, 11:16:38 AM
Does this design have anything to do with easily obtainable plumbing/sprinkler parts?  ;D
The octave divider might be something to consider, but I`m definately in for the cheese grater attachment.  :icon_wink:
Thanks for the explination. Especially in terms that I can understand.

(furiously scribbling notes on old In-n-Out Burger wrappers)...

Hmmm, an Octave Divider is one thing this WON'T do, although it will support pitch shifting.

Now I'm wondering why you want "easily obtainable" plumbing/sprinkler parts, when I just so happen to have some NOS RainBird timers over here... pre-RoHS for sure... well, I don't want to give TOO much away... cheese grater... flat or one of those hand crank dealybobs?
Digital Larry
Want to quickly design your own effects patches for the Spin FV-1 DSP chip?
https://github.com/HolyCityAudio/SpinCAD-Designer

tubegeek

Quote from: Digital Larry on August 08, 2013, 04:37:24 PM
Quote from: armdnrdy on August 08, 2013, 04:34:54 PM
Let me get this straight. What you are saying is that you are 100% sure that you're 50% confident?  :icon_wink:
It might be the other way around.

But how can you be sure?

"60% of the time, it works every time."
"The first four times, we figured it was an isolated incident." - Angry Pete

"(Chassis is not a magic garbage dump.)" - PRR

digi2t

Quotecheese grater... flat or one of those hand crank dealybobs?

Flat... definitely flat. Nothing beats that old school elbow grease. Makes the cheese taste better. :icon_mrgreen:
  • SUPPORTER
Dead End FX
http://www.deadendfx.com/

Asian Icemen rise again...
http://www.soundclick.com/bands/default.cfm?bandID=903467

"My ears don't distinguish good from great.  It's a blessing, really." EBK

armdnrdy

#34
Okay,

Here's the "tube" I fabricated that houses LDR1 and D18.

I just designed a new fuzz circuit! It almost sounds a little different than the last fifty fuzz circuits I designed! ;)

digi2t

LAIR!!!! You actually salvaged that from a scrapped Mutron Flanger.




:icon_lol:





Beautiful work Larry. :icon_biggrin: What materials did you use?
  • SUPPORTER
Dead End FX
http://www.deadendfx.com/

Asian Icemen rise again...
http://www.soundclick.com/bands/default.cfm?bandID=903467

"My ears don't distinguish good from great.  It's a blessing, really." EBK

Digital Larry

Quote from: tubegeek on August 09, 2013, 07:58:56 PM
Quote from: Digital Larry on August 08, 2013, 04:37:24 PM
Quote from: armdnrdy on August 08, 2013, 04:34:54 PM
Let me get this straight. What you are saying is that you are 100% sure that you're 50% confident?  :icon_wink:
It might be the other way around.
But how can you be sure?
"60% of the time, it works every time."

I checked with my cat, but he doesn't appear to be feeling well.
Digital Larry
Want to quickly design your own effects patches for the Spin FV-1 DSP chip?
https://github.com/HolyCityAudio/SpinCAD-Designer

armdnrdy

Quote from: digi2t on August 10, 2013, 08:24:20 AM
LAIR!!!! You actually salvaged that from a scrapped Mutron Flanger.




:icon_lol:





Beautiful work Larry. :icon_biggrin: What materials did you use?

I wasn't joking about the sprinkler parts!  :icon_wink:

A 1/2" X 12" cut-off riser from Home Depot, a 3/4"plug, party favor (plastic) magnifying glass for the lens from Party City, red, diffused LED, and a 10K-1M 20ms-30ms LDR that I had some stock of.

I'll take some construction photos for the next tube.

I just designed a new fuzz circuit! It almost sounds a little different than the last fifty fuzz circuits I designed! ;)

digi2t

  • SUPPORTER
Dead End FX
http://www.deadendfx.com/

Asian Icemen rise again...
http://www.soundclick.com/bands/default.cfm?bandID=903467

"My ears don't distinguish good from great.  It's a blessing, really." EBK

R.G.

Quote from: tubegeek on August 09, 2013, 07:58:56 PM
But how can you be sure?
"60% of the time, it works every time."
There is a serious saying in programming that "almost always is almost always as good as always".
R.G.

In response to the questions in the forum - PCB Layout for Musical Effects is available from The Book Patch. Search "PCB Layout" and it ought to appear.