r/ArduinoProjects • • May 13 '24

Hello see Pic please

0 Upvotes

3 comments sorted by

3

u/CriticalCartoonist54 May 15 '24

Serial print the values going to the IN1 and IN2. This way you can see if the motor controller is receiving the expected values or not. There maybe a logic error in your code or a while loop where it gets stuck and cannot run both the motors at the same time.

If the values are correct, then something is indeed wrong with your wiring. You could try to remove some of the extra wires and only try the motor control by itself.

1

u/Remarkable_Usual871p May 15 '24

Is the problem may be from the battery that can not run 4 motors and instead of that it runs 2 motors in same time but take it in consider that when I turn on the battery the 2 motors work unless I remove their code and keep others then other 2 motors will work and the first 2 will not.

2

u/[deleted] May 14 '24

You need to put up your circuit diagram my dear...