0
$\begingroup$

I am quite new to robotics, arduinos, motors and that sort of thing so there is a very strong chance I am missing something very obvious. However, I have looked up multiple tutorials online, none using the exact same H Bridge as I am using. I was wondering whether anybody has also uses the L298N H Bridge who could tell me why my code isn't working. (Link to product I am using)

Code:


void setup(){
pinMode(13,1);
pinMode(12,1);
pinMode(11,1);
pinMode(8,1);
pinMode(10,1);
pinMode(9,1);
}

void loop(){
digitalWrite(13,1);
digitalWrite(12,0);
digitalWrite(11,1);
digitalWrite(8,0);
analogWrite(10,255);
  
  
}

Thank you for your time.

$\endgroup$
2
  • $\begingroup$ if you seriously want help, then do not use descriptions, such as code isn't working ... it does not describe what is actually happening ... please describe what you expect to happen, and what actually happens ... also include information about the connections between the arduino and the motor driver $\endgroup$
    – jsotola
    Mar 26, 2022 at 6:41
  • $\begingroup$ do not put info into comments ... add it to the question $\endgroup$
    – jsotola
    Mar 26, 2022 at 6:44

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.