
I like these and the can fit right into the existing pcb holes.Murata I have some of these. These are a Switching Power Supply that is mostly LM7805 compatible. They do not get hot! In your case they will pull 1/2 as much power from the 12V supply. The price is high. There are other companies making similar.
R-78HB5.0-0.5L
These two are at digikey.com
View attachment 332282
Shouldn't be needed by rights. IMO.Maybe you can in series with a 10Ω/15W resistor to the input of LM7805 to reduce the heat.
I definitely agree that a buck converter will be a much more efficient choice. You will need to add a filter capacitor, though.Many years ago I did try adding a series resistor with a 7812 regulator dropping from 24 volts. The result was a 15 volts peak to peak oscillation on the 12 volts line. I had to add both a 20 FD capacitor to the input PLUS the 0.1 MFD on both input and output, to halt the oscillation.Would suggest a different approach; a Buck Converter.
The 7805 has to waste 8.8 volts whereas a buck converter will switch on and off rapidly. Depending on the desired output you adjust it down. In the end the buck will be OFF more than it is ON. This results in an average temperature. A rough estimate of percentage of ON time is approximately 40%. It will run a whole lot cooler too.
If the .34 amp current is constant a 10 ohm, 5 watt series resistor at the input side of the regulator will reduce the wattage across the 7805 from 2.38 to 1.22 watts with 1.16 watts transferred across the resistor.??With a series dropping resistor??
NO dropping resistor!??With a series dropping resistor??
It's in Figure 8 of the page 5.https://docs.rs-online.com/4488/0900766b814b241f.pdf
Figure 12 shows the series resistor, and that the input capacitor goes after the series resistor.
Actually it’s figure 23, page 27.It's in Figure 8 of the page 5.