I am using L293D motor shield and Arduino to drive 4 motor but the voltage in the one side is small and the other side is large

I am using L293D motor shield and Arduino Uno to drive 4 motor but the Voltage in the M1 and M2 is low and M3 and M4 is high. So I can’t drive the car in a straight path. I tried using another L293D and the problem is still same.So could you please help me solve this problem?

The motors' windings are not the same inside (or there is hair wrapped about the axle of the slow motor). Adjust the PWM to the "strong" side until motors drive equally.

1 Like

Thank you for the reply. I am the new user so could you please tell me, How can I adjust it? Should I adjust it through programming?

Yes. Connected an Arduino PWM pin to the ENABLE pin (ENA and a second PWM pin to ENB). Use analogWrite(PWMpinA, value); and adjust value from 0 to 255 (try 50 to 200... because of power loss, 50 might be the lowest the motor needs to move, and "200" to not send max power to any DC motor for extended periods).

You should read about it, too... try this page...

Thank you so much

Hi, @kamal_bishowkarma
Welcome to the forum.

Can you post some images of your project?
So we can see your component layout

Thanks.. Tom.. :smiley: :+1: :coffee: :australia:

Hi,
Can you please post a copy of your circuit, a picture of a hand drawn circuit in jpg, png?
Hand drawn and photographed is perfectly acceptable.
Please include ALL hardware, power supplies, component names and pin labels.

If all your motors are the same then consider this;

A UNO has different PWM frequencies on it PWM pins.
Are you using a pair of pins that have the same PWM frequency?

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

I attached the L293D over the Arduino Uno and I connect the motor to M1, M2, M3 and M4. I give the external power supply of 12V through the ext pwr of L293D.

Would you make a drawing of your wiring? (also, un-check the "solution" box if this is still not working)

Motors with brushes can be more efficient in one direction.
Try flipping the slowest motor/gearbox 180 degrees, including the motor wires.

12volt with those motors might be too much for an L293D. Different drop-out voltages (loss) between chips under heavy motor load could vary motor speed.
Leo..

sorry for late reply

could you please how much volt is suitable? I tried with 5 volt and still same .

Your motors are not connected to your L293 driver board.
What is connected to Pin0 and Pin1? Disconnect if not used.
Uncheck "SOLUTION" box until this is solved.

I think this is the best answer:

1 Like

A 5volt motor supply is too low.
If the chips don't get hot, then keep using 12volt.
Two 18650 batteries in series could be the sweet spot.
Leo..

1 Like

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