when the horn button is pressed and released the microcontroller is restarts, even ive added freewheeling diode to relay, it is the main problem of it, what to do??????????????????
View attachment 92805
when horn is pressed, there is no problem, when i release the horn it will restartsYou may check voltages before and after the 5 volts regulator powering the microcontroller, when the horn is activated. Confirm that the voltage is in limits of the Micro and doesn't drop.
1)i think bridge gives some more protection for transient voltage of relayRemove Graetz bridge, D1 and D2! Why you use this ?
In thread first post in your circuit you mention diode near relay, that diode keep.
Before 7805 voltage regulator put 100uF - 220uF, after regulator 10uF and 100nF on end.
Add an additional 100nF close to Vss-Vdd pins on uC.
You Put 1uf at right side of regulator. put 1000uf before regulator and 330uf after that.
2-reset circuit of your micro-controller : I think you should survey that (you should use related circuit for RST pin at the datasheet).
1)i think bridge gives some more protection for transient voltage of relay
2) OK
3) is i need to use both 10uf & 100nf??
4) 7805 is very near to uC.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?