Maker Pro
Maker Pro

Diode and Capacitor Question for motor connection

Dear All,

I have some doubts and I would like seek advice.
Recently, I am trying to connect a motor to a motor shield, and I saw this picture online.
l298.png

I would like to ask about the 100 uF capacitor and 1 uF capacitor in the circuit.
Would it be all right for me to connect both the capacitor right after pin 4 before the diode, instead of connecting before ground? I had drawn what I am thinking below. Is it better and Does it make any difference to the circuit?
l298n.png

For the motor, I realised that each motor is connected with 4 diode. 2 diode to each output.
Example the first motor is connected to pin 2 (Output1) and then another to ground. Does anyone know why is there a need to connect 2 diode for each output, is it possible for me to connect a diode from to pin 2(Output1) and then directly to ground? Example:
l2981.png

Thank You!
 
Capacitor location is the same in both. Diodes cannot be left out/ bridged as you have done otherwise a short to ground will arise in certain circumstances.
 
Hi Bluejets, in terms of using the capacitor as bypass capacitor, is placing the capacitor infront better? Or is it still the same. I have some confusion.

Thank You!
 
The primary job of a schematic is to show the electrical connections, not the placement of components.

The two decoupling capacitors should be as close as possible to the IC power and ground pins.

ak
 
1. As mentioned, the capacitors should be placed near the IC and definitely not after the load. There will be high current surges rushing in and out of those capacitors at the switching edges, that can cause high frequency disturbance.
If you have added conductors (by putting the capacitors after the load), those conductors will:
a: work as transmitting antennas for noise,
b: due to inductance and resistance, delay/reduce the function of the capacitors (to smooth the voltage)

2. If the load would be purely resistive, you would not need those diodes at all (just remove).
They are free wheeling diodes that you need if the load is inductive (motors, solenoids etc).
They are connected "backwards" as in flyback converters or the diodes connected parallel to relay coils and will only be active in the switching moments till the stored energy in the coil has been removed.

If the L298 would run in regulating PWM mode (not normal DC mode), the diodes would be an essential part of the function. Together with the inductive load they do basically make a switched power supply where the output not necessarily has to be voltage, but can be toque in a motor, force in a solenoid or whatever you want. In such case the diodes preferably would be fast diodes or schottky diodes.
 
Dear All,

Thanks for all your valuable input! I have one more question, do you think it is necessary to add two capacitor (ceramic and electrolysis) in-between the respective motors?
 
Where exactly do you want to add capacitors?
I do not think you need more than those two existing caps. Rather try to gather all external power strands (from the diodes) to two distinct spots near the IC (ground and positive supply).
Place the capacitors between those spots.
 
Top