Hi,
I have been working with my ibt_2 as a motor controller for my dc motor. it was working just fine but when i tried it again, it stopped working. Can someone tell me how to check which component of my ibt_2 is broken so i can try to change just that. The code that i have been running for a while is this;
int RPWM=10;
int LPWM=
int L_EN=7;
int R_EN=8;
void setup() {
pinMode(RPWM,OUTPUT);
pinMode(LPWM,OUTPUT);
pinMode(L_EN,OUTPUT);
pinMode(R_EN,OUTPUT);
digitalWrite(RPWM,LOW);
digitalWrite(LPWM,LOW);
digitalWrite(L_EN,LOW);
digitalWrite(R_EN,LOW);
delay(1000);
}
void loop() {
digitalWrite(RPWM,LOW);
digitalWrite(LPWM,LOW);
digitalWrite(R_EN,HIGH);
digitalWrite(L_EN,HIGH);
forward();
}
void forward(){
analogWrite(LPWM,50);
Serial.print("forward\n ");
}