-1

I'm looking to use this relay with my arduino. It has an optocoupler and correct me if I'm wrong but this should prevent any back EMF from affecting my arduino. Do I still need to use a transistor?

  • I'm not sure why everyone wants to close this question as off-topic. But driving relays (especially relay boards) with an Arduino is, in my opinion very on topic. – Paul Jan 16 '17 at 13:34
  • 1
    I'm voting to close this for inactivity. Since it has been two weeks after a good answer and we haven't heard anything of the (relatively new) person who asked the question. So the question is likely to be abandoned. – Paul Jan 16 '17 at 13:38
4

That isn't just a relay you are linking to. That's an entire board that, among others, contains a relay (blue box). This board already has a transistor to drive the coil inside the relay. It also has a diode to handle back EMF.

It even has a opto-coupler, thought that isn't that useful as in most cases both sides of the opto-coupler are powered by the same 5V coming from the arduino.

| improve this answer | |
2

Gerben is right. That is a complete board, not a relay. I have used some of these and they do not require a transistor to drive them (although you could use one if power output from the ports are a concern). I beg to differ from Gerben, as the optocoupler isolates the pin from the driving circuit (even if it does not isolate the regulator) it still retains much of its safety characteristics.

| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.