Need help on connecting an I/O pin to an external device

Electronics & Electrical Engineering Topics
Post Reply
Leo
Corporal
Corporal
Posts: 8
Joined: Fri Jul 17, 2009 7:28 pm

Need help on connecting an I/O pin to an external device

Post by Leo » Sun Jul 19, 2009 11:13 am

Hi,

I need to connect my microcontroller to operate an external DC motor (a back EMF is obviously expected).
At the moment I use relays, but I have seen that my system reset few times with the relay pickup.

Do you have any quick idea with your experience?

Best Regards,

Leo
User avatar
Magneto
Major
Major
Posts: 430
Joined: Wed Jul 15, 2009 1:52 pm
Location: London

Re: Need help on connecting an I/O pin to an external device

Post by Magneto » Thu Sep 24, 2009 10:02 am

Hi Friend,

When you use a Relay with a microcontroller , put a diode inbetween the two terminal of relay coil. And this
diode should be reverse bias. This will eliminate the microcontroller restart problem.
Post Reply

Return to “Electronics & Electrical Engineering”