Today I learned you can use generic GPIO PWM to fake an analog voltage.
https://ww1.microchip.com/downloads/en/Appnotes/90003250A.pd...
https://ww1.microchip.com/downloads/en/Appnotes/90003250A.pd...
https://docs.arduino.cc/language-reference/en/functions/anal...
A PWM output followed by an adequate filter can be considered a cheap, low quality type of DAC. You never get the quality as good as you want but you get it good enough.