Skip to main content
Associate
June 7, 2024
Question

OPAMP on STM32G431KB

  • June 7, 2024
  • 1 reply
  • 1028 views

Hi, Master:


Hello, I want to use the opamp amplifier function of the g431kb board to connect an external gain circuit and use standlone mode. Can I use it after downloading my MXsoftware generate code?


I set the OPAMP1_P (PA7) input to 2.5V (DC power supply),

OPAMP1_M (PA3) input to 1Vpp sine wave,

plus 15K ohm R1, 33K ohm R2,

OPAMP1_P (PA7) output should be 5.8V~10.2V , is this correct?

 

Because the output waveform cannot be changed according to the DC power supply, the gain is always 5.
Have I not enabled the OPA function?

 

Thank you very much!​scope_12.png

1 reply

Uwe Bonnes
Chief
June 7, 2024

The Opamp can only work inside the limits of its supply voltage and also needs some head and footroom. So scale down your input to not overdrive the input.

30108ericAuthor
Associate
June 7, 2024

Hi,

Turn down the input signal and the gain is still 5,and still will not change according to DCpower supply

Whether it is increasing or decreasing the voltage