# Op-Amp AC amplifier with highpass and lowpass filters
* For use with MCP6001 or similar amplifier
* For use with [MCP6001](https://ww1.microchip.com/downloads/en/DeviceDoc/MCP6001-1R-1U-2-4-1-MHz-Low-Power-Op-Amp-DS20001733L.pdf) or similar amplifier.
* Works with mV inputs centered around GND
* Few components, 0603 passives for easy soldering
* Schematic drawn on the PCB, so you don't need any stupid documentation
* Designed at ELAB, the PCB can be found [here](https://elab.kth.se/parts?q=opamp&p=2048)
* MCP6001 and "equivalent" amps can be found [here](https://elab.kth.se/parts?q=mcp&p=1630)

# Basic configuration

## Behaviour:
## Behaviour of the example configuration:
* 11x gain
* Bandpass 20Hz - 15kHz (approx, not textbook perfect!)
* Vcc 3-5V
* Supply voltage 3-5V
* Makes 10mV signal centered around GND into a 110mV signal centered around 2.5V
* Output centered arround VCC/2
* To directly drive headphones you must add a DC blocking capacitor! (between OUT and your headphones, 100uF should be fine)
* Pass lower frequencies? -> Increase both Rb+ and Rb- (same value!)
* Pass lower frequencies? -> Increase both Rb+ and Rb- (both should be same)
* Lower center voltage of output? -> Increase Rb+ relative to Rb-
* Achive the opposite of any of the above? -> Do the opposite of any of the above
@ -31,7 +34,7 @@ Note! The MCP6001 has a GBW of 1MHz. This means, if the gain is set to 100x, the
* Since the op-amp does not have a negative voltage rail, the signal can not be less than GND
* Therefore, the input must be biased - pulled towards some positive voltage
* If Rb+ = Rb-, then the bias will be VCC/2 - the signal will be centered around VCC/2
* Adjusting them relative to eachother allows you to pick a different center voltage
* Adjusting them relative to eachother allows you to pick a different center voltage
* The parallel resistance of Rb+ and Rb-, together with C1 forms a HIGHPASS FILTER
* Increasing the resistance lowers the pass frequency
@ -39,22 +42,29 @@ Note! The MCP6001 has a GBW of 1MHz. This means, if the gain is set to 100x, the
* Gain = R2/R1 + 1
* Gain is limited by the GBW (gain-bandwidth product) of the op-amp used
* MCP6001 has a GBW of 1MHz, so max frequency = 1MHz / gain (3db loss at that frequency)
* If you need higher frequencies / more gain, you can use a different op-amp, like an LMV721
## C2 makes the output centered around the biasing frequency
## C2 makes the output centered arround the biasing frequency
* Whatever voltage Rb+ and Rb- form, will be the center frequency of the output
* In essance, the gain for DC is 0 (since the gain resistors R1 and R2 have not DC path to GND)
* In essence, the gain for DC is 0 (since the gain resistors R1 and R2 have not DC path to GND)
* C2 just needs to be big enough, when it is big enough it does not affect filtering
## Rlp and Cout can be used for an output lowpass
## Rout and Clp can be used for an output lowpass
* Classic low pass filter, nothing to see here
## Rlp and Cout can instead be used for an output highpass
## Rout and Clp can instead be used for an output highpass
* Just swap the position of the capacitor and resistor. It's ok, they fit.
## Cbypass must be between 100nF and 1uF
* This is to ensure stable operation of the op-amp
## An additional bypass near the VCC / GND pins of the header
* An additional bypass capacitor may be placed there, if necessary
# Soldering tips

* Solder under the stereo optical microscope
* Solder under the stereo optical microscope, look into the eyepiece, not the LCD display
* Start with the Op-amp
* Then the resistors and capacitors
* Last the pin header
@ -64,4 +74,4 @@ Note! The MCP6001 has a GBW of 1MHz. This means, if the gain is set to 100x, the
# Simulation

[Falstad simulation available here (https://www.falstad.com/circuit/circuitjs.html?ctz=CQAgjCAMB0l3BWEDYCYDMqDsrUE4AOLSAgsJANiSQBZ1kBTAWjDACgBDEXG8CyEOnQU+AvMijh48btAR48WAnnQIMqGpAR1Z8wnHR5IRinSxTpbAO7cN4GrzwiwDqGwBOIJ-cciCAgXJ4Dy9nV29UEkkguDYAY1CfPiTeGGlICFRoGgV-BCxVBTAcIihYDLcAc0TIghq7ALYAJUT-RJo6gJBNCS6YBGtbXmKRHiG3TzGxoVGGi1ibGfGlsH4J8bHVgTHA4IStwUjRbgQRVPL4BSvrm4UQJiyclQINCnQS9EhzuAhINmqDphAmslo1FsJjsI6gc-p4occ6Khjrs-glEQjMONhswwEj0NB+OgCAgCMIEFoaBpFGUflVupixujUKdJH8AB73KjIXgUJFKbrgOoASQAdgAHACuABcADoAZwAFgBLSoKsUcOVymUykUcEUAE3lACMlRr5XEAPYAWyNFrYHNwSE+Akw5k+9GGdQAglaxQAbJUAMyVcQ4UqVFpF9qk5jAkHoYAhcbOgpATSNTGjrGBsZ0xQEnrTRplYujefIIGI4DAdULAGElVGHRRxFTuHgkcykYWmuwOTXO2puFoTrRU01UIMDps1syROzwFg3cVhy6jvXJxyicMVzQl+B16mAPLSyWyuXBv1ShjuQbog4dYGNDk5WPyZDoYa8gU1kBHgCqAAqbD5skLi8EwphJEi5IgP4cBlL8aBsBa3DmEiBbGOIWDQGAeAdDg2D5AQvLYDStKBGwQA)]
[Falstad simulation available here CLICK CLICK](https://www.falstad.com/circuit/circuitjs.html?ctz=CQAgjCAMB0l3BWEDYCYDMqDsrUE4AOLSAgsJANiSQBZ1kBTAWjDACgBDEXG8CyEOnQU+AvMijh48btAR48WAnnQIMqGpAR1Z8wnHR5IRinSxTpbAO7cN4GrzwiwDqGwBOIJ-cciCAgXJ4Dy9nV29UEkkguDYAY1CfPiTeGGlICFRoGgV-BCxVBTAcIihYDLcAc0TIghq7ALYAJUT-RJo6gJBNCS6YBGtbXmKRHiG3TzGxoVGGi1ibGfGlsH4J8bHVgTHA4IStwUjRbgQRVPL4BSvrm4UQJiyclQINCnQS9EhzuAhINmqDphAmslo1FsJjsI6gc-p4occ6Khjrs-glEQjMONhswwEj0NB+OgCAgCMIEFoaBpFGUflVupixujUKdJH8AB73KjIXgUJFKbrgOoASQAdgAHACuABcADoAZwAFgBLSoKsUcOVymUykUcEUAE3lACMlRr5XEAPYAWyNFrYHNwSE+Akw5k+9GGdQAglaxQAbJUAMyVcQ4UqVFpF9qk5jAkHoYAhcbOgpATSNTGjrGBsZ0xQEnrTRplYujefIIGI4DAdULAGElVGHRRxFTuHgkcykYWmuwOTXO2puFoTrRU01UIMDps1syROzwFg3cVhy6jvXJxyicMVzQl+B16mAPLSyWyuXBv1ShjuQbog4dYGNDk5WPyZDoYa8gU1kBHgCqAAqbD5skLi8EwphJEi5IgP4cBlL8aBsBa3DmEiBbGOIWDQGAeAdDg2D5AQvLYDStKBGwQA)