Hey!
I am controlling a relatively high RPM DC motor (not quite sure the exact RPM) with an SN754410 Hbridge at 12v connected to an Atmega 644p.
I can control the Atmega 644p over a serial line from my pc and tell it to turn the motor on/off.
My problem is, 8/10 times when the motor turns on the Atmega stops responding and the motor stays on and just acts plain weird until I reset the chip.
I'm pretty certain this is down to voltage spikes in from the motor, but I just cant seem to get rid of them. The important parts of my circuit are:
12v -> 5v Regulator -> Atmega -> Hbridge -> dc motor
5v Regulator -> L293d (power it)
12v -> Hbridge (motor runs off this)
12v -> 10uF Cap -> 0v
5v -> 10uF Cap -> 0v
I tried adding snubber diodes:
Each pole of motor -> Snubber diode (1N5817) -> GND
Each pole of motor -> Snubber diode (1N5817) -> 12V
But that doesn't affect it at all.
Has anyone got any ideas?
Thanks
I am controlling a relatively high RPM DC motor (not quite sure the exact RPM) with an SN754410 Hbridge at 12v connected to an Atmega 644p.
I can control the Atmega 644p over a serial line from my pc and tell it to turn the motor on/off.
My problem is, 8/10 times when the motor turns on the Atmega stops responding and the motor stays on and just acts plain weird until I reset the chip.
I'm pretty certain this is down to voltage spikes in from the motor, but I just cant seem to get rid of them. The important parts of my circuit are:
12v -> 5v Regulator -> Atmega -> Hbridge -> dc motor
5v Regulator -> L293d (power it)
12v -> Hbridge (motor runs off this)
12v -> 10uF Cap -> 0v
5v -> 10uF Cap -> 0v
I tried adding snubber diodes:
Each pole of motor -> Snubber diode (1N5817) -> GND
Each pole of motor -> Snubber diode (1N5817) -> 12V
But that doesn't affect it at all.
Has anyone got any ideas?
Thanks