Do I need to use a diode?

Hi,

I am looking to use this pneumatic solenoid valve https://www.amazon.co.uk/dp/B0943RSV8H?psc=1&ref=ppx_yo2ov_dt_b_product_details with this relay https://www.amazon.co.uk/dp/B07GXBSX58?psc=1&ref=ppx_yo2ov_dt_b_product_details and an Arduino Uno R3. Do I need to use a flyback diode in this this scenario and if so, what specification and in which direction should it be connected?

Thank you in advance for any help.

Alistair

Yes. In fact 2 diodes because the valve has 2 coils.

When the current to a coil is cut off, the coil generates a voltage in the opposite direction to the voltage when the current was on. It is this voltage you need to short out with the diode, so that it doesn't damage or interfere with the rest of the circuit. So the direction of the diode should be anode to ground and cathode to +12V. If you connect it the wrong way around, it will simply short circuit the 12V power supply when you activate the relay, damaging the power supply and probably blowing the diode.

A diode from the 1N400X range is suitable. Choose one with a current rating above the coil current.

Thank you Paul. I really appreciate your time and help.

Alistair

Correction: the range is all rated for 1A but at different voltages. 1N4001 is rated for 50V so should be fine.

Thanks Paul

That relay board will have the diodes built in to every channel. It is opto-isolated so no extra precautions are needed.

Thank you Mark

Hi,
TIP, Buy 1N4007 diodes, same price as the other 1N400X series, but 1KV.
They will cover 99% of your projects.

Good to have in the junk box, buy them by the 100.
I have along with 10K resistors.

Tom.. :grinning: :+1: :coffee: :australia:

@aliglass
@PaulRB is correct. You should have diodes across the solenoid coils. The relay board does not have them

1 Like

Those diodes only protect the circuit from reverse voltage from the coils inside the relays themselves. They won't protect the circuit from reverse voltage from external coils attached to the relays.

Being opto-isolated can help protect, but if @aliglass has a common ground between the Arduino circuit and the 12V supply, then the opto-isolaton is pointless.

Slightly of-topic question: if higher rated diodes are the same price, why make a range that includes lower rated models? The others must have some advantages, I assume. Like maybe leakage current, voltage drop...?

Hi,

You tell me, they may have different prices when you buy then by the millions.

Tom... :grinning: :+1: :coffee: :australia:

I guess so. The data sheet doesn't indicate any other differences that I can see:

1 Like

I read somewhere that there are two ways of manufacturing. The 4005-4007 falling in the second group. The article stated that the 4001-4004 group has a slightly faster 'on' time. The 1N4004 is my go-to choice for low voltage projects, and the 1N4007 is only used for mains voltage.
I stock four diodes that cover most of my needs. 1N4148, 1N4004, 1N4007, 1N5819 (Schottky).
Leo..

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.