I’m a mechanical engineer who rekindled my interest in electronics. I started a modest project, and I think I’m stuck on a couple small points.
The project uses an Arduino as a smart timer which periodically activates a 12V car horn via an relay module based on the “SRD-12VDC-DL-C”. Power is supplied to the system from a 12V wall wart. The 12V is dropped to 5V via an LM7805 which feeds the Arduino and the relay relay/horn (See the diagram). That’s it! But I have a couple problems:
1. At times, when the car horn sounds, the Arduino resets. The power supply can do up to 6A and I was able to measure that the horn takes about 3A. The horn sounds for about a second at a time. The Arduino obviously takes much less power. Why should the horn sounding cause the Arduino to lose power? (I have no scope to prove this is what's happening.) Can this be? If so, how can it be avoided?
2. Unrelated, the LM7805 heats up, even when the horn is not sounding, and the only power is going through the system powers the Arduino. Why should this be?
Any help would be very much appreciated. Thanks in advance!

The project uses an Arduino as a smart timer which periodically activates a 12V car horn via an relay module based on the “SRD-12VDC-DL-C”. Power is supplied to the system from a 12V wall wart. The 12V is dropped to 5V via an LM7805 which feeds the Arduino and the relay relay/horn (See the diagram). That’s it! But I have a couple problems:
1. At times, when the car horn sounds, the Arduino resets. The power supply can do up to 6A and I was able to measure that the horn takes about 3A. The horn sounds for about a second at a time. The Arduino obviously takes much less power. Why should the horn sounding cause the Arduino to lose power? (I have no scope to prove this is what's happening.) Can this be? If so, how can it be avoided?
2. Unrelated, the LM7805 heats up, even when the horn is not sounding, and the only power is going through the system powers the Arduino. Why should this be?
Any help would be very much appreciated. Thanks in advance!
