The tough bit is making it independent of the supply voltage...

Easy. Use a solar cell.

pca
_________________________
Experience is what you get just after it would have helped...