Motor driver l298n fritzing

broken image

If proximity sensors are disconnected (or even connected, but do not write anything about them in code) on each branch have the same voltage (measured with measuring device).

broken image

I already tested the driver without arduino and voltages on both branches are approximately equal. Long microsecondsToCentimeters(long microseconds) Long duration, cmd, duration2, cmc, duration3, cms

broken image

Here is a video showing the voltage difference between the two branches: Dropbox - Error I connected wires like in the photo attached bellow. I can say that the motors driver is powered from 12.5V, Arduino from USB and proximity sensors to 4.8V. This problem occur when in the code appears the reading parameters from the proximity sensors (three in number). Branch A (which supplies engine A) gives a lower voltage than branch B (which supplies the engine B) and automatically cause a wheel rotation more slowly than the other one.

The problem I face is or from Arduino, or from the driver. Everything is purchased: Arduino UNO, L298N motor driver, HC-SR04 as proximity sensors and a chassis. I want to build an autonomous car that can get out of the maze.

broken image