A 12v battery would make the 7805 (5v converter) super hot.
9v is the maximum you should use.
Yes it can work with up to 30v but only if you need very little current output.
With the preenfm2 9v is tht max if you don't want it to get toot hot and die.