Hi guys.
Iam trying to do a fast braking function for one of my projects using l298n module. I did all same as the instructions from the forum section" fast braking and free runn stoping ". But the motor is not stopping suddenly otherthan natural stopping. I think my code has a problem. My program code is given below:
int in1=9;
int in2=10;
int ina=6;
void setup()
{
pinMode(in1,OUTPUT);
pinMode(in2,OUTPUT);
pinMode(ina,OUTPUT);
}
void loop()
{
analogWrite(ina,225);
digitalWrite(in1,HIGH);
digitalWrite(in2,LOW);
delay(1000);
analogWrite(ina,LOW);
digitalWrite(in1,LOW);
digitalWrite(in2,LOW);
analogWrite(ina,225);
digitalWrite(in1,LOW);
digitalWrite(in2,HIGH);
delay(1000);
}
Please explain about the jumpers of enA and anB and their use if anybody know. If my program code have any problem please tell me.....
Thanks for any assistance..