Exactly. You’ll need a snubber or a simple reverse diode back EMF protection in your motor.Supply decoupling is still required to prevent the motor and relay from putting spikes on the power supply. Post a schematic.
Thank you Dana."Normally" you spilt grounds and join them at board edge.
Clamps and snubbers on inductive loads like relay coils.
MCU pins, especially inputs, terminated in low z where possible to minimize
C coupling of noise.
Not all Cs perform equally as bypasses for same value -
Use you scope, hopefully DSO, to trigger ~ 1 diode drop outside
Vdd and Vss rails, to see if you are getting any triggers on any
pin. As a troubleshooting method. If you do get a trigger that pin
is being driven by a transient violating its allowable range of V.
Trigger test V is > Vdd + 0.7, < Vss - 0.7.
Thank you.Exactly. You’ll need a snubber or a simple reverse diode back EMF protection in your motor.
Also a capacitor across the motor terminals may help.
Since you’re using a relay, it needs to be protected in a similar manner as the motor. Another snubber or diode.
If the motor doesn’t need to reverse, you could use a MOSFET instead of a relay, which will prevent noise.
If it does need to reverse, I’d suggest an H-bridge instead of relays. You want to eliminate as many noise generating components as possible.
Your ground connections need to be in a star configuration. Otherwise, increased noise propagation will occur.
A large capacitor across your power supply should be added.
Since you’ve decided not to post a schematic, which of these suggestions cannot be evaluated. Post a schematic and you’ll get better assistance.
|Thread starter||Similar threads||Forum||Replies||Date|
|Arduino automatic plant waterer, relay works in setup() but not in loop().||Microcontrollers||34|
|A||Switching a 12v relay with Arduino||Digital Design||10|
|A||Actuating a 12V Valve with a relay and Arduino||Digital Design||27|
|Controlling AC power through relay and arduino uno||Power Electronics||13|
|2 coil latching relay with an arduino||Microcontrollers||15|