Sound Camera op amp schematics: Difference between revisions

From PD Research Wiki
Jump to navigation Jump to search
No edit summary
Line 164: Line 164:


The power resistor protects the LED by limiting current.
The power resistor protects the LED by limiting current.
===Summary Table ===
{| class="wikitable"
|+
!Resistor
!Function
!What happens if you change it?
!
|-
|Feeds Pin 3 from +12V
|
|
|
|-
|
|
|
|
|-
|
|
|
|
|}


| Resistor                | Function                      | What happens if you change it?            |
| Resistor                | Function                      | What happens if you change it?            |

Revision as of 15:31, 3 August 2025

File:Opa-tip120-soundcamera-26june.png

Opamp-july-2025.png

How Op Amps Work

YES! Since I don't use micro-controllers in this circuit, and don't have an oscilloscope at home, to test and debug the circuit, I mostly relied on my own eyes and tested on film. I end up swapping, adding, and removing resistors. while listening to the soundtrack suffering enjoying looking closely at the intensity of flicking light.


To understand where to add a resistor and how much resistance is needed in this circuit, we first need to know how an Operational amplifier works:

https://www.youtube.com/watch?v=kbVqTMy8HMg&t=500s&ab_channel=element14presents

https://www.youtube.com/watch?v=kF1wGW-h4Y8&ab_channel=element14presents


Bias voltage

A bias voltage is a steady (DC) voltage applied to one of the op-amp’s inputs — typically the non-inverting input (Pin 3) — to set a baseline or reference level around which the signal can swing.

voltage divider:

+12V

│

[470kΩ]

│

├───→ Pin 3 (non-inverting input)

│

[46.5kΩ]

│

GND


V bias ​=12V× Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{R bottom}{R top +R bottom}}

Vbias​ ≈1.09V​

the op-amp's input is biased at ~1.1 V


To bring the bias into a more effective range (e.g., ~2.5–3.5 V):


Target Bias top resistor Bottom resistor
2.5v 470k 130k
3.0 v 470k 150k
3.3 v 470k 180k
4.0 v 470k 220k


From ≈ 2.1 V (at 100k bottom)

To ≈ 3.6 V (at 200k bottom)

What Each Resistor Does Around the Op-Amp

1. Voltage Divider to Pin 3 (Bias Resistors)

+12V
│
[470kΩ] →── Pin 3 ←── [100k–220kΩ]
│.....................│
GND.................GND


2. Rf (Feedback Resistor) — from Pin 1 to Pin 2

Typical value: 100kΩ

Sets the gain of the op-amp

Works together with Rg to control how much the signal is amplified


Gain=1+ Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{Rf}{Rg}} ​

3. Rg (Gain Ground Resistor) — from Pin 2 to GND

Typical value: 30kΩ

Works with Rf to set gain

Example:

Rf = 100kΩ, Rg = 30kΩ → Gain ≈ 4.3×

So a small 0.2 V audio signal becomes ~0.86 V at the output

How gain affects dynamic range:

Higher gain = stronger LED modulation

Too high = signal clips, distorts

Too low = no visible modulation

4. Resistor from Pin 1 to TIP120 Base (R5)

Typical value: 47k–100kΩ

Limits how much current the op-amp sends into the TIP120

Acts like a volume control for the transistor

Lower R5 = brighter LED

But too low = TIP120 overheats

Too high = LED won’t turn on fully

5.Pull-Down Resistor from TIP120 Base to GND (Optional)

Typical: 100kΩ

Helps turn the transistor fully off when signal is low

Prevents “floating” voltages

How It All Works Together

An audio signal enters through a capacitor, which removes DC (just the sound remains).

The bias voltage on Pin 3 sets a resting level (e.g., 3 V).

The op-amp compares the audio to this level and produces an output swing.

The feedback and ground resistors set how much the signal gets boosted.

That boosted signal goes to the TIP120 base through a resistor (R5).

The TIP120 modulates how much current flows to the LED.

The power resistor protects the LED by limiting current.


Summary Table

Resistor Function What happens if you change it?
Feeds Pin 3 from +12V


| Resistor | Function | What happens if you change it? | | ----------------------- | ----------------------------- | ------------------------------------------ | | 470k (Top Bias) | Feeds Pin 3 from +12V | Higher = lower bias voltage | | 100k–220k (Bottom Bias) | Pulls Pin 3 to GND | Lower = dimmer LED at rest | | **Rf (100k)** | Sets gain (with Rg) | Higher = stronger signal (can distort) | | **Rg (30k)** | Sets gain (with Rf) | Lower = more gain | | **R5 (47–100k)** | Limits current to TIP120 base | Lower = brighter, more risk of overheating | | Pull-down (100k) | Stabilizes transistor base | Helps prevent LED flicker at silence |