Hi, i'm using a l298n driver. It has connected two motors , i was working pretty fine but suddenly one motor didn't startso i check the out put voltajes and and it is sending 6.5v to one motor and to the other motor its sending 4v , i'm not using PWM or something like that , the logic voltaje is 5v and the power suply is 7.4v the grounds are homologated everiting is just fine.
Any ideas to solve this issue?
which arduino PWM pins are you using to drive control speed (Enable pins) ?
actualy , the enable pins are connected directly to a 5v line
So you don't know how to control dc motor speed with the L298, is that what you are saying ?
i know how to control it , i just want to give full speed to both of my motors ,but the driver gives different voltages to each motor ,
this is how is conected
my arduino L298n
pin 11 HIgh to IN 1
pin10 low to IN 2
pin 6 high to IN 3
pin 5 low to IN 4
5v+ to enable A
5v+ to enable B
5v+ to VSS
7.4 power suply to VS
-----L298n Output -------
Output 1 ------6.4v
Output 2------0v
Output 3 ------4v (i need here at least 6v)
output 4 -------0v
Did you measure the motor internal resistance ?
Do you know how to draw a schematic with pen & paper and post a photo of it ?
Your voltages definitely indicate a problem but without a schematic and your code it's hard to say what it is?
well this is my code
int Motor1L = 11;
int Motor1R = 10;
int Motor2L = 6;
int Motor2R = 5;
void setup() {
pinMode(Motor1L, OUTPUT);
pinMode(Motor1R, OUTPUT);
pinMode(Motor2L, OUTPUT);
pinMode(Motor2R, OUTPUT);
}
void loop() {
digitalWrite(Motor1L, HIGH);
digitalWrite(Motor1R, LOW);
digitalWrite(Motor2L, HIGH);
digitalWrite(Motor2R, LOW);
delay(8000);
digitalWrite(Motor1L, LOW);
digitalWrite(Motor1R, HIGH);
digitalWrite(Motor2L, LOW);
digitalWrite(Motor2R, HIGH);
delay(8000);
}
Why are the signal names named that way 1L,1R 2L,2R etc. ?
FYI - your attachement wasn't much help. Do you know how to draw a schematic by hand with pen & paper ? (Y/N)
Have you looked over the soldering? Maybe a cold joint is making poor connection?
Also check the DC resistance of each motor - make sure one hasn't developed a high resistance, indicating some kind of internal failure.
