Hi Everyone, I am helping Azim with his question and moving it here for general discussion:
---------------------( COPY )---------------------
Hello
I am using Arduino Uno to control 3 DC appliances. When the Arduino switching the relays from ON to OFF state the Arduino is getting restarting.
I changed my power supply connections as your advice in: [Showing optical isolation]
Here is the schematic of the circuit.
Would you help me to overcome this issue?
-----------------( END COPY )----------------------
Please see this page for suggestions on how to solve this problem:
https://arduinoinfo.mywikis.net/wiki/Arduino-Project-Planning-Electrical
Think about this:
AC vs DC: Why do I care?
When you are switching power, you care if it is AC or DC. You care because there are different effects on the switching elements you use, which could be metal-contact relays, Power Transistors, Silicon-Controlled-Rectifiers or TRIACS.
Turning things ON:
When you make the connection to turn something on, current starts to flow. If the load is a nice pure resistance like a heater element then the current just starts up and stays the same. But if the Load is a motor or an incandescent lamp, there is a sudden inrush of current right at the beginning. Your switching device has to be able to handle that.
Turning things OFF:
This is more of a problem. When you break the connection to turn something off, bad things can happen, especially if the load is 'inductive' like a motor, a magnet, a relay coil etc. Such loads produce a sudden high voltage in the reverse direction, that can spark and damage relay contacts or internally damage transistors, SCRs, TRIACS. There are two approaches to handling this:
Make sure the switching device is rated to handle this type of load. Notice that relays often have two ratings: A resistive load in Amps, and a Motor load in Horsepower which considers these situations.
Use some method of suppressing the high voltage transient. Like these:
- Connect a reverse diode across magnets and relay coils.
- Connect a MOV (Metal Oxide Varistor) surge suppressor across the load.
- Connect some resistor-capacitor combination across the switching contact
