3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Should I use a relay?

Hello, I am trying to control a 9v DC pump with an arduino. I am thinking that I will need to attach a relay to the pump, and control the relay with a transistor from my arduino. Is this correct?

6 answers
sort by: active | newest | oldest
Sep 1, 2011. 9:53 AMsteveastrouk says:
Yes. Make sure you put a diode across the relay coil, tie the diode's cathode (the end with the marking) to the most positive side of the supply, and tie the anode to the top of the transistor/connection to the relay.

steve
Sep 1, 2011. 4:56 PMfrollard says:
+1
Oct 28, 2011. 7:43 AMdog digger says:
You could use a mosfet. Make sure you use a diode on terminals
Sep 16, 2011. 4:32 PMkenyer says:
check this for nice schematics:

http://www.oomlout.com/a/products/ardx/circ-11

It helped me to understand relays.
Sep 5, 2011. 2:50 AMsteveastrouk says:
The diode stops a very high voltage that will be generated in the relay coil when its switched off from damaging the Arduino.

Steve

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!