I code in Arduino and build stuff but don't have engineering background and get lost when trying to figure out datasheets. Already spent few hours on these and just looking for specific advice on which diodes to use (it would be even better if someone explain how to make that determination but just pointing to the right one would be greatly appreciated).

My setup is very similar to this question and have feedback.

I have several of the three diodes at home:

  1. 1N4001 50V 1A
  2. 1N4148 50V 1A
  3. 15SQ045 45V 15A Schottky

Questions 1: I am getting lots of feedback when switching the larger relay. Not sure how much current larger relay requires but there is definitely a noise when switching that messes up all other arduino connected components. (this scenario is very similar to figure 4 here) Will any of the diodes listed above be appropriate in this scenario or I need to buy something else?


simulate this circuit – Schematic created using CircuitLab

Question 2: I also have several linear actuators (all of them 12volt and operating at around 3amps). According to this post (figure 2), I have to use 4 diodes for each motor since they are reversing. Will any of the diodes listed above work in this scenario? If not, what model should I buy or what model zener should i get as noted in figure 3 of the referenced post? (I actually wouldn't mind purchasing Zeners instead of what I have - it would be easier to install and more elegant (figure 3 of the referenced post) - if anybody can recommend specific model)

Thank you very much.

More clarification and follow up:

Thank you, Kyle. Quick little background on the project: We are building X-wing fighter to raise money for school STEM program. The project has taken 5 years and we are just focused on finishing it. Frankly, I don't even remember how things were wired and coded (and whether I have the most recent code) and would be very nervous touching anything that has to do with recoding/rewiring that would be needed to put in transistor/mosfets (but I will certainly do this next time). the overall current setup works as is except of getting messed up sometimes because of feedback from motors. Here is the video that has background info and some of the automation that was put in and couple pictures below.

So, right now, only practical option is to put diodes around the linear actuators. I just wanted to confirm your answer (sorry, with no background and brain exhausted, I am little dense) to make sure I didn't misunderstand anything:

We want diode to have a smaller capacitor so that it charges faster and snubbs the voltage spike faster before it gets too high. This is one reason why Schottky diode would be acceptable. So, this applies to both the relay (across the coil) and the reversing DC motor (actuator), correct? Thank you enter image description here enter image description here

  • 2
    \$\begingroup\$ A few questions pop to mind. (1) Why are you considering the use of a JFET to switch a relay? There are better options. (2) What's the intent behind using a smaller relay to activate a larger one? What's motivating this idea? (3) What is the real goal here? Can you describe what you are trying to achieve -- big picture? Is it just operating motors? Or what, exactly? Spent a little more time talking about the problem you face at the larger level. \$\endgroup\$
    – jonk
    Commented May 2, 2020 at 6:09

2 Answers 2


The "right" diode to use in this application is the Schottky diode.
It is a much faster diode than the others. Zeners are NOT the appropriate choice.

Imagine there is a capacitor across the diode (in parallel). This capacitor has to be charged before the diode can begin conducting. If the capacitor is bigger, it takes longer to start conducting, and that allows the voltage spike to rise higher before it's snubbed.

All diodes have this capacitor inside them. It's called "Junction capacitance". Schottky diodes have a much smaller capacitor than silicon diodes (i.e. 1N4148, 1N4001). That means they'll switch 'on' faster - much faster.

1N4001 is a very slow diode - It's a power diode meant to work on low-frequency power applications like 120/230VAC rectification (i.e. 50 or 60 hz). That's thousands, maybe millions of times slower than an inductive voltage spike from a relay, so it's perfectly suitable in that application.

The 1N4148 is a 'small signal' diode - meant for switching very very light and lower power signals. It is tiny and not suited for snubbing those high-voltage spikes w/o failing.

At my company, we use 1N5819 diodes by the millions on small DC motors for this same purpose. Note the diode you have, I found a datasheet and it doesn't list the junction capacitance, but it IS a high-power diode. High power likely equals big junction which means big capacitance. In other words, of the three diodes you have on-hand, it's the best choice. But it may not be a good choice... You might want to seek out a much faster diode (1N5819 is probably too small for your application - look for a bigger device with very low or zero 'reverse recovery' - That's a measure of switching speed ).

There are other options. For example, you could use a transistor to switch the actuator SLOWLY. Transistors aren't just on/off. If you use a MOSFET, and put a small RC network on the gate, the rate of change from ON to OFF will slow down, which will limit the rate of change of current through your actuator. Per Faradays law, the induced voltage is proportional to rate of change of current. So if you take 1ns to stop it, you'll get a huge spike. Take a few milliseconds to turn it off, you'll probably get no measurable spike. Too slow, or too small a MOSFET, and you'll burn up it up - A high power MOSFET like probably "anything" in a TO-220 package should be adequate.

  • \$\begingroup\$ I disagree with you about the speed of the diode. The difference in speed concerns the turn-off of the diode, not its turn-on. The junction capacitance does not affect the speed of turn-on. Moreover this capacitance depends mainly on the current rating, and the schottky given in the question has a much higher capacitance than the 1N4001 (IN4001: Cj = 15pF / 15SQ045: Cj = 450pF). For a relay, you can use any diode you want (of course not a Zener), as the required switching speed is very low (at most a few switches per second). \$\endgroup\$ Commented May 5, 2020 at 12:05

Short answer : you could certainly use any of the three diodes. In your application, you don't need fast diodes (relays are sloooooow). You just have to make sure that the diode withstands the supply voltage of the relay coil, as well as the current in the coil.

Now, I think the 1N4001 should be the most appropriate (or 1N4148, except it has a lower current rating. Maybe is it sufficient ?). The Schottky diode could work, but you need neither its speed, nor its current rating.

If you want to drive a relay with an arduino (or any other microcontroller), I would suggest a circuit similar to this one. This circuit can certainly be even simplified:

  • except if you must switch the relay on and off at very high speeds (NOT recommanded BTW), you certainly could remove the zener diode in series with the 1N4001
  • R2 can be removed (replaced by open circuit) if you are always connected to an arduino pin
  • R1 can be omitted (replaced by short-cricuit)

For the mosfet : a BS170 should be sufficient for most relays.

As far as the junction capacitance of a diode is concerned, this is not what will delay the diode's turn-on, at least not here. Moreover, the Schottky diode you propose has the highest junction capacitance (450pF), compared to the 1N4001 (15pF) or 1N4148 (4pF).

The problem that can appear in the diodes used as freewheel (snubber) diodes, is rather the turn-off speed. The exact name is "Reverse Recovery Time" (trr). If you were manufacturing a switched-mode power supply (with switching frequencies ranging from a few tens to a few hundred kilohertz), this parameter would be of great importance, and you would certainly not use a 1N4001.

  • \$\begingroup\$ Thanks again for your comments. I used Schottky since i had them on hand (even if it was an overkill) and it works like a charm - no more feedback. \$\endgroup\$
    – mvoltin
    Commented May 27, 2020 at 13:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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