Examine your Ground (GND) connections. Best is to use one pair of power and ground leads/traces for the ATmega8, and a separate pair for the motor and solenoid. There should be only one common point -- at the power supply. That should be your first effort. A schematic of your entire system would be most helpful. Can you please provide one.i use external interrupt pin on atmega 8(INT1) to do action, but there is a relay and motor in my circuit which activated the interrupt and execute the action. i used switch debounce but no vain how to solve this problem?
The relay and motor are not shown in your schematic. What kind are they and how are you powering them?i have gnd plane and power plane and i put capacitor 100nf across each switch also relay board is separated from MCU board
this is the relay board drive small ac motor, i tried to use snubber rc circuit 100nf,47 ohm but there was leakage and the relay was always onThe relay and motor are not shown in your schematic. What kind are they and how are you powering them?
I know what you have, and that is a problem. If you take my suggestion you will have less of a problem. Go back and read it again. Do not pass Go and do not collect $200.00i have gnd plane and power plane and i put capacitor 100nf across each switch also relay board is separated from MCU board
Is backfeed a technical term? What exactly are you talking about?Couple of things. Relay coils can backfeed when field collapses and same for motor winding. Use diodes to prevent backfeed.
The second diagram you posted is the same one you posted above. We still don't know what type of relay and motor you are using, how they are connected and how you are powering them.this is the relay board drive small ac motor, i tried to use snubber rc circuit 100nf,47 ohm but there was leakage and the relay was always on
So turning off a switch on a solenoid leaves no path for the current to flow which makes backfeeding, as you put it, impossible. It physically cannot flow if there is no path so I think we are talking about different things. What you get without a current path, is a large voltage spike proportional to the inductance and the time rate of change of the current. A diode will provide an alternate path for the current in a coil to flow when the switch turns off, but it may or may not do much to help the TS's problem if his layout does not have a better grounding strategy.Backfeeding is flow of electrical energy in the reverse direction from its normal flow. For example, backfeeding may occur when electrical power is injected into the local power grid from a source other than a utility company generator.
Backfeeding - Wikipedia
en.wikipedia.org/wiki/Backfeeding
As happens when a coil or motor field collapses. Also can be a source of circuit noise and hence diodes to prevent.
Seriously?Is it possible to disable the interrupt synchronously with the relay activation?
If the same MCU controls the relay, then you might be able to mask the problem.
Sure, just trying to think like a Boeing engineer for a minute or two.Seriously?
l293d driver has already internal diodes for this missionBackfeeding is flow of electrical energy in the reverse direction from its normal flow. For example, backfeeding may occur when electrical power is injected into the local power grid from a source other than a utility company generator.
Backfeeding - Wikipedia
en.wikipedia.org/wiki/Backfeeding
As happens when a coil or motor field collapses. Also can be a source of circuit noise and hence diodes to prevent.
good idea, but Is it the right choice ? I mean Is it one of our optionsIs it possible to disable the interrupt synchronously with the relay activation?
If the same MCU controls the relay, then you might be able to mask the problem.
A quaint notion, but nonsense. A digital output from an MCU is a lot of things. One of them is a switch.Yep it's not a switch controlling it if the signal is from the MCU. Or any other IC.
He mentions that the motor is "a small AC motor". We do not yet know how it is powered so it may not be a very good Idea to connect it to circuit ground.I know what you have, and that is a problem. If you take my suggestion you will have less of a problem. Go back and read it again. Do not pass Go and do not collect $200.00