Graph of the discharge of the capacitor in the power supply
The straight line is a discharge with a constant current, and the exponent is a decrease in current through the active resistance of the resistor with a decrease in voltage.
From the graph it will be clear what the voltage ripples will be.
I posted the program here (there is an english translation)
screenshot
Download: yandex upload.ee
I made the source for SpiderBasic. At first, my program window did not fit on the phone screen, but I applied ScrollAreaGadget () and now its surface can be scrolled.
Download (APK + source)