2021-09-20 06:14 PM
I try to learn how to use OPAMP by testing the example code Examples/OPAMP/OPAMP_PGA/.
The MCU board is Nucleo-G431RB.
This is the case of OPAMP_PGA_GAIN_2_OR_MINUS_1: blue line is output by DAC and red is by OPAMP.
My 1st question: why the amplified signal is distorted. Isn't it supposed to be another sine wave?
This is the case of OPAMP_PGA_GAIN_4_OR_MINUS_3.
My 2nd question: the amplitudes of the amplified signal seem not matching the gain.
Once the gain >= 8, the amplified signal becomes almost straight line. I also wonder why.
I want to modify the example code: I want to route the OPAMP output internally to a ADC channel. What steps I need to do?
Solved! Go to Solution.
2021-09-25 08:40 PM
Dear @Igor Cesko
I have another question:
The above pic shows the signals captured from DAC and OPAMP output pins: blue is DAC; red OPAMP.
What puzzles me is their amplitudes: DAC output is from -40mv to 40mv; while OPAMP output is -0.8v to 0.8v. The gain is 20 times, but for OPAMP PGA setting is
hopamp3.Init.PgaGain = OPAMP_PGA_GAIN_2_OR_MINUS_1;
2021-09-27 07:38 PM
@Igor Cesko sorry, my fault. The two probes themselves have 2 different gains: x1 & x10, so now everything makes sense.
Thx.
2021-09-28 01:32 AM
Check your measurments. Looks like you have wrong osciloscope probe configuration in you SW (10x vs 1x).