The 78XX series of regulators are very handy to use ... The schematic notes you can also replace the IC with an MT2492. With a right-angled header, you can swap the board in for a standard ...
as mentioned by several readers, you’ll want to use a 5 volt regulator ic instead of the resistor ... connect the positive battery terminal to the 7805 input pin, the positive usb pin to ...