[Gardner] put together a simple and cheap solution ... The project is aimed at Arduino-based circuits, but any chip with an ADC will work. The 555 timer is used as a free running oscillator.
As it turns out, the ever-useful 555 timer chip does the job admirably. It’s a simple enough circuit, the threshold pin is pulled high so the output goes high, and the PWM drive from an Arduino ...