For more information about methods of managing heat dissipation (using air, protoboard, copper PCB, heatsink, and heatsink + fan) with the 7805, try checking this enginursday post:

Or check out this example using a Raspberry Pi, RC LiPo battery, and TB6612FNG DC motor driver.