Generate a ramp input with an Arduino Uno Is there anyway to generate a ramp input from an Arduino Uno? A visual depiction of the pulse I am looking for is as follows:

With other microcontrollers, I was able to use their in-built DACs, however I am aware that the Arduino UNO doesn't have any? Is there a way using PWM or analogWrite to output these type of pulses? I'm new to Arduino programming, so I'm a bit unsure. However my next guess would be to use an R-2R ladder to output this type of pulse?
A RC filter will create a slow slewrate.







simulate this circuit &ndash; Schematic created using CircuitLab

The circuit creates this signal:


A slow rising signal and a fast falling signal can be created with an extra transistor (the signal will be inverted).







simulate this circuit

For a linear rising and falling edge, a resistor network with a few digital pins is a simple solution. I think it can be created with an opamp circuit as well, but there are also special chips called "slew rate limiter".