Well I for one would NEVER operate a relay directly from the processor. looking at the data sheet for the relay, It draws 22 ma. Its bad enough for a pin that is sinking but it looks as if you are also sourcing the current to the coil. Use a transistor to switch the coil and you also get an extra pin to use. Also, I see NO diode to prevent backemf form the relay.
Bookmarks