cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G431KB: I need for my project an analog value between 0 and 5V. It seems like the MAX DAC Value is only 3.3V. Is it possible to change the range of the DAC somewhere in STM32CubeIDE or do I need to do it external?

MSpir.2
Associate II
 
2 REPLIES 2
Peter BENSCH
ST Employee

Welcome, @MSpir.2​, to the community!

For this application, there are amplifier circuits that turn a smaller voltage into a larger one. In your case, you would have to use a non-inverting amplifier with a gain factor of 5V/VDD (if VDD=3.3, then =5/3.3), which can be realised quite easily with a low-voltage opamp with RRIO pins (rail-to-rail input and output).

Does it answer your question?

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Peter BENSCH
ST Employee

Do you need additional hints?

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.