Return to site

L298n for fritzing

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 Here is a video showing the voltage difference between the two branches: Dropbox - Error I connected wires like in the photo attached bellow.

broken image

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.

broken image

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