I have a microcontroller that is feeding an H-bridge in order to control the on/off and direction of a small 6VDC motor. I have two LEDs connected back to back across the H-bridge output in order to have a visual indication of the output polarity from the H-bridge. Everything works well until I connect the motor, at which time the motor buzzes but doesn't turn and both the LEDs light as if the polarity is rapidly switching. I suspect the uC is being interfered with by electrical noise from the motor. I have a .1 uF cap across power legs of the uC, but I need to do more.
Suggestions are welcome.
Thanks.
Suggestions are welcome.
Thanks.