I must be missing something. I tried to design a simple Optocoupler circuit. I have a 24V power supply which powers a 7805 Voltage Regulator. A simple switch powers the Optocoupler. I have a delay timer (555 timer) in between the input and the output Optocouplers.
I put this on a breadboard, but when I leave the input pushbutton pressed, the 7805 Voltage regulator gets very hot, very quickly. The circuit performs the function that I expect, but I didn’t think I would draw that much current, as the 7805 is rated for 1.5A.
What can be drawing so much current that the regulator cannot supply the required voltage? What have I messed up in this circuit?
The attached image shows the circuit. NOTE: Everything in orange is the bottom layer of the PCB design, which is all ground.
The 555 timer’s power supply can be up to 16 volts, so why not use a 12 volt regulator (7812) instead of the 5 volt one? The 7812 will dissipate less heat since there will only be a 12 volt drop across it vs 19. A small heat sink would be a good idea too.
Only major things to heating circuit is due to uncontrollable flow of current from source. Try to reduce the high current flow from source or use the heat sink for IC like 555 , voltage regulator IC.