Skip to main content
Visitor II
April 9, 2025
Question

OPAMP1 as follower don't give expected results

  • April 9, 2025
  • 1 reply
  • 423 views

I'm trying to use OPAMP1 on stm32g431 adapted by WeActStudio (https://github.com/WeActStudio/WeActStudio.STM32G431CoreBoard)

My Cube settings:

ioc_settings.png

Scoping on generated voltage going to PA1 show 2V:
Vin.png

Scoping Vout on PA2 showing 0V instead of 2V:
Vout.png

I've only the weact version so I can't compare with other hardware, doesn't know if I'm misconfigured Cube.

I compared with a friend that got also the short version and can't got it working.

Zip of the project I'm using with Cube:
AOP_test.zip

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    April 25, 2025

    Hello @Sercurio and welcome to the community;

     

    May OPAMP_Follower example can help you to check your software.

    To test OPAMP_Follower example, a voltage waveform is generated by the DAC peripheral and can be connected to OPAMP input. This example is based on the STM32G4xx OPAMP LL API.

    I hope this help you.

    Thank you.

    Kaouthar