the Arduino world is rather new for me. For a measurement project I like to show the result of my measurements on an oscilloscope via the onboard DAC on pin A0.
The "analogWave.h" library of the R4 Minima DAC Guide tutorial works well, but seems unsuitable to simply output a voltage.
My task can be simplified to the following basic task:
read the measured voltage on an analog pin and do some calculations
output the result as a true analog voltage through the onboard DAC.
I didn't find solutions in documentation, tutorials and fora.
Can someone help me perform this seemingly simple task?
Thank you very much!
Thanks for yr reply. However, analogWrite gives an PWM output, not a true analog voltage generated by the DAC. Unfortunately unsuitable for my application.
The official examples demonstrate this DAC facility as a sine wave source.
There is no demonstration of any application of various DC levels (e.g. a steady 1.1V).
Yes indeed. Obviously I overlooked something.
Attached a very simple working sketch to generate a calculated sine wave or saw tooth.
Thanks for helping, you put me in the right direction.
Problem solved!