If you switch the 7805 regulator by a switch mode regulator (DC-DC buck converter) then the 12V supply will work