cancel
Showing results for 
Search instead for 
Did you mean: 

STM32_DAC_OUTPUT

Samuel1
Associate III

Hallo everybody,

i would like to generate analog signal (0-5 V) via DAC but the problem is the maximam voltage is 3.3 V . ist it possible to change some configuration to generate an analog signal with maximam voltage from 5 V?

thanks

#DAC​ #[Analog and Audio]​ 

6 REPLIES 6
S.Ma
Principal

Use an external op-amp to scale up the voltage range..

Same for the ADC.

0690X000008AlhUQAS.png

Ggast
Associate III

Could you post your code?

Trying desperately to find a working DAC code (preferably in Arduino).

> Trying desperately to find a working DAC code (preferably in Arduino).

Then better look in the Arduino world. Very few proficient users with any interest in Arduino here.

For code examples in C/C++, you need to name your MCU.

And you definitely need an output buffer amplifier to get 5V.

Mind the DAC output impedances and the offset voltages associated with the DAC buffered/unbuffered configuration options.

Hi.

Take a look at this AN4566

There are several working examples also inside STM32CUBEF1 package.

There is no sw solution for 5v analog output unless using scaling external hw

Ggast
Associate III

"For code examples in C/C++, you need to name your MCU."

It is Nucleo H743ZIT6.

I installed the GBs of Software according to "Get Started".

In Atollic, I imported the mentioned GPIO example (Blink) which compiled.

However, when trying to Run or Debug in Atollic an IP address is requested. But the board is connected via USB. I have not found no option to flas via USB.

Then I tried to "download" the ELF file produced thereby to the board via STM32 Cube programmer. Error, "download failed"

Then I converted in Atollic to hex and tried to download that. Error: "Download failed".

Just to make sure the board is ok I used Cube programmer to download the Blink example (hex) produced by Arduino. That worked.

Does anybody have a hint why I can't download those hex files produced by Atollic?

And, why is Atollic asking for an IP address?

And, by the way, the start address shown is 0xFACEBOOC.

A joke?