This circuit is a signal conditioning stage for a Control Voltage (CV) input (typically from a modular synthesizer like Eurorack) to safely interface with an ADC pin on a Teensy 4.0 microcontroller.
Why is this circuit needed?
- Modular synthesizer CV signals are commonly bipolar (e.g., -5V to +5V, or sometimes wider ranges like -10V to +10V).
- The Teensy 4.0 ADC pins only accept 0V to 3.3V and are not tolerant of voltages outside this range (negative voltages or >3.3V would damage the pin).
- This circuit attenuates (scales down) the input signal, level-shifts it from bipolar to unipolar, buffers it for low-impedance drive, and provides basic protection.
Signal flow and stage analysis:
1. Input (J4 jack)
- CV signal enters through the tip.
- R6 provides current limiting and basic overvoltage protection.
2. First op-amp stage (IC5D, MCP6004)
- Configured as a non-inverting amplifier with a deliberate offset.
- Non-inverting input (+) receives a DC bias voltage derived from the +10V reference (AREF-10V) through R10 to a virtual ground node, combined with the input signal path.
- Feedback network: R8 from output to inverting input, R7 from inverting input to ground.
- Gain of this stage = 1 + R8/R7 = 1 + 12k/24k = 1.5.
- The DC bias at the non-inverting input provides the level shift.
3. Bias/offset generation
- AREF-10V (+10V reference) → R10 → node that feeds the non-inverting input.
- This creates a stable positive offset that shifts the entire signal upward.
4. Second op-amp stage (labeled ICA4, also MCP6004)
- Configured as a non-inverting attenuator/buffer.
- Gain = 1 + R9 / (effective resistance to ground), but looking at the schematic, the input comes through a divider involving previous stage and R9 in feedback.
- More precisely, this stage further scales the signal down.
- R11 in series with the output acts as a small damping resistor to improve stability and limit current into the ADC pin.
5. Capacitors
- C6 (likely 47pF or similar) and other small caps provide high-frequency filtering and prevent oscillation.
Overall function and scaling:
With the updated resistor values, the circuit performs the following transformation:
- Attenuates the incoming CV amplitude (total gain < 1 overall).
- Adds a DC offset of approximately 1.65V (half of 3.3V).
- Maps a typical -5V to +5V CV input range to approximately 0V to 3.3V at the output.
- For wider input ranges (e.g., -10V to +10V), the signal will be compressed or clipped slightly, but the high input resistance and attenuation prevent damage.
Key advantages:
- Protection: Series resistors (R6, R11) limit current.
- Accuracy: Dual op-amp buffering ensures very low output impedance for the Teensy ADC (improves conversion accuracy and speed).
- Stability: MCP6004 is a rail-to-rail, low-power quad op-amp ideal for single-supply (3.3V) operation.
- Noise filtering: Small capacitors reduce high-frequency noise.
Result: this is a robust, standard design for safely reading bipolar analog control voltages from modular synthesizers into a Teensy 4.0 (or similar 3.3V microcontroller) ADC. It attenuates, level-shifts, buffers, and protects the microcontroller input while preserving good fidelity for pitch or parameter control applications (e.g., DIY oscillators, sequencers, or quantizers). If your CV source uses a different voltage range, minor resistor tweaks can optimize the full-scale mapping.