AliEmad2002 / STM32_Oscilloscope

STM32f103 based digital oscilloscope. 1MSPS. Dual channel (Y-t) and (Y-X) modes
3 stars 0 forks source link

DC voltage offset to measure -ve voltages #17

Closed AliEmad2002 closed 1 year ago

AliEmad2002 commented 1 year ago

After trying couple of op-amp circuits, the best solution - in my opinion - is to use an Inverting differential amplifier, for three reasons:

image Vout = -R2 / R1 * (Vin - 5) (Image was edited. Reference: https://www.electronics-tutorials.ws/opamp/opamp_5.html)

AliEmad2002 commented 1 year ago

Using R1 = 100k, R2 = 33k gives a gain of 0.33, which allows a max vpp = 10V, with an input resistance of ~ 100kOhm