# Do I need a flyback diode for this motor driver?

**URL:** <https://forum.arduino.cc/t/do-i-need-a-flyback-diode-for-this-motor-driver/1325997>\
**Category:** General Electronics\
**Created:** [November 26, 2024, 10:44am UTC](https://forum.arduino.cc/t/do-i-need-a-flyback-diode-for-this-motor-driver/1325997 "2024-11-26T10:44:53Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaguilar84](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jaguilar84/32/1116703_2.png) [@jaguilar84](https://forum.arduino.cc/u/jaguilar84)\
**Post date:** [November 26, 2024, 10:44am UTC](https://forum.arduino.cc/t/do-i-need-a-flyback-diode-for-this-motor-driver/1325997/1 "2024-11-26T10:44:53Z")

</div>

I'm working on a project one part of which involves driving a brushed DC motor from an Arduino. I happen to have a few [TA6586 DC motor driver](https://www.micros.com.pl/mediaserver/UITA6586_0001.pdf) ICs which I have tested to work with my microcontroller using a potentiometer and PWM. Here is the schematic of this part of the design:

 ![image](https://europe1.discourse-cdn.com/arduino/original/4X/2/5/f/25f52d7849755d07771c3b6cf3448a936f5e61b4.png)

I have been told that to protect the various circuit components, I should have a flyback diode across an inductive load. The motor is an inductive load. However, placing a diode across the motor here does not make sense, because the motor can be driven in either direction. If I placed a diode from `MOTOR-` to `MOTOR+`, it would result in a short circuit when driving the motor in reverse.

The datasheet does not give any indication as to whether a diode is needed or included in the IC. Is there any way to find out besides experimenting and seeing if something blows up? If there were a flyback diode in this circuit, where would it be placed? `GND` to `VBATT`?

---

<div class="post-metadata">

**Author:** ![ec2021](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/ec2021/32/997272_2.png) [@ec2021](https://forum.arduino.cc/u/ec2021)\
**Post date:** [November 26, 2024, 11:01am UTC](https://forum.arduino.cc/t/do-i-need-a-flyback-diode-for-this-motor-driver/1325997/2 "2024-11-26T11:01:57Z")

</div>

Hi @jaguilar84 ,

I found this in a datasheet

 ![image](https://europe1.discourse-cdn.com/arduino/original/4X/3/4/0/340d912bb58a3c5d78f2318085d6e2c69aa53d13.png)

(Source: [https://www.micros.com.pl/mediaserver/UITA6586\_0001.pdf](https://www.micros.com.pl/mediaserver/UITA6586_0001.pdf)

which sounds to me as if there is no external diode required.

The use of clamp diodes is explained here

[https://www.utmel.com/blog/categories/diodes/clamp-diodes-principles-functions-and-applications](https://www.utmel.com/blog/categories/diodes/clamp-diodes-principles-functions-and-applications)

---

<div class="post-metadata">

**Author:** ![jaguilar84](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jaguilar84/32/1116703_2.png) [@jaguilar84](https://forum.arduino.cc/u/jaguilar84)\
**Post date:** [November 26, 2024, 11:02am UTC](https://forum.arduino.cc/t/do-i-need-a-flyback-diode-for-this-motor-driver/1325997/3 "2024-11-26T11:02:28Z")

</div>

I understand I also need local bulk capacitance and noise-filtering, probably, so maybe it should look something more like this?

 ![image](https://europe1.discourse-cdn.com/arduino/original/4X/2/6/d/26d2935e05ee25a81f4c6982399b46e48eb60d33.png)

---

<div class="post-metadata">

**Author:** ![jaguilar84](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jaguilar84/32/1116703_2.png) [@jaguilar84](https://forum.arduino.cc/u/jaguilar84)\
**Post date:** [November 26, 2024, 11:03am UTC](https://forum.arduino.cc/t/do-i-need-a-flyback-diode-for-this-motor-driver/1325997/4 "2024-11-26T11:03:21Z")

</div>

Hrm. Maybe better close reading skills are also something I should cultivate.

---

<div class="post-metadata">

**Author:** ![build\_1971](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/build_1971/32/689930_2.png) [@build\_1971](https://forum.arduino.cc/u/build_1971)\
**Post date:** [November 26, 2024, 11:04am UTC](https://forum.arduino.cc/t/do-i-need-a-flyback-diode-for-this-motor-driver/1325997/5 "2024-11-26T11:04:08Z")

</div>

Yep!  
Diode not needed.  
Put 100nF close to IC.

Diodes are built in. If they were not, you would need 4 diodes. Two on each motor lead... regard the motor as a AC power source. The diodes rectify the AC to feed into your power supply.

---

<div class="post-metadata">

**Author:** ![ec2021](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/ec2021/32/997272_2.png) [@ec2021](https://forum.arduino.cc/u/ec2021)\
**Post date:** [November 26, 2024, 11:04am UTC](https://forum.arduino.cc/t/do-i-need-a-flyback-diode-for-this-motor-driver/1325997/6 "2024-11-26T11:04:11Z")

</div>

No worries, it tells us we are still human ... 😉

---

<div class="post-metadata">

**Author:** ![jaguilar84](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jaguilar84/32/1116703_2.png) [@jaguilar84](https://forum.arduino.cc/u/jaguilar84)\
**Post date:** [November 26, 2024, 11:32am UTC](https://forum.arduino.cc/t/do-i-need-a-flyback-diode-for-this-motor-driver/1325997/7 "2024-11-26T11:32:18Z")

</div>

Ah, and those diodes would not connect the motor leads to each other, but rather to VBATT and GND, right? This would have the effect of clamping the voltage of the leads to between VBATT and GND by dissipating any excess current that comes from the inductor when its magnetic field collapses?

---

<div class="post-metadata">

**Author:** ![build\_1971](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/build_1971/32/689930_2.png) [@build\_1971](https://forum.arduino.cc/u/build_1971)\
**Post date:** [November 26, 2024, 11:33am UTC](https://forum.arduino.cc/t/do-i-need-a-flyback-diode-for-this-motor-driver/1325997/8 "2024-11-26T11:33:16Z")

</div>

Yep!

---

<div class="post-metadata">

**Author:** ![jaguilar84](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jaguilar84/32/1116703_2.png) [@jaguilar84](https://forum.arduino.cc/u/jaguilar84)\
**Post date:** [November 26, 2024, 11:49am UTC](https://forum.arduino.cc/t/do-i-need-a-flyback-diode-for-this-motor-driver/1325997/9 "2024-11-26T11:49:02Z")

</div>

For my own edification, I made this in CircuitLab:

> **[Clamping Diodes](https://www.circuitlab.com/circuit/9g78c4r54dhn/clamping-diodes/)**

Without the clamping diodes, you see momentary voltages of -60kV at the switch after it switches from 6V to the floating side of the switch. With the clamping diodes in place, the maximum momentary voltage is reduced to about -1V. (I don't know how the simulated values correspond to a real circuit but the principle seems to be `clamping diode = much lower max reverse voltage`.)

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 25, 2025, 11:49am UTC](https://forum.arduino.cc/t/do-i-need-a-flyback-diode-for-this-motor-driver/1325997/10 "2025-05-25T11:49:23Z")

</div>

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