Sound Camera op amp schematics: Difference between revisions

From PD Research Wiki
Jump to navigation Jump to search
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 8: Line 8:
Here is the new circuit schematic:
Here is the new circuit schematic:


[[File:Pcb-circuit.png|600px]]


[[File:DIY-soundcam-aug-circuit.jpg|600px]]
[[File:DIY-soundcam-aug-circuit.jpg|600px]]


final PCB:
final resistor values:


[[Pcb-circuit.png|600px]]
R1 = 100K
R2 =  30k


R3 =  76.5k or 76 k
R4 = 470K —>12v


[[File:Opa-tip120-soundcamera-26june.png|600px]]
R5 = 51k
R6 = 100k


[[File:Opamp-july-2025.png|600px]]
R1 is the feedback resistor, and R2 is the gain resistor. Together they decide the gain.
 
R3 and R4 form a voltage divider to determine the bias voltage, which, in this case, determines the brightness of the LED when the audio is silent.
 
R5 is the connection from the op amp to the tip 120, affecting the LED brightness.
 
R6 is a pulldown resistor for stability.
 
 
 
 
 
Above is the basic circuit. Later, I added some capacitors to the circuit to be more noise-resistant.
 
1. Op-amp supply decoupling, keep the op-amp from oscillating and cut supply noise.
 
a 100 nF ceramic as close as possible between OPA2134 V+ (Pin 8) and GND (Pin 4).
 
a 10 µF electrolytic across the same pins (a bit further is OK).
 
 
2. Feedback compensation (optional, for stability)
 
A small capacitor (68–150 pF) across Rf (46 kΩ).
 
This tames ultrasonics/noise above 20–30 kHz, helping keep LED drive smooth.
 
 
3. Power supply bulk capacitor (shared rail)
 
If the 12 V PSU only feeds this circuit → add at least 220 µF electrolytic across +12 V/GND near the board.
 
If you share the PSU with LED strip(my case, used 680uf) → use 470–1000 µF electrolytic near where the strip and op-amp branch out.
 
This keeps LED current spikes from “shaking” the op-amp bias.
 
pin out:
 
[[File:1200px-Opa-tip120-soundcamera-26june.png|600px]]


==How Op Amps Work==
==How Op Amps Work==
Line 225: Line 268:
|
|
|}
|}
==update Nov 2025==
bamboo stable version
laser cutting file:
I redesigned the optical box based on my cardboard prototype.
Now it is available as a reproducible laser cutting fraction file.
SVG:
[[File:Optical-box-bamboo-05-11-2025.svg.zip]]
PDF:
[[File:Optical-box-bamboo-05-11-2025.pdf]]

Latest revision as of 16:25, 5 November 2025

update Aug 2025

After I realised that the slits need to be fine to have an auditable quality. Instead of a power-led lamp, I switched to a 12V LED strip and built a bigger box film the slit with my DIY slit-scan camera, which is a continuous moving 16mm camera.

Filming.png

Here is the new circuit schematic:

Pcb-circuit.png

DIY-soundcam-aug-circuit.jpg

final resistor values:

R1 = 100K 
R2 =  30k
R3 =  76.5k or 76 k
R4 = 470K —>12v
R5 = 51k
R6 = 100k 

R1 is the feedback resistor, and R2 is the gain resistor. Together they decide the gain.

R3 and R4 form a voltage divider to determine the bias voltage, which, in this case, determines the brightness of the LED when the audio is silent.

R5 is the connection from the op amp to the tip 120, affecting the LED brightness.

R6 is a pulldown resistor for stability.



Above is the basic circuit. Later, I added some capacitors to the circuit to be more noise-resistant.

1. Op-amp supply decoupling, keep the op-amp from oscillating and cut supply noise.

a 100 nF ceramic as close as possible between OPA2134 V+ (Pin 8) and GND (Pin 4). 
a 10 µF electrolytic across the same pins (a bit further is OK).


2. Feedback compensation (optional, for stability)

A small capacitor (68–150 pF) across Rf (46 kΩ).

This tames ultrasonics/noise above 20–30 kHz, helping keep LED drive smooth.


3. Power supply bulk capacitor (shared rail)

If the 12 V PSU only feeds this circuit → add at least 220 µF electrolytic across +12 V/GND near the board.

If you share the PSU with LED strip(my case, used 680uf) → use 470–1000 µF electrolytic near where the strip and op-amp branch out.

This keeps LED current spikes from “shaking” the op-amp bias.

pin out:

1200px-Opa-tip120-soundcamera-26june.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?
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


update Nov 2025

bamboo stable version

laser cutting file:

I redesigned the optical box based on my cardboard prototype. Now it is available as a reproducible laser cutting fraction file.

SVG:

File:Optical-box-bamboo-05-11-2025.svg.zip

PDF:

File:Optical-box-bamboo-05-11-2025.pdf